1 19 package org.netbeans.modules.xslt.model.impl; 20 21 import org.netbeans.modules.xslt.model.Key; 22 import org.netbeans.modules.xslt.model.XslComponent; 23 import org.netbeans.modules.xslt.model.XslVisitor; 24 import org.w3c.dom.Element ; 25 26 27 31 class KeyImpl extends MatchableQNameableSeqCtorImpl implements Key { 32 33 34 KeyImpl( XslModelImpl model, Element element ) { 35 super( model , element ); 36 } 37 38 KeyImpl( XslModelImpl model ) { 39 super( model , XslElements.KEY ); 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 Key.class; 58 } 59 60 63 public String getCollation() { 64 return getAttribute( XslAttributes.COLLATION ); 65 } 66 67 70 public void setCollation( String value ) { 71 setAttribute( XslAttributes.COLLATION, value ); 72 } 73 74 77 public String getUse() { 78 return getAttribute( XslAttributes.USE ); 79 } 80 81 84 public void setUse( String use ) { 85 setAttribute( XslAttributes.USE, use ); 86 } 87 88 } 89 | Popular Tags |