public abstract class Any extends BaseElement
AnyType Schema data type has a content model that allows a
sequence of arbitrary XML elements that (mixed with text) is of unrestricted
length. It also allows for text content only. Additionally, an element of
this data type can bear an unrestricted number of arbitrary attributes. It
is used throughout the remaining parts of this clause wherever the content
of an XML element has been left open.
<xsd:complexType name="AnyType" mixed="true">
<xsd:sequence minOccurs="0" maxOccurs="unbounded">
<xsd:any namespace="##any" processContents="lax"/>
</xsd:sequence>
<xsd:anyAttribute namespace="##any"/>
</xsd:complexType>
mContext, mElement, mId| Modifier | Constructor and Description |
|---|---|
protected |
Any(Context aContext)
Construct new BaseElement according to context
|
protected |
Any(org.w3c.dom.Element aElement,
Context aContext)
Construct Any from existing
|
| Modifier and Type | Method and Description |
|---|---|
void |
addContent(BaseElement aElement)
Add element to contents
|
void |
addContent(org.w3c.dom.Node aNode)
Add node to contents
|
void |
addContent(java.lang.String aContent)
Add String to contents
|
void |
addContentBase64(byte[] aBytes)
Add bytes as base64 to contents
|
org.w3c.dom.NodeList |
getContent() |
addBigIntegerElement, addLineBreak, addLineBreak, checkNamespace, createElement, generateAndSetId, getAttribute, getBigIntegerFromElement, getChildText, getContext, getDocument, getElement, getId, getLocalName, getNamespace, insertBase64EncodedElement, insertElement, insertTextElement, selectChildElement, selectChildren, setIdprotected Any(Context aContext)
aContext - where some signature spesific properties reside.protected Any(org.w3c.dom.Element aElement,
Context aContext)
throws XMLSignatureException
aElement - xml elementaContext - according to contextXMLSignatureException - when structure is invalid or can not be
resolved appropriatelypublic org.w3c.dom.NodeList getContent()
public void addContent(java.lang.String aContent)
aContent - that will be added to content/s.public void addContentBase64(byte[] aBytes)
aBytes - that will be added to content/s.public void addContent(BaseElement aElement)
aElement - that will be added to content/s.public void addContent(org.w3c.dom.Node aNode)
aNode - that will be added to content/s.Copyright © 2025. All rights reserved.