Package net.sf.saxon.om
Class NamespaceUri
- java.lang.Object
-
- net.sf.saxon.om.NamespaceUri
-
public class NamespaceUri extends java.lang.Object
This class represents a URI used as a namespace name. NamespaceUri objects are pooled, so that all occurrences of a given namespace name are represented by the same object.
-
-
Field Summary
Fields Modifier and Type Field Description static NamespaceUri
ANONYMOUS
Namespace for names allocated to anonymous types.static NamespaceUri
ARRAY_FUNCTIONS
Namespace URI for XPath 3.1 functions associated with arraysstatic NamespaceUri
DOT_NET_TYPE
Namespace for types representing external .NET objectsstatic NamespaceUri
ERR
The standard namespace for system error codesstatic NamespaceUri
EXPATH_BINARY
Namespace URI for the EXPath Binary modulestatic NamespaceUri
EXPATH_FILE
Namespace URI for the EXPath File modulestatic NamespaceUri
EXPATH_ZIP
URI for the EXPath zip modulestatic NamespaceUri
EXSLT_COMMON
Fixed namespace name for EXSLT/Common: "http://exslt.org/common"static NamespaceUri
EXSLT_DATES_AND_TIMES
Fixed namespace name for EXSLT/date: "http://exslt.org/dates-and-times"static NamespaceUri
EXSLT_MATH
Fixed namespace name for EXSLT/math: "http://exslt.org/math"static NamespaceUri
EXSLT_RANDOM
Fixed namespace name for EXSLT/random: "http://exslt.org/random"static NamespaceUri
EXSLT_SETS
Fixed namespace name for EXSLT/sets: "http://exslt.org/sets"static NamespaceUri
FN
The standard namespace for functions and operatorsstatic NamespaceUri
GLOBAL_JS
URI for the user extension calls in SaxonJSstatic NamespaceUri
IXSL
URI for interactive XSLT extensions in Saxon-CE and SaxonJSstatic NamespaceUri
JAVA_TYPE
Namespace for types representing external Java objects: http://saxon.sf.net/java-typestatic NamespaceUri
LOCAL
Predefined XQuery namespace for local functionsstatic NamespaceUri
MAP_FUNCTIONS
Namespace URI for XPath 3.0 functions associated with mapsstatic NamespaceUri
MATH
Math namespace for the XPath 3.0 math functionsstatic NamespaceUri
MATHML
The MathML namespace http://www.w3.org/1998/Math/MathMLstatic NamespaceUri
NULL
A URI representing the null namespace (actually, an empty string)static NamespaceUri
OBJECT_MODEL_AXIOM
URI identifying the AXIOM object model for use in the JAXP 1.3 XPath APIstatic NamespaceUri
OBJECT_MODEL_DOM4J
URI identifying the DOM4J object model for use in the JAXP 1.3 XPath APIstatic NamespaceUri
OBJECT_MODEL_DOMINO
URI identifying the DOMINO object model (not used, but needed for consistency)static NamespaceUri
OBJECT_MODEL_DOT_NET_DOM
URI identifying the .NET DOM object model (not used, but needed for consistency)static NamespaceUri
OBJECT_MODEL_JDOM
URI identifying the JDOM object model for use in the JAXP 1.3 XPath APIstatic NamespaceUri
OBJECT_MODEL_SAXON
URI identifying the Saxon object model for use in the JAXP 1.3 XPath APIstatic NamespaceUri
OBJECT_MODEL_XOM
URI identifying the XOM object model for use in the JAXP 1.3 XPath APIstatic NamespaceUri
OUTPUT
The standard namespace for XQuery output declarationsstatic NamespaceUri
PHP
URI for the user extension calls in SaxonC for C++ and PHPstatic NamespaceUri
SAXON
Current namespace name for SAXON (from 7.0 onwards): "http://saxon.sf.net/"static NamespaceUri
SAXON_CONFIGURATION
URI for the Saxon configuration filestatic NamespaceUri
SAXON_GENERATED_VARIABLE
URI for the names of generated variablesstatic NamespaceUri
SAXON_XSLT_EXPORT
Fixed namespace name for the export of a Saxon stylesheet packagestatic NamespaceUri
SAXON6
Old namespace name for SAXON6: "http://icl.com/saxon"static NamespaceUri
SCHEMA
Namespace name for XML Schema: "http://www.w3.org/2001/XMLSchema"static NamespaceUri
SCHEMA_INSTANCE
XML-schema-defined namespace for use in instance documents ("xsi")static NamespaceUri
SCHEMA_VERSIONING
Namespace defined in XSD 1.1 for schema versioningstatic NamespaceUri
SCM
Namespace for the Saxon serialization of the schema component modelstatic NamespaceUri
SQL
Fixed namespace name for SAXON SQL extension: "http://saxon.sf.net/sql"static NamespaceUri
SVG
The SVG namespace http://www.w3.org/2000/svgstatic NamespaceUri
XHTML
The XHTML namespace http://www.w3.org/1999/xhtmlstatic NamespaceUri
XLINK
The XLink namespace http://www.w3.org/1999/xlinkstatic NamespaceUri
XML
Fixed namespace name for XML: "http://www.w3.org/XML/1998/namespace".static NamespaceUri
XMLNS
The XMLNS namespace http://www.w3.org/2000/xmlns/ (used in DOM)static NamespaceUri
XQUERY
The xquery namespace http://www.w3.org/2012/xquery for the XQuery 3.0 declare optionstatic NamespaceUri
XSLT
Fixed namespace name for XSLT: "http://www.w3.org/1999/XSL/Transform"
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static NamespaceUri
getUriForConventionalPrefix(java.lang.String prefix)
Get the URI associated with a commonly-used conventional prefixboolean
isEmpty()
Ask whether this URI represents the "null namespace" (internally, a zero-length string)static boolean
isReserved(NamespaceUri uri)
Determine whether a namespace is a reserved namespace in XSLTstatic boolean
isReservedInQuery31(NamespaceUri uri)
Determine whether a namespace is a reserved namespace in XQuerystatic NamespaceUri
of(java.lang.String content)
Return theNamespaceUri
object corresponding to a given namespace name supplied as a stringStructuredQName
qName(java.lang.String localName)
Construct an unprefixed QName using this namespace and a supplied local namejava.lang.String
toString()
Return the namespace URI as a stringUnicodeString
toUnicodeString()
Return the namespace URI as an instance ofUnicodeString
-
-
-
Field Detail
-
NULL
public static final NamespaceUri NULL
A URI representing the null namespace (actually, an empty string)
-
XML
public static final NamespaceUri XML
Fixed namespace name for XML: "http://www.w3.org/XML/1998/namespace".
-
XSLT
public static final NamespaceUri XSLT
Fixed namespace name for XSLT: "http://www.w3.org/1999/XSL/Transform"
-
SAXON
public static final NamespaceUri SAXON
Current namespace name for SAXON (from 7.0 onwards): "http://saxon.sf.net/"
-
SAXON6
public static final NamespaceUri SAXON6
Old namespace name for SAXON6: "http://icl.com/saxon"
-
SAXON_XSLT_EXPORT
public static final NamespaceUri SAXON_XSLT_EXPORT
Fixed namespace name for the export of a Saxon stylesheet package
-
SCHEMA
public static final NamespaceUri SCHEMA
Namespace name for XML Schema: "http://www.w3.org/2001/XMLSchema"
-
SCHEMA_INSTANCE
public static final NamespaceUri SCHEMA_INSTANCE
XML-schema-defined namespace for use in instance documents ("xsi")
-
SCHEMA_VERSIONING
public static final NamespaceUri SCHEMA_VERSIONING
Namespace defined in XSD 1.1 for schema versioning
-
SQL
public static final NamespaceUri SQL
Fixed namespace name for SAXON SQL extension: "http://saxon.sf.net/sql"
-
EXSLT_COMMON
public static final NamespaceUri EXSLT_COMMON
Fixed namespace name for EXSLT/Common: "http://exslt.org/common"
-
EXSLT_MATH
public static final NamespaceUri EXSLT_MATH
Fixed namespace name for EXSLT/math: "http://exslt.org/math"
-
EXSLT_SETS
public static final NamespaceUri EXSLT_SETS
Fixed namespace name for EXSLT/sets: "http://exslt.org/sets"
-
EXSLT_DATES_AND_TIMES
public static final NamespaceUri EXSLT_DATES_AND_TIMES
Fixed namespace name for EXSLT/date: "http://exslt.org/dates-and-times"
-
EXSLT_RANDOM
public static final NamespaceUri EXSLT_RANDOM
Fixed namespace name for EXSLT/random: "http://exslt.org/random"
-
FN
public static final NamespaceUri FN
The standard namespace for functions and operators
-
OUTPUT
public static final NamespaceUri OUTPUT
The standard namespace for XQuery output declarations
-
ERR
public static final NamespaceUri ERR
The standard namespace for system error codes
-
LOCAL
public static final NamespaceUri LOCAL
Predefined XQuery namespace for local functions
-
MATH
public static final NamespaceUri MATH
Math namespace for the XPath 3.0 math functions
-
MAP_FUNCTIONS
public static final NamespaceUri MAP_FUNCTIONS
Namespace URI for XPath 3.0 functions associated with maps
-
ARRAY_FUNCTIONS
public static final NamespaceUri ARRAY_FUNCTIONS
Namespace URI for XPath 3.1 functions associated with arrays
-
EXPATH_BINARY
public static final NamespaceUri EXPATH_BINARY
Namespace URI for the EXPath Binary module
-
EXPATH_FILE
public static final NamespaceUri EXPATH_FILE
Namespace URI for the EXPath File module
-
XHTML
public static final NamespaceUri XHTML
The XHTML namespace http://www.w3.org/1999/xhtml
-
SVG
public static final NamespaceUri SVG
The SVG namespace http://www.w3.org/2000/svg
-
MATHML
public static final NamespaceUri MATHML
The MathML namespace http://www.w3.org/1998/Math/MathML
-
XMLNS
public static final NamespaceUri XMLNS
The XMLNS namespace http://www.w3.org/2000/xmlns/ (used in DOM)
-
XLINK
public static final NamespaceUri XLINK
The XLink namespace http://www.w3.org/1999/xlink
-
XQUERY
public static final NamespaceUri XQUERY
The xquery namespace http://www.w3.org/2012/xquery for the XQuery 3.0 declare option
-
JAVA_TYPE
public static final NamespaceUri JAVA_TYPE
Namespace for types representing external Java objects: http://saxon.sf.net/java-type
-
DOT_NET_TYPE
public static final NamespaceUri DOT_NET_TYPE
Namespace for types representing external .NET objects
-
ANONYMOUS
public static final NamespaceUri ANONYMOUS
Namespace for names allocated to anonymous types. This exists so that a name fingerprint can be allocated for use as a type annotation.
-
SCM
public static final NamespaceUri SCM
Namespace for the Saxon serialization of the schema component model
-
OBJECT_MODEL_SAXON
public static final NamespaceUri OBJECT_MODEL_SAXON
URI identifying the Saxon object model for use in the JAXP 1.3 XPath API
-
OBJECT_MODEL_XOM
public static final NamespaceUri OBJECT_MODEL_XOM
URI identifying the XOM object model for use in the JAXP 1.3 XPath API
-
OBJECT_MODEL_JDOM
public static final NamespaceUri OBJECT_MODEL_JDOM
URI identifying the JDOM object model for use in the JAXP 1.3 XPath API
-
OBJECT_MODEL_AXIOM
public static final NamespaceUri OBJECT_MODEL_AXIOM
URI identifying the AXIOM object model for use in the JAXP 1.3 XPath API
-
OBJECT_MODEL_DOM4J
public static final NamespaceUri OBJECT_MODEL_DOM4J
URI identifying the DOM4J object model for use in the JAXP 1.3 XPath API
-
OBJECT_MODEL_DOT_NET_DOM
public static final NamespaceUri OBJECT_MODEL_DOT_NET_DOM
URI identifying the .NET DOM object model (not used, but needed for consistency)
-
OBJECT_MODEL_DOMINO
public static final NamespaceUri OBJECT_MODEL_DOMINO
URI identifying the DOMINO object model (not used, but needed for consistency)
-
SAXON_GENERATED_VARIABLE
public static final NamespaceUri SAXON_GENERATED_VARIABLE
URI for the names of generated variables
-
SAXON_CONFIGURATION
public static final NamespaceUri SAXON_CONFIGURATION
URI for the Saxon configuration file
-
EXPATH_ZIP
public static final NamespaceUri EXPATH_ZIP
URI for the EXPath zip module
-
GLOBAL_JS
public static final NamespaceUri GLOBAL_JS
URI for the user extension calls in SaxonJS
-
PHP
public static final NamespaceUri PHP
URI for the user extension calls in SaxonC for C++ and PHP
-
IXSL
public static final NamespaceUri IXSL
URI for interactive XSLT extensions in Saxon-CE and SaxonJS
-
-
Method Detail
-
of
public static NamespaceUri of(java.lang.String content)
Return theNamespaceUri
object corresponding to a given namespace name supplied as a string- Parameters:
content
- the namespace name, supplied as a string- Returns:
- the corresponding
NamespaceUri
object
-
toString
public java.lang.String toString()
Return the namespace URI as a string- Overrides:
toString
in classjava.lang.Object
- Returns:
- the namespace URI as a string
-
toUnicodeString
public UnicodeString toUnicodeString()
Return the namespace URI as an instance ofUnicodeString
- Returns:
- the namespace URI as a
UnicodeString
-
isEmpty
public boolean isEmpty()
Ask whether this URI represents the "null namespace" (internally, a zero-length string)- Returns:
- true if this is the null namespace
-
qName
public StructuredQName qName(java.lang.String localName)
Construct an unprefixed QName using this namespace and a supplied local name- Parameters:
localName
- the local part of the name- Returns:
- a StructuredQName representing a QName with this namespace URI, with the supplied local part, and with no prefix.
-
getUriForConventionalPrefix
public static NamespaceUri getUriForConventionalPrefix(java.lang.String prefix)
Get the URI associated with a commonly-used conventional prefix- Parameters:
prefix
- the namespace prefix- Returns:
- the namespace URI associated with this conventional prefix
-
isReserved
public static boolean isReserved(NamespaceUri uri)
Determine whether a namespace is a reserved namespace in XSLT- Parameters:
uri
- the namespace URI to be tested- Returns:
- true if this namespace URI is a reserved namespace in XSLT
-
isReservedInQuery31
public static boolean isReservedInQuery31(NamespaceUri uri)
Determine whether a namespace is a reserved namespace in XQuery- Parameters:
uri
- the namespace URI to be tested- Returns:
- true if this namespace URI is reserved in XQuery 3.1
-
-