Package net.sf.saxon.om
Class NamespaceUri
- java.lang.Object
-
- net.sf.saxon.om.NamespaceUri
-
public class NamespaceUri extends java.lang.ObjectThis 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 NamespaceUriANONYMOUSNamespace for names allocated to anonymous types.static NamespaceUriARRAY_FUNCTIONSNamespace URI for XPath 3.1 functions associated with arraysstatic NamespaceUriDOT_NET_TYPENamespace for types representing external .NET objectsstatic NamespaceUriERRThe standard namespace for system error codesstatic NamespaceUriEXPATH_BINARYNamespace URI for the EXPath Binary modulestatic NamespaceUriEXPATH_FILENamespace URI for the EXPath File modulestatic NamespaceUriEXPATH_ZIPURI for the EXPath zip modulestatic NamespaceUriEXSLT_COMMONFixed namespace name for EXSLT/Common: "http://exslt.org/common"static NamespaceUriEXSLT_DATES_AND_TIMESFixed namespace name for EXSLT/date: "http://exslt.org/dates-and-times"static NamespaceUriEXSLT_MATHFixed namespace name for EXSLT/math: "http://exslt.org/math"static NamespaceUriEXSLT_RANDOMFixed namespace name for EXSLT/random: "http://exslt.org/random"static NamespaceUriEXSLT_SETSFixed namespace name for EXSLT/sets: "http://exslt.org/sets"static NamespaceUriFNThe standard namespace for functions and operatorsstatic NamespaceUriGLOBAL_JSURI for the user extension calls in SaxonJSstatic NamespaceUriIXSLURI for interactive XSLT extensions in Saxon-CE and SaxonJSstatic NamespaceUriJAVA_TYPENamespace for types representing external Java objects: http://saxon.sf.net/java-typestatic NamespaceUriLOCALPredefined XQuery namespace for local functionsstatic NamespaceUriMAP_FUNCTIONSNamespace URI for XPath 3.0 functions associated with mapsstatic NamespaceUriMATHMath namespace for the XPath 3.0 math functionsstatic NamespaceUriMATHMLThe MathML namespace http://www.w3.org/1998/Math/MathMLstatic NamespaceUriNULLA URI representing the null namespace (actually, an empty string)static NamespaceUriOBJECT_MODEL_AXIOMURI identifying the AXIOM object model for use in the JAXP 1.3 XPath APIstatic NamespaceUriOBJECT_MODEL_DOM4JURI identifying the DOM4J object model for use in the JAXP 1.3 XPath APIstatic NamespaceUriOBJECT_MODEL_DOMINOURI identifying the DOMINO object model (not used, but needed for consistency)static NamespaceUriOBJECT_MODEL_DOT_NET_DOMURI identifying the .NET DOM object model (not used, but needed for consistency)static NamespaceUriOBJECT_MODEL_JDOMURI identifying the JDOM object model for use in the JAXP 1.3 XPath APIstatic NamespaceUriOBJECT_MODEL_SAXONURI identifying the Saxon object model for use in the JAXP 1.3 XPath APIstatic NamespaceUriOBJECT_MODEL_XOMURI identifying the XOM object model for use in the JAXP 1.3 XPath APIstatic NamespaceUriOUTPUTThe standard namespace for XQuery output declarationsstatic NamespaceUriPHPURI for the user extension calls in SaxonC for C++ and PHPstatic NamespaceUriSAXONCurrent namespace name for SAXON (from 7.0 onwards): "http://saxon.sf.net/"static NamespaceUriSAXON_CONFIGURATIONURI for the Saxon configuration filestatic NamespaceUriSAXON_GENERATED_VARIABLEURI for the names of generated variablesstatic NamespaceUriSAXON_XSLT_EXPORTFixed namespace name for the export of a Saxon stylesheet packagestatic NamespaceUriSAXON6Old namespace name for SAXON6: "http://icl.com/saxon"static NamespaceUriSCHEMANamespace name for XML Schema: "http://www.w3.org/2001/XMLSchema"static NamespaceUriSCHEMA_INSTANCEXML-schema-defined namespace for use in instance documents ("xsi")static NamespaceUriSCHEMA_VERSIONINGNamespace defined in XSD 1.1 for schema versioningstatic NamespaceUriSCMNamespace for the Saxon serialization of the schema component modelstatic NamespaceUriSQLFixed namespace name for SAXON SQL extension: "http://saxon.sf.net/sql"static NamespaceUriSVGThe SVG namespace http://www.w3.org/2000/svgstatic NamespaceUriXHTMLThe XHTML namespace http://www.w3.org/1999/xhtmlstatic NamespaceUriXLINKThe XLink namespace http://www.w3.org/1999/xlinkstatic NamespaceUriXMLFixed namespace name for XML: "http://www.w3.org/XML/1998/namespace".static NamespaceUriXMLNSThe XMLNS namespace http://www.w3.org/2000/xmlns/ (used in DOM)static NamespaceUriXQUERYThe xquery namespace http://www.w3.org/2012/xquery for the XQuery 3.0 declare optionstatic NamespaceUriXSLTFixed 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 NamespaceUrigetUriForConventionalPrefix(java.lang.String prefix)Get the URI associated with a commonly-used conventional prefixbooleanisEmpty()Ask whether this URI represents the "null namespace" (internally, a zero-length string)static booleanisReserved(NamespaceUri uri)Determine whether a namespace is a reserved namespace in XSLTstatic booleanisReservedInQuery31(NamespaceUri uri)Determine whether a namespace is a reserved namespace in XQuerystatic NamespaceUriof(java.lang.String content)Return theNamespaceUriobject corresponding to a given namespace name supplied as a stringStructuredQNameqName(java.lang.String localName)Construct an unprefixed QName using this namespace and a supplied local namejava.lang.StringtoString()Return the namespace URI as a stringUnicodeStringtoUnicodeString()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 theNamespaceUriobject corresponding to a given namespace name supplied as a string- Parameters:
content- the namespace name, supplied as a string- Returns:
- the corresponding
NamespaceUriobject
-
toString
public java.lang.String toString()
Return the namespace URI as a string- Overrides:
toStringin 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
-
-