01: /*
02: * SchemaConstants.java
03: *
04: * Created on October 9, 2006, 5:26 PM
05: *
06: * To change this template, choose Tools | Template Manager
07: * and open the template in the editor.
08: */
09:
10: package org.netbeans.modules.e2e.schema;
11:
12: import javax.xml.namespace.QName;
13:
14: /**
15: *
16: * @author Michal Skvor
17: */
18: public final class SchemaConstants {
19:
20: public static String SCHEMA_URI = "http://www.w3.org/2001/XMLSchema";
21:
22: /* qnames */
23: public static QName SCHEMA = new QName(SCHEMA_URI, "schema");
24: public static QName COMPLEX_TYPE = new QName(SCHEMA_URI,
25: "complexType");
26: public static QName ELEMENT = new QName(SCHEMA_URI, "element");
27: public static QName SEQUENCE = new QName(SCHEMA_URI, "sequence");
28: public static QName SIMPLE_TYPE = new QName(SCHEMA_URI,
29: "simpleType");
30:
31: /* unsupported */
32: public static QName SIMPLE_CONTENT = new QName(SCHEMA_URI,
33: "simpleContent");
34: public static QName RESTRICTION = new QName(SCHEMA_URI,
35: "restriction");
36: public static QName EXTENSION = new QName(SCHEMA_URI, "extension");
37: public static QName ATTRIBUTE = new QName(SCHEMA_URI, "attribute");
38: public static QName ATTRIBUTE_GROUP = new QName(SCHEMA_URI,
39: "attributeGroup");
40: public static QName ANY_ATTRIBUTE = new QName(SCHEMA_URI,
41: "anyAttribute");
42: public static QName COMPLEX_CONTENT = new QName(SCHEMA_URI,
43: "complexContent");
44: public static QName ALL = new QName(SCHEMA_URI, "all");
45: public static QName CHOICE = new QName(SCHEMA_URI, "choice");
46: public static QName GROUP = new QName(SCHEMA_URI, "group");
47: public static QName ANY = new QName(SCHEMA_URI, "any");
48: public static QName ANNOTATION = new QName(SCHEMA_URI, "annotation");
49:
50: /* types */
51: public static QName TYPE_STRING = new QName(SCHEMA_URI, "string");
52: public static QName TYPE_INT = new QName(SCHEMA_URI, "int");
53: public static QName TYPE_LONG = new QName(SCHEMA_URI, "long");
54: public static QName TYPE_SHORT = new QName(SCHEMA_URI, "short");
55: public static QName TYPE_BOOLEAN = new QName(SCHEMA_URI, "boolean");
56: public static QName TYPE_BYTE = new QName(SCHEMA_URI, "byte");
57: public static QName TYPE_FLOAT = new QName(SCHEMA_URI, "float");
58: public static QName TYPE_DOUBLE = new QName(SCHEMA_URI, "double");
59: public static QName TYPE_BASE64_BINARY = new QName(SCHEMA_URI,
60: "base64Binary");
61: public static QName TYPE_HEX_BINARY = new QName(SCHEMA_URI,
62: "hexBinary");
63: public static QName TYPE_QNAME = new QName(SCHEMA_URI, "QName");
64:
65: }
|