1 19 package org.netbeans.modules.xslt.model.impl; 20 21 import org.netbeans.modules.xslt.model.AttributeValueTemplate; 22 import org.netbeans.modules.xslt.model.ValueOf; 23 import org.netbeans.modules.xslt.model.XslComponent; 24 import org.netbeans.modules.xslt.model.XslVisitor; 25 import org.netbeans.modules.xslt.model.enums.TBoolean; 26 import org.w3c.dom.Element ; 27 28 29 33 class ValueOfImpl extends SequenceElementConstructorImpl implements ValueOf { 34 35 36 ValueOfImpl( XslModelImpl model, Element element ) { 37 super( model , element ); 38 } 39 40 ValueOfImpl( XslModelImpl model ) { 41 super( model , XslElements.VALUE_OF ); 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 ValueOf.class; 60 } 61 62 65 public TBoolean getDisableOutputEscaping() { 66 return TBoolean.forString( getAttribute( 67 XslAttributes.DISABLE_OUTPUT_ESCAPING)); 68 } 69 70 73 public void setDisableOutputEscaping( TBoolean value ) { 74 setAttribute( XslAttributes.DISABLE_OUTPUT_ESCAPING, value); 75 } 76 77 80 public AttributeValueTemplate getSeparator() { 81 return AttributeValueTemplateImpl.creatAttributeValueTemplate( 82 this , XslAttributes.SEPARATOR ); 83 } 84 85 88 public void setSeparator( AttributeValueTemplate avt ) { 89 setAttribute( XslAttributes.SEPARATOR, avt ); 90 } 91 92 } 93 | Popular Tags |