1 19 package org.netbeans.modules.xslt.model.impl; 20 21 import java.util.List ; 22 23 import org.netbeans.modules.xslt.model.AttributeSet; 24 import org.netbeans.modules.xslt.model.Element; 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.TBoolean; 29 import org.netbeans.modules.xslt.model.enums.Validation; 30 31 32 36 class ElementImpl extends TypeableNameableSeqElCtor implements Element { 37 38 ElementImpl( XslModelImpl model, org.w3c.dom.Element element ) { 39 super( model , element ); 40 } 41 42 43 ElementImpl( XslModelImpl model ){ 44 super( model , XslElements.ELEMENT ); 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 Element.class; 63 } 64 65 68 public Validation getValidation() { 69 return Validation.forString( getAttribute( XslAttributes.VALIDATION )); 70 } 71 72 75 public void setValidation( Validation validation ) { 76 setAttribute( XslAttributes.VALIDATION, validation ); 77 } 78 79 82 public List <XslReference<AttributeSet>> getUseAttributeSets() { 83 return resolveGlobalReferenceList( AttributeSet.class , 84 XslAttributes.USE_ATTRIBUTE_SETS); 85 } 86 87 90 public void setUseAttributeSets( List <XslReference<AttributeSet>> collection ) { 91 setAttributeList( XslAttributes.USE_ATTRIBUTE_SETS, collection); 92 } 93 94 95 98 public TBoolean getInheritNamespaces() { 99 return TBoolean.forString( getAttribute( 100 XslAttributes.INHERIT_NAMESPACES )); 101 } 102 103 104 107 public void setInheritNamespaces( TBoolean value ) { 108 setAttribute( XslAttributes.INHERIT_NAMESPACES, value ); 109 } 110 111 } 112 | Popular Tags |