1 19 package org.netbeans.modules.xslt.model.impl; 20 21 import java.util.List ; 22 23 import org.netbeans.modules.xslt.model.CharacterMap; 24 import org.netbeans.modules.xslt.model.Output; 25 import org.netbeans.modules.xslt.model.XslComponent; 26 import org.netbeans.modules.xslt.model.XslReference; 27 import org.netbeans.modules.xslt.model.XslVisitor; 28 import org.netbeans.modules.xslt.model.enums.Standalone; 29 import org.netbeans.modules.xslt.model.enums.TBoolean; 30 import org.w3c.dom.Element ; 31 32 33 37 class OutputImpl extends QNameableImpl implements Output { 38 39 OutputImpl( XslModelImpl model, Element element ) { 40 super( model , element ); 41 } 42 43 OutputImpl( XslModelImpl model ) { 44 super( model , XslElements.OUTPUT ); 45 } 46 47 50 @Override 51 public void accept( XslVisitor visitor ) 52 { 53 visitor.visit( this ); 54 } 55 56 59 @Override 60 public Class <? extends XslComponent> getComponentType() 61 { 62 return Output.class; 63 } 64 65 68 public String getEncoding() { 69 return getAttribute( XslAttributes.ENCODING ); 70 } 71 72 75 public void setEncoding( String encoding ) { 76 setAttribute( XslAttributes.ENCODING, encoding ); 77 } 78 79 82 public TBoolean getIndent() { 83 return TBoolean.forString( getAttribute( XslAttributes.INDENT ) ); 84 } 85 86 89 public void setIndent( TBoolean value ) { 90 setAttribute( XslAttributes.INDENT, value ); 91 } 92 93 96 public Standalone getStandalone() { 97 return Standalone.forString( getAttribute( XslAttributes.STANDALONE )); 98 } 99 100 103 public void setStandalone( Standalone value ) { 104 setAttribute( XslAttributes.STANDALONE, value ); 105 } 106 107 110 public TBoolean getUndeclarePrefixes() { 111 return TBoolean.forString( getAttribute( XslAttributes.UNDECLARE_PREFIXES)); 112 } 113 114 117 public void setUndeclarePrefixes( TBoolean value ) { 118 setAttribute( XslAttributes.UNDECLARE_PREFIXES, value ); 119 } 120 121 124 public List <XslReference<CharacterMap>> getUseCharacterMaps() { 125 return resolveGlobalReferenceList( CharacterMap.class, 126 XslAttributes.USE_CHARACTER_MAPS ); 127 } 128 129 132 public void setUseCharacterMaps( List <XslReference<CharacterMap>> list ) { 133 setAttribute( XslAttributes.USE_CHARACTER_MAPS, list ); 134 } 135 136 } 137 | Popular Tags |