1 19 package org.netbeans.modules.xslt.model.impl; 20 21 import org.netbeans.modules.xslt.model.Param; 22 import org.netbeans.modules.xslt.model.XslComponent; 23 import org.netbeans.modules.xslt.model.XslVisitor; 24 import org.netbeans.modules.xslt.model.enums.TBoolean; 25 import org.w3c.dom.Element ; 26 27 28 32 class ParamImpl extends QNameableSequenceConstructor implements Param { 33 34 ParamImpl( XslModelImpl model, Element element ) { 35 super( model , element ); 36 } 37 38 ParamImpl( XslModelImpl model ) { 39 super( model , XslElements.PARAM ); 40 } 41 42 45 @Override 46 public void accept( XslVisitor visitor ) 47 { 48 visitor.visit( this ); 49 } 50 51 54 @Override 55 public Class <? extends XslComponent> getComponentType() 56 { 57 return Param.class; 58 } 59 60 63 public TBoolean getRequired() { 64 return TBoolean.forString( getAttribute( XslAttributes.REQUIRED )); 65 } 66 67 70 public TBoolean getTunnel() { 71 return TBoolean.forString( getAttribute( XslAttributes.TUNNEL)); 72 } 73 74 77 public void setRequired( TBoolean required ) { 78 setAttribute( XslAttributes.REQUIRED, required ); 79 } 80 81 84 public void setTunnel( TBoolean tunnel ) { 85 setAttribute( XslAttributes.TUNNEL, tunnel ); 86 } 87 88 91 public String getAs() { 92 return getAttribute( XslAttributes.AS ); 93 } 94 95 98 public void setAs( String value ) { 99 setAttribute( XslAttributes.AS, value ); 100 } 101 102 } 103 | Popular Tags |