public class XSDConstants
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ABSTRACT_ATTRIBUTE
The value
"abstract"; an attribute on an XML Schema element. |
static int |
ALL_ELEMENT
The value
0. |
static java.lang.String |
ALL_ELEMENT_TAG
The value
"all". |
static int |
ANNOTATION_ELEMENT
The value
1. |
static java.lang.String |
ANNOTATION_ELEMENT_TAG
The value
"annotation". |
static int |
ANY_ELEMENT
The value
2. |
static java.lang.String |
ANY_ELEMENT_TAG
The value
"any". |
static int |
ANYATTRIBUTE_ELEMENT
The value
3. |
static java.lang.String |
ANYATTRIBUTE_ELEMENT_TAG
The value
"anyAttribute". |
static int |
APPINFO_ELEMENT
The value
4. |
static java.lang.String |
APPINFO_ELEMENT_TAG
The value
"appinfo". |
static int |
ATTRIBUTE_ELEMENT
The value
5. |
static java.lang.String |
ATTRIBUTE_ELEMENT_TAG
The value
"attribute". |
static java.lang.String |
ATTRIBUTEFORMDEFAULT_ATTRIBUTE
The value
"attributeFormDefault"; an attribute on an XML Schema element. |
static int |
ATTRIBUTEGROUP_ELEMENT
The value
6. |
static java.lang.String |
ATTRIBUTEGROUP_ELEMENT_TAG
The value
"attributeGroup". |
static java.lang.String |
BASE_ATTRIBUTE
The value
"base"; an attribute on an XML Schema element. |
static java.lang.String |
BLOCK_ATTRIBUTE
The value
"block"; an attribute on an XML Schema element. |
static java.lang.String |
BLOCKDEFAULT_ATTRIBUTE
The value
"blockDefault"; an attribute on an XML Schema element. |
static int |
CHOICE_ELEMENT
The value
7. |
static java.lang.String |
CHOICE_ELEMENT_TAG
The value
"choice". |
static int |
COMPLEXCONTENT_ELEMENT
The value
8. |
static java.lang.String |
COMPLEXCONTENT_ELEMENT_TAG
The value
"complexContent". |
static int |
COMPLEXTYPE_ELEMENT
The value
9. |
static java.lang.String |
COMPLEXTYPE_ELEMENT_TAG
The value
"complexType". |
static java.lang.String |
DEFAULT_ATTRIBUTE
The value
"default"; an attribute on an XML Schema element. |
static java.lang.String |
DEFREF_ATTRIBUTE
The value
"defRef"; an attribute on an XML Schema element. |
static int |
DOCUMENTATION_ELEMENT
The value
10. |
static java.lang.String |
DOCUMENTATION_ELEMENT_TAG
The value
"documentation". |
static int |
ELEMENT_ELEMENT
The value
11. |
static java.lang.String |
ELEMENT_ELEMENT_TAG
The value
"element". |
static java.lang.String[] |
ELEMENT_TAGS
The sorted strings representing all
XML Schema element tags.
|
static java.lang.String |
ELEMENTFORMDEFAULT_ATTRIBUTE
The value
"elementFormDefault"; an attribute on an XML Schema element. |
static int |
ENUMERATION_ELEMENT
The value
12. |
static java.lang.String |
ENUMERATION_ELEMENT_TAG
The value
"enumeration". |
static int |
EXTENSION_ELEMENT
The value
13. |
static java.lang.String |
EXTENSION_ELEMENT_TAG
The value
"extension". |
static int |
FIELD_ELEMENT
The value
14. |
static java.lang.String |
FIELD_ELEMENT_TAG
The value
"field". |
static java.lang.String |
FINAL_ATTRIBUTE
The value
"final"; an attribute on an XML Schema element. |
static java.lang.String |
FINALDEFAULT_ATTRIBUTE
The value
"finalDefault"; an attribute on an XML Schema element. |
static java.lang.String |
FIXED_ATTRIBUTE
The value
"fixed"; an attribute on an XML Schema element. |
static java.lang.String |
FORM_ATTRIBUTE
The value
"form"; an attribute on an XML Schema element. |
static int |
FRACTIONDIGITS_ELEMENT
The value
15. |
static java.lang.String |
FRACTIONDIGITS_ELEMENT_TAG
The value
"fractionDigits". |
static int |
GROUP_ELEMENT
The value
16. |
static java.lang.String |
GROUP_ELEMENT_TAG
The value
"group". |
static java.lang.String[] |
HFP_ELEMENT_TAGS
The sorted strings representing all XML Schema
has facet and property element tags.
|
static int |
HFP_HASFACET_ELEMENT
The value
0. |
static java.lang.String |
HFP_HASFACET_ELEMENT_TAG
The value
"hasFacet". |
static int |
HFP_HASPROPERTY_ELEMENT
The value
1. |
static java.lang.String |
HFP_HASPROPERTY_ELEMENT_TAG
The value
"hasProperty". |
static java.lang.String |
HFP_NAME_ATTRIBUTE
The value
"name"; an attribute on an XML Schema has facet and property element. |
static java.lang.String |
HFP_VALUE_ATTRIBUTE
The value
"value"; an attribute on an XML Schema has facet and property element. |
static java.lang.String |
ID_ATTRIBUTE
The value
"id"; an attribute on an XML Schema element. |
static int |
IMPORT_ELEMENT
The value
17. |
static java.lang.String |
IMPORT_ELEMENT_TAG
The value
"import". |
static int |
INCLUDE_ELEMENT
The value
18. |
static java.lang.String |
INCLUDE_ELEMENT_TAG
The value
"include". |
static java.lang.String |
ITEMTYPE_ATTRIBUTE
The value
"itemType"; an attribute on an XML Schema element. |
static int |
KEY_ELEMENT
The value
19. |
static java.lang.String |
KEY_ELEMENT_TAG
The value
"key". |
static int |
KEYREF_ELEMENT
The value
20. |
static java.lang.String |
KEYREF_ELEMENT_TAG
The value
"keyref". |
static int |
LENGTH_ELEMENT
The value
21. |
static java.lang.String |
LENGTH_ELEMENT_TAG
The value
"length". |
static int |
LIST_ELEMENT
The value
22. |
static java.lang.String |
LIST_ELEMENT_TAG
The value
"list". |
static int |
MAXEXCLUSIVE_ELEMENT
The value
23. |
static java.lang.String |
MAXEXCLUSIVE_ELEMENT_TAG
The value
"maxExclusive". |
static int |
MAXINCLUSIVE_ELEMENT
The value
24. |
static java.lang.String |
MAXINCLUSIVE_ELEMENT_TAG
The value
"maxInclusive". |
static int |
MAXLENGTH_ELEMENT
The value
25. |
static java.lang.String |
MAXLENGTH_ELEMENT_TAG
The value
"maxLength". |
static java.lang.String |
MAXOCCURS_ATTRIBUTE
The value
"maxOccurs"; an attribute on an XML Schema element. |
static java.lang.String |
MEMBERTYPES_ATTRIBUTE
The value
"memberTypes"; an attribute on an XML Schema element. |
static int |
MINEXCLUSIVE_ELEMENT
The value
26. |
static java.lang.String |
MINEXCLUSIVE_ELEMENT_TAG
The value
"minExclusive". |
static int |
MININCLUSIVE_ELEMENT
The value
27. |
static java.lang.String |
MININCLUSIVE_ELEMENT_TAG
The value
"minInclusive". |
static int |
MINLENGTH_ELEMENT
The value
28. |
static java.lang.String |
MINLENGTH_ELEMENT_TAG
The value
"minLength". |
static java.lang.String |
MINOCCURS_ATTRIBUTE
The value
"minOccurs"; an attribute on an XML Schema element. |
static java.lang.String |
MIXED_ATTRIBUTE
The value
"mixed"; an attribute on an XML Schema element. |
static java.lang.String |
NAME_ATTRIBUTE
The value
"name"; an attribute on an XML Schema element. |
static java.lang.String |
NAMESPACE_ATTRIBUTE
The value
"namespace"; an attribute on an XML Schema element. |
static java.lang.String |
NILLABLE_ATTRIBUTE
The value
"nillable"; an attribute on an XML Schema element. |
static int |
NOTATION_ELEMENT
The value
29. |
static java.lang.String |
NOTATION_ELEMENT_TAG
The value
"notation". |
static java.lang.String |
OCCURS_ATTRIBUTE
The value
"occurs"; an attribute on an XML Schema element. |
static java.lang.String |
PART1
The value
"http://www.w3.org/TR/xmlschema-1/". |
static java.lang.String |
PART2
The value
"http://www.w3.org/TR/xmlschema-2/". |
static int |
PATTERN_ELEMENT
The value
30. |
static java.lang.String |
PATTERN_ELEMENT_TAG
The value
"pattern". |
static java.lang.String |
PROCESSCONTENTS_ATTRIBUTE
The value
"processContents"; an attribute on an XML Schema element. |
static java.lang.String |
PUBLIC_ATTRIBUTE
The value
"public"; an attribute on an XML Schema element. |
static int |
REDEFINE_ELEMENT
The value
31. |
static java.lang.String |
REDEFINE_ELEMENT_TAG
The value
"redefine". |
static java.lang.String |
REF_ATTRIBUTE
The value
"ref"; an attribute on an XML Schema element. |
static java.lang.String |
REFER_ATTRIBUTE
The value
"refer"; an attribute on an XML Schema element. |
static int |
RESTRICTION_ELEMENT
The value
32. |
static java.lang.String |
RESTRICTION_ELEMENT_TAG
The value
"restriction". |
static int |
SCHEMA_ELEMENT
The value
33. |
static java.lang.String |
SCHEMA_ELEMENT_TAG
The value
"schema". |
static java.lang.String |
SCHEMA_FOR_SCHEMA_URI_1999
The value
http://www.w3.org/1999/XMLSchema". |
static java.lang.String |
SCHEMA_FOR_SCHEMA_URI_2000_10
The value
"http://www.w3.org/2000/10/XMLSchema". |
static java.lang.String |
SCHEMA_FOR_SCHEMA_URI_2001
The value
"http://www.w3.org/2001/XMLSchema". |
static java.lang.String |
SCHEMA_HAS_FACET_AND_PROPERTY_URI_2001
The value
"http://www.w3.org/2001/XMLSchema-hasFacetAndProperty". |
static java.lang.String |
SCHEMA_INSTANCE_URI_2001
The value
"http://www.w3.org/2001/XMLSchema-instance". |
static java.lang.String |
SCHEMALOCATION_ATTRIBUTE
The value
"schemaLocation"; an attribute on an XML Schema element. |
static int |
SELECTOR_ELEMENT
The value
34. |
static java.lang.String |
SELECTOR_ELEMENT_TAG
The value
"selector". |
static int |
SEQUENCE_ELEMENT
The value
35. |
static java.lang.String |
SEQUENCE_ELEMENT_TAG
The value
"sequence". |
static int |
SIMPLECONTENT_ELEMENT
The value
36. |
static java.lang.String |
SIMPLECONTENT_ELEMENT_TAG
The value
"simpleContent". |
static int |
SIMPLETYPE_ELEMENT
The value
37. |
static java.lang.String |
SIMPLETYPE_ELEMENT_TAG
The value
"simpleType". |
static java.lang.String |
SOURCE_ATTRIBUTE
The value
"source"; an attribute on an XML Schema element. |
static java.lang.String |
SUBSTITUTIONGROUP_ATTRIBUTE
The value
"substitutionGroup"; an attribute on an XML Schema element. |
static java.lang.String |
SYSTEM_ATTRIBUTE
The value
"system"; an attribute on an XML Schema element. |
static java.lang.String |
TARGETNAMESPACE_ATTRIBUTE
The value
"targetNamespace"; an attribute on an XML Schema element. |
static int |
TOTALDIGITS_ELEMENT
The value
38. |
static java.lang.String |
TOTALDIGITS_ELEMENT_TAG
The value
"totalDigits". |
static java.lang.String |
TYPE_ATTRIBUTE
The value
"type"; an attribute on an XML Schema element. |
static int |
UNION_ELEMENT
The value
39. |
static java.lang.String |
UNION_ELEMENT_TAG
The value
"union". |
static int |
UNIQUE_ELEMENT
The value
40. |
static java.lang.String |
UNIQUE_ELEMENT_TAG
The value
"unique". |
static java.lang.String |
USE_ATTRIBUTE
The value
"use"; an attribute on an XML Schema element. |
static java.lang.String |
VALUE_ATTRIBUTE
The value
"value"; an attribute on an XML Schema element. |
static java.lang.String |
VERSION_ATTRIBUTE
The value
"version"; an attribute on an XML Schema element. |
static int |
WHITESPACE_ELEMENT
The value
41. |
static java.lang.String |
WHITESPACE_ELEMENT_TAG
The value
"whiteSpace". |
static java.lang.String |
XML_NAMESPACE_URI_1998
The value
"http://www.w3.org/XML/1998/namespace". |
static java.lang.String |
XMLNS_URI_2000
The value
"http://www.w3.org/2000/xmlns/". |
static java.lang.String |
XPATH_ATTRIBUTE
The value
"xpath"; an attribute on an XML Schema element. |
| Constructor and Description |
|---|
XSDConstants() |
| Modifier and Type | Method and Description |
|---|---|
static int |
hfpNodeType(org.w3c.dom.Node node)
Returns the index of the node's element type,
if it is an XML Schema has facet and property element tag, or -1.
|
static int |
hfpNodeType(java.lang.String localName)
Returns the index of the element type,
if it is an XML Schema has facet and property element tag, or -1.
|
static boolean |
isAnySimpleType(XSDTypeDefinition xsdTypeDefinition)
Returns whether the type definition is the
anySimpleType.
|
static boolean |
isAnyType(XSDTypeDefinition xsdTypeDefinition)
|
static boolean |
isOrIsDerivedFrom(XSDSimpleTypeDefinition xsdSimpleTypeDefinition,
java.lang.String name)
Returns whether the type definition is a built-in type with the given name
or is derived from a built-in type with that name.
|
static boolean |
isOrIsDerivedFrom(XSDTypeDefinition xsdTypeDefinition,
java.lang.String name,
java.lang.String namespace)
Returns whether the type definition has the given namespace and name
or is derived from a type with that namespace and name.
|
static boolean |
isOrIsDerivedFromID(XSDSimpleTypeDefinition xsdSimpleTypeDefinition)
Returns whether the simple type definition is
ID or a type derived from it.
|
static boolean |
isSchemaForSchemaNamespace(java.lang.String namespace)
Returns whether the given namespace is one of the XML Schema for Schema namespaces.
|
static boolean |
isSchemaHasFacetAndPropertyNamespace(java.lang.String namespace)
Returns whether the give namespace is one of the XML Schema has facet and property namespaces.
|
static boolean |
isSchemaInstanceNamespace(java.lang.String namespace)
Returns whether the given namespace is (one of) the XML Schema Instance namespace(s).
|
static boolean |
isURType(XSDTypeDefinition xsdTypeDefinition)
Returns whether the type definition is one of the flavours of the ur-type, i.e.,
complex anyType,
simple anyType, or
anySimpleType.
|
static boolean |
isXMLNamespace(java.lang.String namespace)
Returns whether the given namespace is (one of) the XML namespace(s).
|
static boolean |
isXMLNSNamespace(java.lang.String namespace)
Returns whether the given namespace is (one of) the XMLNS namespace(s).
|
static java.lang.String |
lookupQName(org.w3c.dom.Element element,
java.lang.String qName)
Returns the URI corresponding to the resolved QName.
|
static java.lang.String |
lookupQNameForAttribute(org.w3c.dom.Element element,
java.lang.String localNameOfAttribute)
Returns the URI corresponding to the resolved QName of the value of the attribute of the element.
|
static java.lang.String |
lookupQualifier(org.w3c.dom.Node node,
java.lang.String namespaceURI)
Returns the QName qualifier than is available at the given node to access the given namespace URI.
|
static int |
nodeType(org.w3c.dom.Node node)
Returns the index of the node's element type,
if it is an XML Schema element tag, or -1.
|
static int |
nodeType(java.lang.String localName)
Returns the index of the element type,
if it is an XML Schema element tag, or -1.
|
static java.lang.String |
resolveSchemaLocation(java.lang.String baseSchemaLocationURI,
java.lang.String namespaceURI,
java.lang.String schemaLocationURI)
Resolve the namespace and schema location relative to the base schema location.
|
static java.lang.String |
uri(org.w3c.dom.Node node)
Returns the URI representation of the node's namespace URI and local name,
i.e.,
. |
public static final java.lang.String PART1
"http://www.w3.org/TR/xmlschema-1/".public static final java.lang.String PART2
"http://www.w3.org/TR/xmlschema-2/".public static final java.lang.String XML_NAMESPACE_URI_1998
"http://www.w3.org/XML/1998/namespace".public static final java.lang.String XMLNS_URI_2000
"http://www.w3.org/2000/xmlns/".public static final java.lang.String SCHEMA_FOR_SCHEMA_URI_1999
http://www.w3.org/1999/XMLSchema".public static final java.lang.String SCHEMA_FOR_SCHEMA_URI_2000_10
"http://www.w3.org/2000/10/XMLSchema".public static final java.lang.String SCHEMA_FOR_SCHEMA_URI_2001
"http://www.w3.org/2001/XMLSchema".public static final java.lang.String SCHEMA_INSTANCE_URI_2001
"http://www.w3.org/2001/XMLSchema-instance".public static final java.lang.String ALL_ELEMENT_TAG
"all".ALL_ELEMENT,
ELEMENT_TAGS,
nodeType(String),
Constant Field Valuespublic static final java.lang.String ANNOTATION_ELEMENT_TAG
"annotation".public static final java.lang.String ANY_ELEMENT_TAG
"any".ANY_ELEMENT,
ELEMENT_TAGS,
nodeType(String),
Constant Field Valuespublic static final java.lang.String ANYATTRIBUTE_ELEMENT_TAG
"anyAttribute".public static final java.lang.String APPINFO_ELEMENT_TAG
"appinfo".public static final java.lang.String ATTRIBUTE_ELEMENT_TAG
"attribute".public static final java.lang.String ATTRIBUTEGROUP_ELEMENT_TAG
"attributeGroup".public static final java.lang.String CHOICE_ELEMENT_TAG
"choice".public static final java.lang.String COMPLEXCONTENT_ELEMENT_TAG
"complexContent".public static final java.lang.String COMPLEXTYPE_ELEMENT_TAG
"complexType".public static final java.lang.String DOCUMENTATION_ELEMENT_TAG
"documentation".public static final java.lang.String ELEMENT_ELEMENT_TAG
"element".public static final java.lang.String ENUMERATION_ELEMENT_TAG
"enumeration".public static final java.lang.String EXTENSION_ELEMENT_TAG
"extension".public static final java.lang.String FIELD_ELEMENT_TAG
"field".public static final java.lang.String FRACTIONDIGITS_ELEMENT_TAG
"fractionDigits".public static final java.lang.String GROUP_ELEMENT_TAG
"group".public static final java.lang.String IMPORT_ELEMENT_TAG
"import".public static final java.lang.String INCLUDE_ELEMENT_TAG
"include".public static final java.lang.String KEY_ELEMENT_TAG
"key".KEY_ELEMENT,
ELEMENT_TAGS,
nodeType(String),
Constant Field Valuespublic static final java.lang.String KEYREF_ELEMENT_TAG
"keyref".public static final java.lang.String LENGTH_ELEMENT_TAG
"length".public static final java.lang.String LIST_ELEMENT_TAG
"list".public static final java.lang.String MAXEXCLUSIVE_ELEMENT_TAG
"maxExclusive".public static final java.lang.String MAXINCLUSIVE_ELEMENT_TAG
"maxInclusive".public static final java.lang.String MAXLENGTH_ELEMENT_TAG
"maxLength".public static final java.lang.String MINEXCLUSIVE_ELEMENT_TAG
"minExclusive".public static final java.lang.String MININCLUSIVE_ELEMENT_TAG
"minInclusive".public static final java.lang.String MINLENGTH_ELEMENT_TAG
"minLength".public static final java.lang.String NOTATION_ELEMENT_TAG
"notation".public static final java.lang.String PATTERN_ELEMENT_TAG
"pattern".public static final java.lang.String REDEFINE_ELEMENT_TAG
"redefine".public static final java.lang.String RESTRICTION_ELEMENT_TAG
"restriction".public static final java.lang.String SCHEMA_ELEMENT_TAG
"schema".public static final java.lang.String SELECTOR_ELEMENT_TAG
"selector".public static final java.lang.String SEQUENCE_ELEMENT_TAG
"sequence".public static final java.lang.String SIMPLECONTENT_ELEMENT_TAG
"simpleContent".public static final java.lang.String SIMPLETYPE_ELEMENT_TAG
"simpleType".public static final java.lang.String TOTALDIGITS_ELEMENT_TAG
"totalDigits".public static final java.lang.String UNION_ELEMENT_TAG
"union".public static final java.lang.String UNIQUE_ELEMENT_TAG
"unique".public static final java.lang.String WHITESPACE_ELEMENT_TAG
"whiteSpace".public static final int ALL_ELEMENT
0.public static final int ANNOTATION_ELEMENT
1.public static final int ANY_ELEMENT
2.public static final int ANYATTRIBUTE_ELEMENT
3.public static final int APPINFO_ELEMENT
4.public static final int ATTRIBUTE_ELEMENT
5.public static final int ATTRIBUTEGROUP_ELEMENT
6.public static final int CHOICE_ELEMENT
7.public static final int COMPLEXCONTENT_ELEMENT
8.public static final int COMPLEXTYPE_ELEMENT
9.public static final int DOCUMENTATION_ELEMENT
10.public static final int ELEMENT_ELEMENT
11.public static final int ENUMERATION_ELEMENT
12.public static final int EXTENSION_ELEMENT
13.public static final int FIELD_ELEMENT
14.public static final int FRACTIONDIGITS_ELEMENT
15.public static final int GROUP_ELEMENT
16.public static final int IMPORT_ELEMENT
17.public static final int INCLUDE_ELEMENT
18.public static final int KEY_ELEMENT
19.public static final int KEYREF_ELEMENT
20.public static final int LENGTH_ELEMENT
21.public static final int LIST_ELEMENT
22.public static final int MAXEXCLUSIVE_ELEMENT
23.public static final int MAXINCLUSIVE_ELEMENT
24.public static final int MAXLENGTH_ELEMENT
25.public static final int MINEXCLUSIVE_ELEMENT
26.public static final int MININCLUSIVE_ELEMENT
27.public static final int MINLENGTH_ELEMENT
28.public static final int NOTATION_ELEMENT
29.public static final int PATTERN_ELEMENT
30.public static final int REDEFINE_ELEMENT
31.public static final int RESTRICTION_ELEMENT
32.public static final int SCHEMA_ELEMENT
33.public static final int SELECTOR_ELEMENT
34.public static final int SEQUENCE_ELEMENT
35.public static final int SIMPLECONTENT_ELEMENT
36.public static final int SIMPLETYPE_ELEMENT
37.public static final int TOTALDIGITS_ELEMENT
38.public static final int UNION_ELEMENT
39.public static final int UNIQUE_ELEMENT
40.public static final int WHITESPACE_ELEMENT
41.public static final java.lang.String[] ELEMENT_TAGS
nodeType(String),
nodeType(Node)public static final java.lang.String ABSTRACT_ATTRIBUTE
"abstract"; an attribute on an XML Schema element.ELEMENT_TAGS,
Constant Field Valuespublic static final java.lang.String ATTRIBUTEFORMDEFAULT_ATTRIBUTE
"attributeFormDefault"; an attribute on an XML Schema element.ELEMENT_TAGS,
Constant Field Valuespublic static final java.lang.String BASE_ATTRIBUTE
"base"; an attribute on an XML Schema element.ELEMENT_TAGS,
Constant Field Valuespublic static final java.lang.String BLOCK_ATTRIBUTE
"block"; an attribute on an XML Schema element.ELEMENT_TAGS,
Constant Field Valuespublic static final java.lang.String BLOCKDEFAULT_ATTRIBUTE
"blockDefault"; an attribute on an XML Schema element.ELEMENT_TAGS,
Constant Field Valuespublic static final java.lang.String DEFREF_ATTRIBUTE
"defRef"; an attribute on an XML Schema element.ELEMENT_TAGS,
Constant Field Valuespublic static final java.lang.String DEFAULT_ATTRIBUTE
"default"; an attribute on an XML Schema element.ELEMENT_TAGS,
Constant Field Valuespublic static final java.lang.String ELEMENTFORMDEFAULT_ATTRIBUTE
"elementFormDefault"; an attribute on an XML Schema element.ELEMENT_TAGS,
Constant Field Valuespublic static final java.lang.String FINAL_ATTRIBUTE
"final"; an attribute on an XML Schema element.ELEMENT_TAGS,
Constant Field Valuespublic static final java.lang.String FINALDEFAULT_ATTRIBUTE
"finalDefault"; an attribute on an XML Schema element.ELEMENT_TAGS,
Constant Field Valuespublic static final java.lang.String FIXED_ATTRIBUTE
"fixed"; an attribute on an XML Schema element.ELEMENT_TAGS,
Constant Field Valuespublic static final java.lang.String FORM_ATTRIBUTE
"form"; an attribute on an XML Schema element.ELEMENT_TAGS,
Constant Field Valuespublic static final java.lang.String ID_ATTRIBUTE
"id"; an attribute on an XML Schema element.ELEMENT_TAGS,
Constant Field Valuespublic static final java.lang.String ITEMTYPE_ATTRIBUTE
"itemType"; an attribute on an XML Schema element.ELEMENT_TAGS,
Constant Field Valuespublic static final java.lang.String MAXOCCURS_ATTRIBUTE
"maxOccurs"; an attribute on an XML Schema element.ELEMENT_TAGS,
Constant Field Valuespublic static final java.lang.String MEMBERTYPES_ATTRIBUTE
"memberTypes"; an attribute on an XML Schema element.ELEMENT_TAGS,
Constant Field Valuespublic static final java.lang.String MINOCCURS_ATTRIBUTE
"minOccurs"; an attribute on an XML Schema element.ELEMENT_TAGS,
Constant Field Valuespublic static final java.lang.String MIXED_ATTRIBUTE
"mixed"; an attribute on an XML Schema element.ELEMENT_TAGS,
Constant Field Valuespublic static final java.lang.String NAME_ATTRIBUTE
"name"; an attribute on an XML Schema element.ELEMENT_TAGS,
Constant Field Valuespublic static final java.lang.String NAMESPACE_ATTRIBUTE
"namespace"; an attribute on an XML Schema element.ELEMENT_TAGS,
Constant Field Valuespublic static final java.lang.String NILLABLE_ATTRIBUTE
"nillable"; an attribute on an XML Schema element.ELEMENT_TAGS,
Constant Field Valuespublic static final java.lang.String OCCURS_ATTRIBUTE
"occurs"; an attribute on an XML Schema element.ELEMENT_TAGS,
Constant Field Valuespublic static final java.lang.String PROCESSCONTENTS_ATTRIBUTE
"processContents"; an attribute on an XML Schema element.ELEMENT_TAGS,
Constant Field Valuespublic static final java.lang.String PUBLIC_ATTRIBUTE
"public"; an attribute on an XML Schema element.ELEMENT_TAGS,
Constant Field Valuespublic static final java.lang.String REF_ATTRIBUTE
"ref"; an attribute on an XML Schema element.ELEMENT_TAGS,
Constant Field Valuespublic static final java.lang.String REFER_ATTRIBUTE
"refer"; an attribute on an XML Schema element.ELEMENT_TAGS,
Constant Field Valuespublic static final java.lang.String SCHEMALOCATION_ATTRIBUTE
"schemaLocation"; an attribute on an XML Schema element.ELEMENT_TAGS,
Constant Field Valuespublic static final java.lang.String SOURCE_ATTRIBUTE
"source"; an attribute on an XML Schema element.ELEMENT_TAGS,
Constant Field Valuespublic static final java.lang.String SUBSTITUTIONGROUP_ATTRIBUTE
"substitutionGroup"; an attribute on an XML Schema element.ELEMENT_TAGS,
Constant Field Valuespublic static final java.lang.String SYSTEM_ATTRIBUTE
"system"; an attribute on an XML Schema element.ELEMENT_TAGS,
Constant Field Valuespublic static final java.lang.String TARGETNAMESPACE_ATTRIBUTE
"targetNamespace"; an attribute on an XML Schema element.ELEMENT_TAGS,
Constant Field Valuespublic static final java.lang.String TYPE_ATTRIBUTE
"type"; an attribute on an XML Schema element.ELEMENT_TAGS,
Constant Field Valuespublic static final java.lang.String USE_ATTRIBUTE
"use"; an attribute on an XML Schema element.ELEMENT_TAGS,
Constant Field Valuespublic static final java.lang.String VALUE_ATTRIBUTE
"value"; an attribute on an XML Schema element.ELEMENT_TAGS,
Constant Field Valuespublic static final java.lang.String VERSION_ATTRIBUTE
"version"; an attribute on an XML Schema element.ELEMENT_TAGS,
Constant Field Valuespublic static final java.lang.String XPATH_ATTRIBUTE
"xpath"; an attribute on an XML Schema element.ELEMENT_TAGS,
Constant Field Valuespublic static final java.lang.String SCHEMA_HAS_FACET_AND_PROPERTY_URI_2001
"http://www.w3.org/2001/XMLSchema-hasFacetAndProperty".public static final java.lang.String HFP_HASFACET_ELEMENT_TAG
"hasFacet".public static final java.lang.String HFP_HASPROPERTY_ELEMENT_TAG
"hasProperty".public static final int HFP_HASFACET_ELEMENT
0.public static final int HFP_HASPROPERTY_ELEMENT
1.public static final java.lang.String[] HFP_ELEMENT_TAGS
hfpNodeType(String)public static final java.lang.String HFP_NAME_ATTRIBUTE
"name"; an attribute on an XML Schema has facet and property element.HFP_ELEMENT_TAGS,
Constant Field Valuespublic static final java.lang.String HFP_VALUE_ATTRIBUTE
"value"; an attribute on an XML Schema has facet and property element.HFP_ELEMENT_TAGS,
Constant Field Valuespublic static boolean isXMLNamespace(java.lang.String namespace)
namespace - a namespace.public static boolean isXMLNSNamespace(java.lang.String namespace)
namespace - a namespace.public static boolean isSchemaForSchemaNamespace(java.lang.String namespace)
namespace - a namespace.public static boolean isSchemaInstanceNamespace(java.lang.String namespace)
namespace - a namespace.public static final int nodeType(java.lang.String localName)
ELEMENT_TAGS,
nodeType(Node)public static final int nodeType(org.w3c.dom.Node node)
ELEMENT_TAGS,
nodeType(String)public static final java.lang.String uri(org.w3c.dom.Node node)
# .public static boolean isSchemaHasFacetAndPropertyNamespace(java.lang.String namespace)
namespace - a namespace.public static final int hfpNodeType(java.lang.String localName)
HFP_ELEMENT_TAGS,
hfpNodeType(Node)public static int hfpNodeType(org.w3c.dom.Node node)
isSchemaHasFacetAndPropertyNamespace(java.lang.String),
HFP_ELEMENT_TAGS,
hfpNodeType(String)public static java.lang.String lookupQNameForAttribute(org.w3c.dom.Element element,
java.lang.String localNameOfAttribute)
element - an element.localNameOfAttribute - the name of the attribute whose value to use.lookupQName(Element, String),
Element.getAttribute(String)public static java.lang.String lookupQName(org.w3c.dom.Element element,
java.lang.String qName)
element - an element.qName - the QName to resolve in the context of the given element.public static java.lang.String lookupQualifier(org.w3c.dom.Node node,
java.lang.String namespaceURI)
node - the context node at which to lookup a qualifier.namespaceURI - the namespace to be referenced.public static java.lang.String resolveSchemaLocation(java.lang.String baseSchemaLocationURI,
java.lang.String namespaceURI,
java.lang.String schemaLocationURI)
resolveSchemaLocation
("http://www.example.com/A/a.xsd",
"http://www.example.com/B",
"../B/b.xsd");
would yield
"http://www.example.com/B/b.xsd"When no namespace schema location is provided, the namespace itself will be used.
baseSchemaLocationURI - the location of the schema containing the reference, i.e., XSDSchema.getSchemaLocation().namespaceURI - the namespace being resolved, i.e., XSDImport.getNamespace().schemaLocationURI - the suggested location of the namespace being resolved, i.e., XSDSchemaDirective.getSchemaLocation().public static boolean isURType(XSDTypeDefinition xsdTypeDefinition)
xsdTypeDefinition - a simple or complex type definition.public static boolean isAnyType(XSDTypeDefinition xsdTypeDefinition)
xsdTypeDefinition - a simple or complex type definition.public static boolean isAnySimpleType(XSDTypeDefinition xsdTypeDefinition)
xsdTypeDefinition - a simple or complex type definition.public static boolean isOrIsDerivedFrom(XSDTypeDefinition xsdTypeDefinition, java.lang.String name, java.lang.String namespace)
xsdTypeDefinition - a type definition.public static boolean isOrIsDerivedFrom(XSDSimpleTypeDefinition xsdSimpleTypeDefinition, java.lang.String name)
xsdSimpleTypeDefinition - a type definition.public static boolean isOrIsDerivedFromID(XSDSimpleTypeDefinition xsdSimpleTypeDefinition)
xsdSimpleTypeDefinition - a simple type definition.