1 19 package org.netbeans.modules.xslt.model.impl; 20 21 import javax.xml.namespace.QName ; 22 23 import org.netbeans.modules.xslt.model.Variable; 24 import org.netbeans.modules.xslt.model.XslComponent; 25 import org.netbeans.modules.xslt.model.XslVisitor; 26 import org.w3c.dom.Element ; 27 28 29 33 class VariableImpl extends AsSeqElementCtorImpl implements Variable { 34 35 36 VariableImpl( XslModelImpl model, Element element ) { 37 super( model , element ); 38 } 39 40 VariableImpl( XslModelImpl model ) { 41 super( model , XslElements.VARIABLE ); 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 Variable.class; 60 } 61 62 63 66 public QName getName() { 67 return QNameBuilder.createQName( this , XslAttributes.NAME ); 68 } 69 70 73 public void setName( QName name ) { 74 setAttribute( XslAttributes.NAME, name ); 75 } 76 77 } 78 | Popular Tags |