1 19 package org.netbeans.modules.xslt.model.impl; 20 21 import java.util.List ; 22 23 import org.netbeans.modules.xslt.model.SequenceConstructor; 24 import org.netbeans.modules.xslt.model.SequenceElement; 25 import org.w3c.dom.Element ; 26 27 28 32 abstract class SequenceConstructorImpl extends XslComponentImpl implements 33 SequenceConstructor 34 { 35 36 SequenceConstructorImpl( XslModelImpl model, Element e ) { 37 super(model, e); 38 } 39 40 SequenceConstructorImpl( XslModelImpl model , XslElements type ){ 41 super( model , type ); 42 } 43 44 47 public void addSequenceChild( SequenceElement element, int position ) { 48 insertAtIndex( SEQUENCE_ELEMENT, element , position ); 49 } 50 51 54 public void appendSequenceChild( SequenceElement element ) { 55 appendChild( SEQUENCE_ELEMENT, element ); 56 } 57 58 61 public List <SequenceElement> getSequenceChildren() { 62 return getChildren( SequenceElement.class ); 63 } 64 65 68 public void removeSequenceChild( SequenceElement element ) { 69 removeChild( SEQUENCE_ELEMENT, element ); 70 } 71 72 } 73 | Popular Tags |