public final class XIncProcUtils
extends java.lang.Object
XIncProcEngine.| Modifier and Type | Field and Description |
|---|---|
static javax.xml.namespace.QName |
FALLBACK_QNAME
Fallback element.
|
static java.lang.String |
XINCLUDE_NAMESPACE_URI
XInclude namespace constant
|
static javax.xml.namespace.QName |
XINCLUDE_QNAME
XInclude element
|
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isFallback(javax.xml.namespace.QName qname)
Return if element is a Fallback elementor not
|
static boolean |
isXInclude(javax.xml.namespace.QName qname)
Return if element is a Xinclude element or not
|
static boolean |
isXIncludeNamespace(javax.xml.namespace.QName qname)
Return if element is in XInclude namespace
|
static java.lang.String |
readTextURI(java.net.URI source,
java.lang.String encoding,
java.lang.String accept,
java.lang.String acceptLanguage)
Read a text source from the
URI |
static java.net.URI |
resolveBase(java.net.URI baseURI,
java.lang.Iterable<java.net.URI> uris)
Resolve base
URI against Iterable of uris. |
static java.net.URI |
resolveBase(java.net.URI baseURI,
java.util.Stack<java.net.URI> stack)
Resolve base
URI against a Stack of uris. |
public static final java.lang.String XINCLUDE_NAMESPACE_URI
public static final javax.xml.namespace.QName FALLBACK_QNAME
public static final javax.xml.namespace.QName XINCLUDE_QNAME
public static boolean isXIncludeNamespace(javax.xml.namespace.QName qname)
qname - of the element to testpublic static boolean isXInclude(javax.xml.namespace.QName qname)
qname - of the element to testpublic static boolean isFallback(javax.xml.namespace.QName qname)
qname - of the element to testpublic static java.net.URI resolveBase(java.net.URI baseURI,
java.lang.Iterable<java.net.URI> uris)
URI against Iterable of uris.baseURI - the base URIuris - the urispublic static java.net.URI resolveBase(java.net.URI baseURI,
java.util.Stack<java.net.URI> stack)
throws XIncludeFatalException
URI against a Stack of uris.baseURI - the base uRIstack - the stackXIncludeFatalException - in case of inclusion looppublic static java.lang.String readTextURI(java.net.URI source,
java.lang.String encoding,
java.lang.String accept,
java.lang.String acceptLanguage)
throws XIncludeFatalException,
XIncludeResourceException
URIsource - the sourceencoding - the encoding, if encoding is null an analyse of the source will be done to
find correct encodingaccept - the acceptacceptLanguage - the accept languageXIncludeFatalException - in case of fatal errorXIncludeResourceException - if source is unreadableCopyright © 2011-2013. All Rights Reserved.