1 19 package org.netbeans.modules.xslt.model.impl; 20 21 import org.netbeans.modules.xslt.model.Text; 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 public class TextImpl extends SequenceElementImpl implements Text { 33 34 TextImpl( XslModelImpl model, Element element ) { 35 super( model , element ); 36 } 37 38 TextImpl( XslModelImpl model ) { 39 super( model , XslElements.TEXT ); 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 Text.class; 58 } 59 60 63 public TBoolean getDisableOutputEscaping() { 64 return TBoolean.forString( getAttribute( 65 XslAttributes.DISABLE_OUTPUT_ESCAPING)); 66 } 67 68 71 public void setDisableOutputEscaping( TBoolean value ) { 72 setAttribute( XslAttributes.DISABLE_OUTPUT_ESCAPING, value); 73 } 74 75 } 76 | Popular Tags |