Class InclusiveNamespaces
java.lang.Object
org.docx4j.org.apache.xml.security.utils.ElementProxy
org.docx4j.org.apache.xml.security.transforms.params.InclusiveNamespaces
- All Implemented Interfaces:
TransformParam
public class InclusiveNamespaces extends ElementProxy implements TransformParam
This Object serves as Content for the ds:Transforms for exclusive
Canonicalization.
It implements the
It implements the
Element interface
and can be used directly in a DOM tree.- Author:
- Christian Geuer-Pollmann
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String_ATT_EC_PREFIXLISTField _ATT_EC_PREFIXLISTstatic java.lang.String_TAG_EC_INCLUSIVENAMESPACESField _TAG_EC_INCLUSIVENAMESPACESstatic java.lang.StringExclusiveCanonicalizationNamespaceField ExclusiveCanonicalizationNamespace -
Constructor Summary
Constructors Constructor Description InclusiveNamespaces(org.w3c.dom.Document doc, java.lang.String prefixList)Constructor XPathContainerInclusiveNamespaces(org.w3c.dom.Document doc, java.util.Set<java.lang.String> prefixes)Constructor InclusiveNamespacesInclusiveNamespaces(org.w3c.dom.Element element, java.lang.String baseURI)Constructor InclusiveNamespaces -
Method Summary
Modifier and Type Method Description java.lang.StringgetBaseLocalName()Method getBaseLocalNamejava.lang.StringgetBaseNamespace()Method getBaseNamespacejava.lang.StringgetInclusiveNamespaces()Method getInclusiveNamespacesstatic java.util.SortedSet<java.lang.String>prefixStr2Set(java.lang.String inclusiveNamespaces)Decodes theinclusiveNamespacesString and returns all selected namespace prefixes as a Set.Methods inherited from class org.docx4j.org.apache.xml.security.utils.ElementProxy
addBase64Element, addBase64Text, addBigIntegerElement, addReturnToSelf, addText, addTextElement, appendOther, appendSelf, appendSelf, createElementForFamily, createElementForFamilyLocal, createText, getBaseURI, getBigIntegerFromChildElement, getBytesFromTextChild, getDefaultPrefix, getDocument, getElement, getElementPlusReturns, getFirstChild, getLocalAttribute, getTextFromChildElement, getTextFromTextChild, length, registerDefaultPrefixes, setDefaultPrefix, setDocument, setElement, setElement, setLocalAttribute, setLocalIdAttribute, setXPathNamespaceContext
-
Field Details
-
_TAG_EC_INCLUSIVENAMESPACES
public static final java.lang.String _TAG_EC_INCLUSIVENAMESPACESField _TAG_EC_INCLUSIVENAMESPACES- See Also:
- Constant Field Values
-
_ATT_EC_PREFIXLIST
public static final java.lang.String _ATT_EC_PREFIXLISTField _ATT_EC_PREFIXLIST- See Also:
- Constant Field Values
-
ExclusiveCanonicalizationNamespace
public static final java.lang.String ExclusiveCanonicalizationNamespaceField ExclusiveCanonicalizationNamespace- See Also:
- Constant Field Values
-
-
Constructor Details
-
InclusiveNamespaces
public InclusiveNamespaces(org.w3c.dom.Document doc, java.lang.String prefixList)Constructor XPathContainer- Parameters:
doc-prefixList-
-
InclusiveNamespaces
public InclusiveNamespaces(org.w3c.dom.Document doc, java.util.Set<java.lang.String> prefixes)Constructor InclusiveNamespaces- Parameters:
doc-prefixes-
-
InclusiveNamespaces
public InclusiveNamespaces(org.w3c.dom.Element element, java.lang.String baseURI) throws XMLSecurityExceptionConstructor InclusiveNamespaces- Parameters:
element-baseURI-- Throws:
XMLSecurityException
-
-
Method Details
-
getInclusiveNamespaces
public java.lang.String getInclusiveNamespaces()Method getInclusiveNamespaces- Returns:
- The Inclusive Namespace string
-
prefixStr2Set
public static java.util.SortedSet<java.lang.String> prefixStr2Set(java.lang.String inclusiveNamespaces)Decodes theinclusiveNamespacesString and returns all selected namespace prefixes as a Set. The#defaultnamespace token is represented as an empty namespace prefix ("xmlns").
The StringinclusiveNamespaces=" xenc ds #default"is returned as a Set containing the following Strings:xmlnsxencds
- Parameters:
inclusiveNamespaces-- Returns:
- A set to string
-
getBaseNamespace
public java.lang.String getBaseNamespace()Method getBaseNamespace- Specified by:
getBaseNamespacein classElementProxy- Returns:
- the namespace of the Elements of the sub-class.
-
getBaseLocalName
public java.lang.String getBaseLocalName()Method getBaseLocalName- Specified by:
getBaseLocalNamein classElementProxy- Returns:
- the localname of the Elements of the sub-class.
-