1 19 package org.netbeans.modules.xslt.model.impl; 20 21 import org.netbeans.modules.xslt.model.When; 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 WhenImpl extends SequenceConstructorImpl implements When { 32 33 WhenImpl( XslModelImpl model, Element element ) { 34 super( model , element ); 35 } 36 37 WhenImpl( XslModelImpl model ) { 38 super( model , XslElements.WHEN ); 39 } 40 41 44 @Override 45 public void accept( XslVisitor visitor ) 46 { 47 visitor.visit( this ); 48 } 49 50 53 @Override 54 public Class <? extends XslComponent> getComponentType() 55 { 56 return When.class; 57 } 58 59 62 public String getTest() { 63 return getAttribute( XslAttributes.TEST ); 64 } 65 66 69 public void setTest( String test ) { 70 setAttribute( XslAttributes.TEST , test ); 71 } 72 } 73 | Popular Tags |