| Modifier and Type | Field and Description |
|---|---|
| protected String | baseURI
Field baseURI |
| protected static final Logger | |
| private static Map | prefixMappings
Field prefixMappings |
| private Document | wrappedDoc
Field doc |
| private Element | wrappedElement
What XML element does this ElementProxy instance wrap? |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | |
| public void | |
| protected void | |
| public void | |
| public void | |
| protected void | |
| protected void | |
| protected void | |
| public static Element | Returns: The element created.This method creates an Element in a given namespace with a given localname. |
| protected Element | |
| protected Text | |
| public abstract String | Returns: the localname of the Elements of the sub-class.Returns the localname of the Elements of the sub-class. |
| public abstract String | Returns: the namespace of the Elements of the sub-class.Returns the namespace of the Elements of the sub-class. |
| public String | |
| public BigInteger | Returns: The biginteger contained in the given elementMethod getVal |
| public byte[] | Returns: The base64 bytes from the text children of this elementMethod getBytesFromTextChild |
| public static String | Returns: the default prefix bind to this element.Method getDefaultPrefix |
| public Document | |
| public final Element | Returns: the Element which was constructed by the Object.Returns the Element which was constructed by the Object. |
| public final NodeList | Returns: the Element which was constructed by the Object.Returns the Element plus a leading and a trailing CarriageReturn Text node. |
| protected Node | |
| protected String | |
| public String | Returns: the Text of the textNodeMethod getTextFromChildElement |
| public String | Returns: the Text obtained by concatenating all the text nodes of this elementMethod getTextFromTextChild |
| pack-priv void | |
| public int | |
| public static void | |
| public static void | |
| protected void | setDocument(Document
New document object being wrapped. doc)Set a new value for the wrapped document that this object is a proxy for. |
| public void | |
| protected void | setElement(Element
New element elem)New value for the wrapped XML element that this object is a proxy for. |
| protected void | |
| protected void | |
| private static void | |
| public void |
| baseURI | back to summary |
|---|---|
| protected String baseURI Field baseURI | |
| LOG | back to summary |
|---|---|
| protected static final Logger LOG | |
| prefixMappings | back to summary |
|---|---|
| private static Map<String, String> prefixMappings Field prefixMappings | |
| wrappedDoc | back to summary |
|---|---|
| private Document wrappedDoc Field doc | |
| wrappedElement | back to summary |
|---|---|
| private Element wrappedElement What XML element does this ElementProxy instance wrap? | |
| ElementProxy | back to summary |
|---|---|
| public ElementProxy() Constructor ElementProxy | |
| ElementProxy | back to summary |
|---|---|
| public ElementProxy(Document doc) Constructor ElementProxy | |
| ElementProxy | back to summary |
|---|---|
| public ElementProxy(Element element, String baseURI) throws XMLSecurityException Constructor ElementProxy | |
| addBase64Element | back to summary |
|---|---|
| public void addBase64Element(byte[] bytes, String localname) Method addBase64Element | |
| addBase64Text | back to summary |
|---|---|
| public void addBase64Text(byte[] bytes) Method addBase64Text | |
| addBigIntegerElement | back to summary |
|---|---|
| public void addBigIntegerElement(BigInteger bi, String localname) Method addBigIntegerElement | |
| addReturnToSelf | back to summary |
|---|---|
| protected void addReturnToSelf() | |
| addText | back to summary |
|---|---|
| public void addText(String text) Method addText | |
| addTextElement | back to summary |
|---|---|
| public void addTextElement(String text, String localname) Method addTextElement | |
| appendOther | back to summary |
|---|---|
| protected void appendOther(Element parent, Node toAppend) | |
| appendSelf | back to summary |
|---|---|
| protected void appendSelf(ElementProxy toAppend) | |
| appendSelf | back to summary |
|---|---|
| protected void appendSelf(Node toAppend) | |
| createElementForFamily | back to summary |
|---|---|
| public static Element createElementForFamily(Document doc, String namespace, String localName) This method creates an Element in a given namespace with a given localname.
It uses the
| |
| createElementForFamilyLocal | back to summary |
|---|---|
| protected Element createElementForFamilyLocal(String namespace, String localName) | |
| createText | back to summary |
|---|---|
| protected Text createText(String text) | |
| getBaseLocalName | back to summary |
|---|---|
| public abstract String getBaseLocalName() Returns the localname of the Elements of the sub-class.
| |
| getBaseNamespace | back to summary |
|---|---|
| public abstract String getBaseNamespace() Returns the namespace of the Elements of the sub-class.
| |
| getBaseURI | back to summary |
|---|---|
| public String getBaseURI() Method getBaseURI
| |
| getBigIntegerFromChildElement | back to summary |
|---|---|
| public BigInteger getBigIntegerFromChildElement(String localname, String namespace) Method getVal
| |
| getBytesFromTextChild | back to summary |
|---|---|
| public byte[] getBytesFromTextChild() throws XMLSecurityException Method getBytesFromTextChild
| |
| getDefaultPrefix | back to summary |
|---|---|
| public static String getDefaultPrefix(String namespace) Method getDefaultPrefix
| |
| getDocument | back to summary |
|---|---|
| public Document getDocument() Method getDocument
| |
| getElement | back to summary |
|---|---|
| public final Element getElement() Returns the Element which was constructed by the Object.
| |
| getElementPlusReturns | back to summary |
|---|---|
| public final NodeList getElementPlusReturns() Returns the Element plus a leading and a trailing CarriageReturn Text node.
| |
| getFirstChild | back to summary |
|---|---|
| protected Node getFirstChild() | |
| getLocalAttribute | back to summary |
|---|---|
| protected String getLocalAttribute(String attrName) | |
| getTextFromChildElement | back to summary |
|---|---|
| public String getTextFromChildElement(String localname, String namespace) Method getTextFromChildElement
| |
| getTextFromTextChild | back to summary |
|---|---|
| public String getTextFromTextChild() Method getTextFromTextChild
| |
| guaranteeThatElementInCorrectSpace | back to summary |
|---|---|
| pack-priv void guaranteeThatElementInCorrectSpace() throws XMLSecurityException Method guaranteeThatElementInCorrectSpace | |
| length | back to summary |
|---|---|
| public int length(String namespace, String localname) Method length
| |
| registerDefaultPrefixes | back to summary |
|---|---|
| public static void registerDefaultPrefixes() throws XMLSecurityException This method registers the default prefixes. | |
| setDefaultPrefix | back to summary |
|---|---|
| public static void setDefaultPrefix(String namespace, String prefix) throws XMLSecurityException Method setDefaultPrefix
| |
| setDocument | back to summary |
|---|---|
| protected void setDocument(Document doc) Set a new value for the wrapped document that this object is a proxy for.
| |
| setElement | back to summary |
|---|---|
| public void setElement(Element element, String baseURI) throws XMLSecurityException Method setElement | |
| setElement | back to summary |
|---|---|
| protected void setElement(Element elem) New value for the wrapped XML element that this object is a proxy for.
| |
| setLocalAttribute | back to summary |
|---|---|
| protected void setLocalAttribute(String attrName, String value) | |
| setLocalIdAttribute | back to summary |
|---|---|
| protected void setLocalIdAttribute(String attrName, String value) | |
| setNamespacePrefix | back to summary |
|---|---|
| private static void setNamespacePrefix(String namespace, String prefix) throws XMLSecurityException | |
| setXPathNamespaceContext | back to summary |
|---|---|
| public void setXPathNamespaceContext(String prefix, String uri) throws XMLSecurityException Adds an xmlns: definition to the Element. This can be called as follows:
// set namespace with ds prefix
xpathContainer.setXPathNamespaceContext("ds", "http://www.w3.org/2000/09/xmldsig#");
xpathContainer.setXPathNamespaceContext("xmlns:ds", "http://www.w3.org/2000/09/xmldsig#");
| |