1 19 package org.netbeans.modules.xslt.model.impl; 20 21 import org.netbeans.modules.xslt.model.AttributeValueTemplate; 22 import org.w3c.dom.Element ; 23 24 28 abstract class NameableSequenceElementConstructor extends 29 SequenceElementConstructorImpl 30 { 31 32 NameableSequenceElementConstructor( XslModelImpl model, Element e ) { 33 super(model, e); 34 } 35 36 NameableSequenceElementConstructor( XslModelImpl model, XslElements type ) { 37 super(model, type ); 38 } 39 40 public AttributeValueTemplate getName() { 41 return AttributeValueTemplateImpl.creatAttributeValueTemplate( 42 this, XslAttributes.AVT_NAME ); 43 } 44 45 public void setName( AttributeValueTemplate name ) { 46 setAttribute( XslAttributes.AVT_NAME , name ); 47 } 48 49 56 57 60 public AttributeValueTemplate getNamespace() { 61 return AttributeValueTemplateImpl.creatAttributeValueTemplate( 62 this, XslAttributes.NAMESPACE ); 63 } 64 65 68 public void setNamespace( AttributeValueTemplate namespace ) { 69 setAttribute( XslAttributes.NAMESPACE , namespace ); 70 } 71 72 } | Popular Tags |