1 22 23 package org.xquark.schema; 24 25 public interface SchemaConstants { 26 27 28 29 public static final String XMLSCHEMA_URI = 30 "http://www.w3.org/2001/XMLSchema"; 31 public static final String XSI_URI = 32 "http://www.w3.org/2001/XMLSchema-instance"; 33 public static final String XML_URI = 34 "http://www.w3.org/XML/1998/namespace"; 35 public static final String XMLNS_URI = 36 "http://www.w3.org/2000/xmlns/"; 37 public static final String XML_PREFIX = "xml"; 38 public static final String XMLNS_PREFIX = "xmlns"; 39 40 public static final String SCHEMA_TAG = "schema"; 42 public static final String INCLUDE_TAG = "include"; 43 public static final String IMPORT_TAG = "import"; 44 public static final String REDEFINE_TAG = "redefine"; 45 public static final String SIMPLE_UR_TYPE = "anySimpleType"; 46 public static final String SIMPLE_TYPE_TAG = "simpleType"; 47 public static final String COMPLEX_TYPE_TAG = "complexType"; 48 public static final String ELEMENT_TAG = "element"; 49 public static final String ATTRIBUTE_TAG = "attribute"; 50 public static final String GROUP_TAG = "group"; 51 public static final String SEQUENCE_TAG = "sequence"; 52 public static final String CHOICE_TAG = "choice"; 53 public static final String ALL_TAG = "all"; 54 public static final String ATTRIBUTE_GROUP_TAG = "attributeGroup"; 55 public static final String ANY_TAG = "any"; 56 public static final String ANY_ATTRIBUTE_TAG = "anyAttribute"; 57 public static final String UNIQUE_TAG = "unique"; 58 public static final String KEY_TAG = "key"; 59 public static final String KEYREF_TAG = "keyref"; 60 public static final String SELECTOR_TAG = "selector"; 61 public static final String FIELD_TAG = "field"; 62 public static final String ANNOTATION_TAG = "annotation"; 63 public static final String APPINFO_TAG = "appinfo"; 64 public static final String DOCUMENTATION_TAG = "documentation"; 65 public static final String NOTATION_TAG = "notation"; 66 67 public static final String SIMPLECONTENT_TAG = "simpleContent"; 68 public static final String COMPLEXCONTENT_TAG = "complexContent"; 69 public static final String LIST_TAG = "list"; 70 public static final String UNION_TAG = "union"; 71 public static final String RESTRICTION_TAG = "restriction"; 72 public static final String EXTENSION_TAG = "extension"; 73 74 public static final String LENGTH_TAG = "length"; 76 public static final String MIN_LENGTH_TAG = "minLength"; 77 public static final String MAX_LENGTH_TAG = "maxLength"; 78 public static final String PATTERN_TAG = "pattern"; 79 public static final String ENUMERATION_TAG = "enumeration"; 80 public static final String WHITESPACE_TAG = "whiteSpace"; 81 public static final String MIN_EXCLUSIVE_TAG = "minExclusive"; 82 public static final String MIN_INCLUSIVE_TAG = "minInclusive"; 83 public static final String MAX_EXCLUSIVE_TAG = "maxExclusive"; 84 public static final String MAX_INCLUSIVE_TAG = "maxInclusive"; 85 public static final String TOTALDIGITS_TAG = "totalDigits"; 86 public static final String FRACTIONDIGITS_TAG = "fractionDigits"; 87 88 public static final String [] FACETS = { 89 LENGTH_TAG, MIN_LENGTH_TAG, MAX_LENGTH_TAG, 90 PATTERN_TAG, ENUMERATION_TAG, WHITESPACE_TAG, 91 MIN_EXCLUSIVE_TAG, MIN_INCLUSIVE_TAG, MAX_EXCLUSIVE_TAG, MAX_INCLUSIVE_TAG, 92 TOTALDIGITS_TAG, FRACTIONDIGITS_TAG, 93 }; 94 95 public static final String ID_ATTR = "id"; 97 98 public static final String ATTRIBUTE_FORM_DEFAULT_ATTR = "attributeFormDefault"; 100 public static final String BLOCK_DEFAULT_ATTR = "blockDefault"; 101 public static final String ELEMENT_FORM_DEFAULT_ATTR = "elementFormDefault"; 102 public static final String FINAL_DEFAULT_ATTR = "finalDefault"; 103 public static final String TARGET_NAMESPACE_ATTR = "targetNamespace"; 104 public static final String VERSION_ATTR = "version"; 105 106 public static final String SCHEMA_LOCATION_ATTR = "schemaLocation"; 108 public static final String NAMESPACE_ATTR = "namespace"; 109 110 public static final String ABSTRACT_ATTR = "abstract"; 112 public static final String BASE_ATTR = "base"; 113 public static final String NAME_ATTR = "name"; 114 public static final String ITEM_TYPE_ATTR = "itemType"; 115 public static final String MEMBER_TYPES_ATTR = "memberTypes"; 116 117 public static final String BLOCK_ATTR = "block"; 119 public static final String CONTENT_ATTR = "content"; 120 public static final String FINAL_ATTR = "final"; 121 public static final String MIXED_ATTR = "mixed"; 122 123 public static final String DEFAULT_ATTR = "default"; 125 public static final String SUBSTITUTION_GROUP_ATTR = "substitutionGroup"; 126 public static final String FIXED_ATTR = "fixed"; 127 public static final String FORM_ATTR = "form"; 128 public static final String MAX_OCCURS_ATTR = "maxOccurs"; 129 public static final String MIN_OCCURS_ATTR = "minOccurs"; 130 public static final String NILLABLE_ATTR = "nillable"; 131 public static final String REF_ATTR = "ref"; 132 public static final String TYPE_ATTR = "type"; 133 134 public static final String USE_ATTR = "use"; 136 public static final String VALUE_ATTR = "value"; 137 138 public static final String PROCESS_CONTENTS_ATTR = "processContents"; 139 140 public static final String PUBLIC_ATTR = "public"; 141 public static final String SYSTEM_ATTR = "system"; 142 143 public static final String REFER_ATTR = "refer"; 144 public static final String XPATH_ATTR = "xpath"; 145 146 public static final String SOURCE_ATTR = "source"; 148 149 public static final String XSI_NIL_ATTR = "nil"; 151 public static final String XSI_TYPE_ATTR = "type"; 152 public static final String XSI_SCHEMA_LOCATION_ATTR = "schemaLocation"; 153 public static final String XSI_NO_NAMESPACE_SCHEMA_LOCATION_ATTR = 154 "noNamespaceSchemaLocation"; 155 156 public static final String TRUE_VALUE = "true"; 158 public static final String FALSE_VALUE = "false"; 159 public static final String ONE_VALUE = "1"; 160 public static final String ZERO_VALUE = "0"; 161 162 public static final String QUALIFIED_VALUE = "qualified"; 163 public static final String UNQUALIFIED_VALUE = "unqualified"; 164 165 public static final String ALL_VALUE = "#all"; 166 public static final String LIST_VALUE = "list"; 167 public static final String UNION_VALUE = "union"; 168 public static final String RESTRICTION_VALUE = "restriction"; 169 public static final String EXTENSION_VALUE = "extension"; 170 public static final String SUBSTITUTION_VALUE = "substitution"; 171 172 public static final int LIST = 1; 173 public static final int UNION = 2; 174 public static final int RESTRICTION = 4; 175 public static final int EXTENSION = 8; 176 public static final int SUBSTITUTION = 16; 177 178 public static final String DEFAULT_VALUE = "default"; 179 public static final String FIXED_VALUE = "fixed"; 180 public static final String OPTIONAL_VALUE = "optional"; 181 public static final String PROHIBITED_VALUE = "prohibited"; 182 public static final String REQUIRED_VALUE = "required"; 183 184 public static final int DEFAULT = 0; 185 public static final int FIXED = 1; 186 public static final int OPTIONAL = 2; 187 public static final int PROHIBITED = 3; 188 public static final int REQUIRED = 4; 189 190 public static final String UNBOUNDED_VALUE = "unbounded"; 191 192 public static final String EMPTY_VALUE = "empty"; 193 public static final String TEXT_ONLY_VALUE = "textOnly"; 194 public static final String ELEMENT_ONLY_VALUE = "elementOnly"; 195 public static final String MIXED_VALUE = "mixed"; 196 197 public static final int UNKNOWN = -1; 198 public static final int EMPTY = 0; 199 public static final int TEXT_ONLY = 1; 200 public static final int ELEMENT_ONLY = 2; 201 public static final int MIXED = 3; 202 203 public static final String ANY_VALUE = "##any"; 204 public static final String LOCAL_VALUE = "##local"; 205 public static final String OTHER_VALUE = "##other"; 206 public static final String TARGET_NAMESPACE_VALUE = "##targetNamespace"; 207 208 public static final String LAX_VALUE = "lax"; 209 public static final String SKIP_VALUE = "skip"; 210 public static final String STRICT_VALUE = "strict"; 211 212 public static final int LAX = 0; 213 public static final int SKIP = 1; 214 public static final int STRICT = 2; 215 216 public static final String ANY_TYPE = "anyType"; 218 219 } 220 221 | Popular Tags |