1 19 20 package org.netbeans.modules.xml.schema.model; 21 22 import javax.xml.namespace.QName ; 23 import org.netbeans.modules.xml.schema.model.visitor.SchemaVisitor; 24 import org.netbeans.modules.xml.xam.dom.DocumentComponent; 25 import org.netbeans.modules.xml.xam.dom.NamedComponentReference; 26 27 31 public interface SchemaComponent extends DocumentComponent<SchemaComponent> { 32 33 public static final String ANNOTATION_PROPERTY = "annotation"; 35 public static final String ID_PROPERTY = "id"; 36 37 40 SchemaModel getModel(); 41 42 45 String getId(); 46 47 50 void setId(String id); 51 52 55 String getAnyAttribute(QName attributeName); 56 57 61 void setAnyAttribute(QName attributeName, String value); 62 63 65 public Annotation getAnnotation(); 66 67 69 public void setAnnotation(Annotation annotation); 70 71 74 void accept(SchemaVisitor visitor); 75 76 79 boolean fromSameModel(SchemaComponent other); 80 81 85 Class <? extends SchemaComponent> getComponentType(); 86 87 93 <T extends ReferenceableSchemaComponent> NamedComponentReference<T> createReferenceTo(T referenced, Class <T> type); 94 } 95 | Popular Tags |