1 19 package org.netbeans.modules.xslt.model.impl; 20 21 import org.netbeans.modules.xslt.model.If; 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 IfImpl extends SequenceElementConstructorImpl implements If { 32 33 IfImpl( XslModelImpl model, Element element ) { 34 super( model , element ); 35 } 36 37 IfImpl( XslModelImpl model ){ 38 super( model , XslElements.IF ); 39 } 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 If.class; 58 } 59 60 63 public String getTest() { 64 return getAttribute( XslAttributes.TEST ); 65 } 66 67 70 public void setTest( String test ) { 71 setAttribute( XslAttributes.TEST , test ); 72 } 73 74 } 75 | Popular Tags |