1 19 package org.netbeans.modules.xslt.model.impl; 20 21 import org.netbeans.modules.xml.schema.model.GlobalType; 22 import org.netbeans.modules.xml.xam.Reference; 23 import org.netbeans.modules.xslt.model.Document; 24 import org.netbeans.modules.xslt.model.XslComponent; 25 import org.netbeans.modules.xslt.model.XslVisitor; 26 import org.netbeans.modules.xslt.model.enums.Validation; 27 import org.w3c.dom.Element ; 28 29 30 34 class DocumentImpl extends SequenceElementConstructorImpl implements Document { 35 36 DocumentImpl( XslModelImpl model, Element element ) { 37 super( model , element ); 38 } 39 40 DocumentImpl( XslModelImpl model ){ 41 super( model , XslElements.DOCUMENT ); 42 } 43 44 47 @Override 48 public void accept( XslVisitor visitor ) 49 { 50 visitor.visit( this ); 51 } 52 53 56 @Override 57 public Class <? extends XslComponent> getComponentType() 58 { 59 return Document.class; 60 } 61 62 65 public Validation getValidation() { 66 return Validation.forString( getAttribute( XslAttributes.VALIDATION )); 67 } 68 69 72 public void setValidation( Validation validation ) { 73 setAttribute( XslAttributes.VALIDATION, validation ); 74 } 75 76 79 public Reference<GlobalType> getType() { 80 return null; 82 } 83 84 87 public void setType( Reference<GlobalType> type ) { 88 90 } 91 92 } 93 | Popular Tags |