1 19 20 package org.netbeans.modules.xml.schema.model.impl; 21 22 import org.netbeans.modules.xml.schema.model.Notation; 23 import org.netbeans.modules.xml.schema.model.SchemaComponent; 24 import org.netbeans.modules.xml.schema.model.visitor.SchemaVisitor; 25 import org.w3c.dom.Element ; 26 27 31 public class NotationImpl extends NamedImpl implements Notation { 32 33 34 public NotationImpl(SchemaModelImpl model) { 35 this(model,createNewComponent(SchemaElements.DOCUMENTATION,model)); 36 } 37 38 41 public NotationImpl(SchemaModelImpl model, Element el) { 42 super(model, el); 43 } 44 45 public void setSystemIdentifier(String systemID) { 46 setAttribute(SYSTEM_PROPERTY, SchemaAttributes.SYSTEM, systemID); 47 } 48 49 public String getSystemIdentifier() { 50 return getAttribute(SchemaAttributes.SYSTEM); 51 } 52 53 public void setPublicIdentifier(String publicID) { 54 setAttribute(SYSTEM_PROPERTY, SchemaAttributes.PUBLIC, publicID); 55 } 56 57 public String getPublicIdentifier() { 58 return getAttribute(SchemaAttributes.PUBLIC); 59 } 60 61 public void accept(SchemaVisitor v) { 62 v.visit(this); 63 } 64 65 public Class <? extends SchemaComponent> getComponentType() { 66 return Notation.class; 67 } 68 69 } 70 | Popular Tags |