net.sf.saxon.om

Class NamespaceConstant

public class NamespaceConstant extends Object

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
static StringANONYMOUS
Namespace for names allocated to anonymous types.
static StringCODEPOINT_COLLATION_URI
URI identifying the Unicode codepoint collation
static StringERR
The standard namespace for system error codes
static StringEXSLT_COMMON
Fixed namespace name for EXSLT/Common: "http://exslt.org/common"
static StringEXSLT_DATES_AND_TIMES
Fixed namespace name for EXSLT/date: "http://exslt.org/dates-and-times"
static StringEXSLT_MATH
Fixed namespace name for EXSLT/math: "http://exslt.org/math"
static StringEXSLT_RANDOM
Fixed namespace name for EXSLT/random: "http://exslt.org/random"
static StringEXSLT_SETS
Fixed namespace name for EXSLT/sets: "http://exslt.org/sets"
static StringFN
The standard namespace for functions and operators
static StringJAVA_TYPE
Namespace for types representing external Java objects
static StringLOCAL
Predefined XQuery namespace for local functions
static StringMICROSOFT_XSL
Recognize the Microsoft namespace so we can give a suitably sarcastic error message
static StringNULL
A URI representing the null namespace (actually, an empty string)
static shortNULL_CODE
The numeric code representing the null namespace (actually, zero)
static intNULL_NAMESPACE_CODE
The namespace code for the null namespace
static StringOBJECT_MODEL_JDOM
URI identifying the JDOM object model for use in the JAXP 1.3 XPath API
static StringOBJECT_MODEL_SAXON
URI identifying the Saxon object model for use in the JAXP 1.3 XPath API
static StringOBJECT_MODEL_XOM
URI identifying the XOM object model for use in the JAXP 1.3 XPath API
static StringSAXON
Fixed namespace name for SAXON: "http://saxon.sf.net/"
static shortSAXON_CODE
Numeric code representing the SAXON namespace
static StringSCHEMA
Namespace name for XML Schema: "http://www.w3.org/2001/XMLSchema"
static shortSCHEMA_CODE
Numeric code representing the schema namespace
static StringSCHEMA_INSTANCE
XML-schema-defined namespace for use in instance documents ("xsi")
static StringXDT
Namespace for additional XPath-defined data types: "http://www.w3.org/2005/04/xpath-datatypes"
static StringXDT200407
static StringXDT200410
static StringXDT200502
static StringXDT200504
Older versions of XDT namespace
static shortXDT_CODE
Numeric code representing the schema namespace
static StringXHTML
The XHTML namespace http://www.w3.org/1999/xhtml
static StringXML
Fixed namespace name for XML: "http://www.w3.org/XML/1998/namespace".
static shortXML_CODE
Numeric code representing the XML namespace
static intXML_NAMESPACE_CODE
The namespace code for the XML namespace
static shortXSI_CODE
static StringXSLT
Fixed namespace name for XSLT: "http://www.w3.org/1999/XSL/Transform"
static shortXSLT_CODE
Numeric code representing the XSLT namespace
Method Summary
static booleanisReserved(String uri)
Determine whether a namespace is a reserved namespace
static booleanisReservedInQuery(String uri)
Determine whether a namespace is a reserved namespace
static booleanisSpecialURICode(short uriCode)
Determine whether a namespace is a reserved namespace
static booleanisXDTNamespace(String uri)
Test whether a namespace is the XDT namespace

Field Detail

ANONYMOUS

public static final String ANONYMOUS
Namespace for names allocated to anonymous types. This exists so that a name fingerprint can be allocated for use as a type annotation.

CODEPOINT_COLLATION_URI

public static final String CODEPOINT_COLLATION_URI
URI identifying the Unicode codepoint collation

ERR

public static final String ERR
The standard namespace for system error codes

EXSLT_COMMON

public static final String EXSLT_COMMON
Fixed namespace name for EXSLT/Common: "http://exslt.org/common"

