1 19 20 package org.netbeans.modules.xml.schema.model; 21 22 import java.util.Collection ; 23 import java.util.Map ; 24 import java.util.Set ; 25 import org.netbeans.modules.xml.schema.model.Derivation.Type; 26 import org.netbeans.modules.xml.xam.EmbeddableRoot; 27 28 32 public interface Schema extends SchemaComponent, EmbeddableRoot { 33 public static final String TARGET_NAMESPACE_PROPERTY = "targetNamespace"; 34 public static final String BLOCK_DEFAULT_PROPERTY = "blockDefault"; 35 public static final String ATTRIBUTE_FORM_DEFAULT_PROPERTY = "attributeFormDefault"; 36 public static final String FINAL_DEFAULT_PROPERTY = "finalDefault"; 37 public static final String LANGUAGE_PROPERTY = "language"; 38 public static final String ELEMENT_FORM_DEFAULT_PROPERTY = "elementFormDefault"; 39 public static final String VERSION_PROPERTY = "version"; 40 public static final String SCHEMA_REFERENCES_PROPERTY = "schemaReferences"; 41 public static final String ATTRIBUTES_PROPERTY = "attributes"; 42 public static final String ELEMENTS_PROPERTY = "elements"; 43 public static final String ATTRIBUTE_GROUPS_PROPERTY = "attributeGroups"; 44 public static final String SIMPLE_TYPES_PROPERTY = "simpleTypes"; 45 public static final String COMPLEX_TYPES_PROPERTY = "complexTypes"; 46 public static final String GROUPS_PROPERTY = "groups"; 47 public static final String NOTATIONS_PROPERTY = "notations"; 48 49 Form getAttributeFormDefault(); 50 void setAttributeFormDefault(Form form); 51 54 Form getAttributeFormDefaultDefault(); 55 Form getAttributeFormDefaultEffective(); 56 57 public enum Block implements Derivation { 58 ALL(Type.ALL), RESTRICTION(Type.RESTRICTION), EXTENSION(Type.EXTENSION), SUBSTITUTION(Type.SUBSTITUTION), EMPTY(Type.EMPTY); 59 private Derivation.Type value; 60 Block(Derivation.Type v) { value = v; } 61 public String toString() { return value.toString(); } 62 } 63 Set <Block> getBlockDefault(); 64 void setBlockDefault(Set <Block> blockDefault); 65 68 Set <Block> getBlockDefaultDefault(); 69 Set <Block> getBlockDefaultEffective(); 70 71 Form getElementFormDefault(); 72 void setElementFormDefault(Form form); 73 76 Form getElementFormDefaultDefault(); 77 Form getElementFormDefaultEffective(); 78 79 public enum Final implements Derivation { 80 ALL(Type.ALL), RESTRICTION(Type.RESTRICTION), EXTENSION(Type.EXTENSION), LIST(Type.LIST), UNION(Type.UNION), EMPTY(Type.EMPTY); 81 private Derivation.Type value; 82 Final(Derivation.Type v) { value = v; } 83 public String toString() { return value.toString(); } 84 } 85 Set <Final> getFinalDefault(); 86 void setFinalDefault(Set <Final> finalDefault); 87 90 Set <Final> getFinalDefaultDefault(); 91 Set <Final> getFinalDefaultEffective(); 92 93 String getTargetNamespace(); 94 void setTargetNamespace(String uri); 95 96 String getVersion(); 97 void setVersion(String ver); 98 99 String getLanguage(); 100 void setLanguage(String language); 101 102 Collection <SchemaModelReference> getSchemaReferences(); 105 Collection <Import> getImports(); 106 Collection <Include> getIncludes(); 107 Collection <Redefine> getRedefines(); 108 void addExternalReference(SchemaModelReference ref); 109 void removeExternalReference(SchemaModelReference ref); 110 111 Collection <GlobalAttribute> getAttributes(); 112 void addAttribute(GlobalAttribute attr); 113 void removeAttribute(GlobalAttribute attr); 114 115 Collection <GlobalElement> getElements(); 116 void addElement(GlobalElement element); 117 void removeElement(GlobalElement element); 118 119 Collection <GlobalElement> findAllGlobalElements(); 120 121 Collection <GlobalAttributeGroup> getAttributeGroups(); 122 void addAttributeGroup(GlobalAttributeGroup group); 123 void removeAttributeGroup(GlobalAttributeGroup group); 124 125 Collection <GlobalSimpleType> getSimpleTypes(); 126 void addSimpleType(GlobalSimpleType type); 127 void removeSimpleType(GlobalSimpleType type); 128 129 Collection <GlobalComplexType> getComplexTypes(); 130 void addComplexType(GlobalComplexType type); 131 void removeComplexType(GlobalComplexType type); 132 133 Collection <GlobalType> findAllGlobalTypes(); 134 135 Collection <GlobalGroup> getGroups(); 136 void addGroup(GlobalGroup group); 137 void removeGroup(GlobalGroup group); 138 139 Collection <Notation> getNotations(); 140 void addNotation(Notation notation); 141 void removeNotation(Notation notation); 142 143 Map <String , String > getPrefixes(); 144 void addPrefix(String prefix, String namespace); 145 void removePrefix(String prefix); 146 } 147 | Popular Tags |