Package org.opencastproject.util
Class XmlNamespaceContext
java.lang.Object
org.opencastproject.util.XmlNamespaceContext
- All Implemented Interfaces:
NamespaceContext
-
Constructor Summary
ConstructorsConstructorDescriptionXmlNamespaceContext(Map<String, String> prefixToUri) Create a new namespace context with bindings from prefix to URI and bind the default namespaces as described in the documentation ofNamespaceContext. -
Method Summary
Modifier and TypeMethodDescriptionadd(XmlNamespaceBinding... bindings) Create a new context with the given bindings added.add(XmlNamespaceContext binding) Create a new context with the given bindings added.getNamespaceURI(String prefix) getPrefixes(String uri) merge(NamespaceContext precedence) static NamespaceContextMergebintoaso thatbtakes precedence overa.static XmlNamespaceContextstatic XmlNamespaceContextmk(List<XmlNamespaceBinding> bindings) static XmlNamespaceContextstatic XmlNamespaceContextmk(XmlNamespaceBinding... bindings)
-
Constructor Details
-
XmlNamespaceContext
Create a new namespace context with bindings from prefix to URI and bind the default namespaces as described in the documentation ofNamespaceContext.
-
-
Method Details
-
mk
-
mk
-
mk
-
mk
-
getNamespaceURI
- Specified by:
getNamespaceURIin interfaceNamespaceContext
-
getPrefix
- Specified by:
getPrefixin interfaceNamespaceContext
-
getPrefixes
- Specified by:
getPrefixesin interfaceNamespaceContext
-
getBindings
-
add
Create a new context with the given bindings added. Existing bindings will not be overwritten. -
add
Create a new context with the given bindings added. Existing bindings will not be overwritten. -
merge
-
merge
Mergebintoaso thatbtakes precedence overa.
-