1 19 package org.netbeans.modules.xslt.model.impl; 20 21 import org.netbeans.modules.xslt.model.AttributeValueTemplate; 22 import org.netbeans.modules.xslt.model.Number; 23 import org.netbeans.modules.xslt.model.XslComponent; 24 import org.netbeans.modules.xslt.model.XslVisitor; 25 import org.w3c.dom.Element ; 26 27 28 32 class NumberImpl extends SequenceElementImpl implements Number { 33 34 NumberImpl( XslModelImpl model, Element element ) { 35 super( model , element ); 36 } 37 38 NumberImpl( XslModelImpl model ) { 39 super( model , XslElements.NUMBER ); 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 Number .class; 58 } 59 60 63 public AttributeValueTemplate getLang() { 64 return AttributeValueTemplateImpl.creatAttributeValueTemplate( this, 65 XslAttributes.LANG ); 66 } 67 68 71 public void setLang( AttributeValueTemplate avt ) { 72 setAttribute( XslAttributes.LANG, avt); 73 } 74 75 78 public AttributeValueTemplate getFormat() { 79 return AttributeValueTemplateImpl.creatAttributeValueTemplate( this , 80 XslAttributes.FORMAT ); 81 } 82 83 86 public void setFormat( AttributeValueTemplate avt ) { 87 setAttribute( XslAttributes.FORMAT , avt); 88 } 89 90 } 91 | Popular Tags |