EXSLT_DATES_AND_TIMES

public static final String EXSLT_DATES_AND_TIMES
Fixed namespace name for EXSLT/date: "http://exslt.org/dates-and-times"

EXSLT_MATH

public static final String EXSLT_MATH
Fixed namespace name for EXSLT/math: "http://exslt.org/math"

EXSLT_RANDOM

public static final String EXSLT_RANDOM
Fixed namespace name for EXSLT/random: "http://exslt.org/random"

EXSLT_SETS

public static final String EXSLT_SETS
Fixed namespace name for EXSLT/sets: "http://exslt.org/sets"

FN

public static final String FN
The standard namespace for functions and operators

JAVA_TYPE

public static final String JAVA_TYPE
Namespace for types representing external Java objects

LOCAL

public static final String LOCAL
Predefined XQuery namespace for local functions

MICROSOFT_XSL

public static final String MICROSOFT_XSL
Recognize the Microsoft namespace so we can give a suitably sarcastic error message

NULL

public static final String NULL
A URI representing the null namespace (actually, an empty string)

NULL_CODE

public static final short NULL_CODE
The numeric code representing the null namespace (actually, zero)

NULL_NAMESPACE_CODE

public static final int NULL_NAMESPACE_CODE
The namespace code for the null namespace

OBJECT_MODEL_JDOM

public static final String OBJECT_MODEL_JDOM
URI identifying the JDOM object model for use in the JAXP 1.3 XPath API

OBJECT_MODEL_SAXON

public static final String OBJECT_MODEL_SAXON
URI identifying the Saxon object model for use in the JAXP 1.3 XPath API

OBJECT_MODEL_XOM

public static final String OBJECT_MODEL_XOM
URI identifying the XOM object model for use in the JAXP 1.3 XPath API

SAXON

public static final String SAXON
Fixed namespace name for SAXON: "http://saxon.sf.net/"

SAXON_CODE

public static final short SAXON_CODE
Numeric code representing the SAXON namespace

SCHEMA

public static final String SCHEMA
Namespace name for XML Schema: "http://www.w3.org/2001/XMLSchema"

SCHEMA_CODE

public static final short SCHEMA_CODE
Numeric code representing the schema namespace

SCHEMA_INSTANCE

public static final String SCHEMA_INSTANCE
XML-schema-defined namespace for use in instance documents ("xsi")

XDT

public static final String XDT
Namespace for additional XPath-defined data types: "http://www.w3.org/2005/04/xpath-datatypes"

XDT200407

public static final String XDT200407

XDT200410

public static final String XDT200410

XDT200502

public static final String XDT200502

XDT200504

public static final String XDT200504
Older versions of XDT namespace

XDT_CODE

public static final short XDT_CODE
Numeric code representing the schema namespace

XHTML

public static final String XHTML
The XHTML namespace http://www.w3.org/1999/xhtml

XML

public static final String XML
Fixed namespace name for XML: "http://www.w3.org/XML/1998/namespace".

XML_CODE

public static final short XML_CODE
Numeric code representing the XML namespace

XML_NAMESPACE_CODE

public static final int XML_NAMESPACE_CODE
The namespace code for the XML namespace

XSI_CODE

public static final short XSI_CODE

XSLT

public static final String XSLT
Fixed namespace name for XSLT: "http://www.w3.org/1999/XSL/Transform"

XSLT_CODE

public static final short XSLT_CODE
Numeric code representing the XSLT namespace

Method Detail

isReserved

public static final boolean isReserved(String uri)
Determine whether a namespace is a reserved namespace

isReservedInQuery

public static final boolean isReservedInQuery(String uri)
Determine whether a namespace is a reserved namespace

isSpecialURICode

public static final boolean isSpecialURICode(short uriCode)
Determine whether a namespace is a reserved namespace

isXDTNamespace

public static final boolean isXDTNamespace(String uri)
Test whether a namespace is the XDT namespace