Package net.sf.saxon.om
Class NamespaceConstant
java.lang.Object
net.sf.saxon.om.NamespaceConstant
This class is not instantiated, it exists to hold a set of constants representing known
namespaces. For each of these, there is a constant for the namespace URI and for many of
them, there is a numeric constant used as the code for this namespace in the name pool.
This class also defines constant URIs for some objects other than namespaces - for example, URIs that identify the various object models used in the JAXP XPath API, and the Unicode codepoint collation URI.
- Author:
- Michael H. Kay
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
Namespace for names allocated to anonymous types.static final String
URI identifying the Unicode codepoint collationstatic final String
Namespace for types representing external .NET objectsstatic final String
The standard namespace for system error codesstatic final String
Fixed namespace name for EXSLT/Common: "http://exslt.org/common"static final String
Fixed namespace name for EXSLT/date: "http://exslt.org/dates-and-times"static final String
Fixed namespace name for EXSLT/math: "http://exslt.org/math"static final String
Fixed namespace name for EXSLT/random: "http://exslt.org/random"static final String
Fixed namespace name for EXSLT/sets: "http://exslt.org/sets"static final String
The standard namespace for functions and operatorsstatic final String
Namespace for types representing external Java objectsstatic final String
Predefined XQuery namespace for local functionsstatic final String
Recognize the Microsoft namespace so we can give a suitably sarcastic error messagestatic final String
A URI representing the null namespace (actually, an empty string)static final short
The numeric code representing the null namespace (actually, zero)static final int
The namespace code for the null namespacestatic final String
URI identifying the DOM4J object model for use in the JAXP 1.3 XPath APIstatic final String
URI identifying the JDOM object model for use in the JAXP 1.3 XPath APIstatic final String
URI identifying the Saxon object model for use in the JAXP 1.3 XPath APIstatic final String
URI identifying the XOM object model for use in the JAXP 1.3 XPath APIstatic final String
Fixed namespace name for SAXON: "http://saxon.sf.net/"static final short
Numeric code representing the SAXON namespacestatic final String
Namespace name for XML Schema: "http://www.w3.org/2001/XMLSchema"static final short
Numeric code representing the schema namespacestatic final String
XML-schema-defined namespace for use in instance documents ("xsi")static final String
Namespace for additional XPath-defined data types: "http://www.w3.org/2005/xpath-datatypes"static final short
Numeric code representing the schema namespacestatic final String
static final String
static final String
static final String
Older versions of XDT namespacestatic final String
The XHTML namespace http://www.w3.org/1999/xhtmlstatic final String
Fixed namespace name for XML: "http://www.w3.org/XML/1998/namespace".static final short
Numeric code representing the XML namespacestatic final int
The namespace code for the XML namespacestatic final String
The XMLNS namespace (used in DOM)static final short
static final String
Fixed namespace name for XSLT: "http://www.w3.org/1999/XSL/Transform"static final short
Numeric code representing the XSLT namespace -
Method Summary
Modifier and TypeMethodDescriptionstatic final boolean
isReserved
(String uri) Determine whether a namespace is a reserved namespacestatic final boolean
isReservedInQuery
(String uri) Determine whether a namespace is a reserved namespacestatic final boolean
isSpecialURICode
(short uriCode) Determine whether a namespace is a reserved namespacestatic final boolean
isXDTNamespace
(String uri) Test whether a namespace is the XDT namespace
-
Field Details
-
NULL
A URI representing the null namespace (actually, an empty string)- See Also:
-
NULL_CODE
public static final short NULL_CODEThe numeric code representing the null namespace (actually, zero)- See Also:
-
NULL_NAMESPACE_CODE
public static final int NULL_NAMESPACE_CODEThe namespace code for the null namespace- See Also:
-
XML
Fixed namespace name for XML: "http://www.w3.org/XML/1998/namespace".- See Also:
-
XML_CODE
public static final short XML_CODENumeric code representing the XML namespace- See Also:
-
XML_NAMESPACE_CODE
public static final int XML_NAMESPACE_CODEThe namespace code for the XML namespace- See Also:
-
XSLT
Fixed namespace name for XSLT: "http://www.w3.org/1999/XSL/Transform"- See Also:
-
XSLT_CODE
public static final short XSLT_CODENumeric code representing the XSLT namespace- See Also:
-
SAXON
Fixed namespace name for SAXON: "http://saxon.sf.net/"- See Also:
-
SAXON_CODE
public static final short SAXON_CODENumeric code representing the SAXON namespace- See Also:
-
SCHEMA
Namespace name for XML Schema: "http://www.w3.org/2001/XMLSchema"- See Also:
-
SCHEMA_CODE
public static final short SCHEMA_CODENumeric code representing the schema namespace- See Also:
-
XDT
Namespace for additional XPath-defined data types: "http://www.w3.org/2005/xpath-datatypes"- See Also:
-
XDT200504
Older versions of XDT namespace- See Also:
-
XDT200502
- See Also:
-
XDT200410
- See Also:
-
XDT200407
- See Also:
-
XDT_CODE
public static final short XDT_CODENumeric code representing the schema namespace- See Also:
-
SCHEMA_INSTANCE
XML-schema-defined namespace for use in instance documents ("xsi")- See Also:
-
XSI_CODE
public static final short XSI_CODE- See Also:
-
EXSLT_COMMON
Fixed namespace name for EXSLT/Common: "http://exslt.org/common"- See Also:
-
EXSLT_MATH
Fixed namespace name for EXSLT/math: "http://exslt.org/math"- See Also:
-
EXSLT_SETS
Fixed namespace name for EXSLT/sets: "http://exslt.org/sets"- See Also:
-
EXSLT_DATES_AND_TIMES
Fixed namespace name for EXSLT/date: "http://exslt.org/dates-and-times"- See Also:
-
EXSLT_RANDOM
Fixed namespace name for EXSLT/random: "http://exslt.org/random"- See Also:
-
FN
The standard namespace for functions and operators- See Also:
-
ERR
The standard namespace for system error codes- See Also:
-
LOCAL
Predefined XQuery namespace for local functions- See Also:
-
MICROSOFT_XSL
Recognize the Microsoft namespace so we can give a suitably sarcastic error message- See Also:
-
XHTML
The XHTML namespace http://www.w3.org/1999/xhtml- See Also:
-
XMLNS
The XMLNS namespace (used in DOM)- See Also:
-
JAVA_TYPE
Namespace for types representing external Java objects- See Also:
-
DOT_NET_TYPE
Namespace for types representing external .NET objects- See Also:
-
ANONYMOUS
Namespace for names allocated to anonymous types. This exists so that a name fingerprint can be allocated for use as a type annotation.- See Also:
-
OBJECT_MODEL_SAXON
URI identifying the Saxon object model for use in the JAXP 1.3 XPath API- See Also:
-
OBJECT_MODEL_XOM
URI identifying the XOM object model for use in the JAXP 1.3 XPath API- See Also:
-
OBJECT_MODEL_JDOM
URI identifying the JDOM object model for use in the JAXP 1.3 XPath API- See Also:
-
OBJECT_MODEL_DOM4J
URI identifying the DOM4J object model for use in the JAXP 1.3 XPath API- See Also:
-
CODEPOINT_COLLATION_URI
URI identifying the Unicode codepoint collation- See Also:
-
-
Method Details
-
isXDTNamespace
Test whether a namespace is the XDT namespace -
isReserved
Determine whether a namespace is a reserved namespace -
isSpecialURICode
public static final boolean isSpecialURICode(short uriCode) Determine whether a namespace is a reserved namespace -
isReservedInQuery
Determine whether a namespace is a reserved namespace
-