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.Sort; 23 import org.netbeans.modules.xslt.model.XslComponent; 24 import org.netbeans.modules.xslt.model.XslVisitor; 25 import org.netbeans.modules.xslt.model.enums.TBoolean; 26 import org.w3c.dom.Element ; 27 28 29 33 class SortImpl extends SequenceElementConstructorImpl implements Sort { 34 35 SortImpl( XslModelImpl model, Element element ) { 36 super( model , element ); 37 } 38 39 SortImpl( XslModelImpl model ) { 40 super( model , XslElements.SORT ); 41 } 42 43 46 @Override 47 public void accept( XslVisitor visitor ) 48 { 49 visitor.visit( this ); 50 } 51 52 55 @Override 56 public Class <? extends XslComponent> getComponentType() 57 { 58 return Sort.class; 59 } 60 61 64 public String getCollation() { 65 return getAttribute( XslAttributes.COLLATION ); 66 } 67 68 71 public void setCollation( String value ) { 72 setAttribute( XslAttributes.COLLATION, value ); 73 } 74 75 78 public AttributeValueTemplate getLang() { 79 return AttributeValueTemplateImpl.creatAttributeValueTemplate( this, 80 XslAttributes.LANG ); 81 } 82 83 86 public void setLang( AttributeValueTemplate avt ) { 87 setAttribute( XslAttributes.LANG, avt); 88 } 89 90 93 public AttributeValueTemplate getCaseOrder() { 94 return AttributeValueTemplateImpl.creatAttributeValueTemplate( this , 95 XslAttributes.CASE_ORDER ); 96 } 97 98 101 public AttributeValueTemplate getDataType() { 102 return AttributeValueTemplateImpl.creatAttributeValueTemplate( this , 103 XslAttributes.DATA_TYPE ); 104 } 105 106 109 public AttributeValueTemplate getOrder() { 110 return AttributeValueTemplateImpl.creatAttributeValueTemplate( this , 111 XslAttributes.ORDER ); 112 } 113 114 117 public TBoolean getStable() { 118 return TBoolean.forString( getAttribute(XslAttributes.STABLE )); 119 } 120 121 124 public void setCaseOrder( AttributeValueTemplate value ) { 125 setAttribute( XslAttributes.CASE_ORDER, value); 126 } 127 128 131 public void setDataType( AttributeValueTemplate value ) { 132 setAttribute( XslAttributes.DATA_TYPE, value); 133 } 134 135 138 public void setOrder( AttributeValueTemplate value ) { 139 setAttribute( XslAttributes.ORDER, value); 140 } 141 142 145 public void setStable( TBoolean value ) { 146 setAttribute( XslAttributes.STABLE, value); 147 } 148 149 } 150 | Popular Tags |