1 19 package org.netbeans.modules.xslt.model.impl; 20 21 import java.util.List ; 22 23 import org.netbeans.modules.xslt.model.ApplyImports; 24 import org.netbeans.modules.xslt.model.WithParam; 25 import org.netbeans.modules.xslt.model.XslComponent; 26 import org.netbeans.modules.xslt.model.XslVisitor; 27 import org.w3c.dom.Element ; 28 29 30 34 class ApplyImportsImpl extends XslComponentImpl implements ApplyImports { 35 36 ApplyImportsImpl( XslModelImpl model, Element e ) { 37 super(model, e); 38 } 39 40 ApplyImportsImpl( XslModelImpl model ){ 41 this( model , createNewElement( XslElements.APPLY_IMPORTS, model)); 42 } 43 44 47 @Override 48 public void accept( XslVisitor visitor ) 49 { 50 visitor.visit( this ); 51 } 52 53 56 @Override 57 public Class <? extends XslComponent> getComponentType() 58 { 59 return ApplyImports.class; 60 } 61 62 65 public void addWithParam( WithParam withParam, int position ) { 66 insertAtIndex( WITH_PARAM, withParam, position); 67 } 68 69 72 public void appendWithParam( WithParam withParam ) { 73 appendChild( WITH_PARAM, withParam); 74 } 75 76 79 public List <WithParam> getWithParams() { 80 return getChildren( WithParam.class ); 81 } 82 83 86 public void removeWithParam( WithParam withParam ) { 87 removeChild( WITH_PARAM, withParam); 88 } 89 90 } 91 | Popular Tags |