public class Advice extends XMLElement
Constructor and Description |
---|
Advice(org.w3c.dom.Document owner)
Creates a new
Advice instance. |
Advice(org.w3c.dom.Element element)
Creates a new
Advice instance from the given Element node. |
Advice(org.w3c.dom.Element element, java.lang.String SystemId)
Creates a new
Advice instance from the given Element node. |
Modifier and Type | Method and Description |
---|---|
void |
addAssertion(Assertion assertion)
Adds an
Assertion to this Advice element. |
void |
addAssertionIDReference(java.lang.String id)
Adds an ID that refers to a specific Assertion.
|
java.util.List |
getAssertionIDReferences()
Returns a list of assertion IDs.
|
java.util.List |
getAssertions()
Returns a list of assertions.
|
addNSPrefixAttr, addNSPrefixAttr, addNSPrefixAttrDefault, addNSPrefixAttrDefault, getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getChildElementsByTagName, getChildElementsByTagName, getChildElementsByTagNameNS, getChildElementsByTagNameNS, getDefaultNSPrefix, getElement, getElementsByTagName, getElementsByTagNameNS, getTagName, hasAttribute, hasAttributeNS, removeAttribute, removeAttributeNode, removeAttributeNS, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS, setDefaultNSPrefix
appendChild, appendChild, appendTo, cloneNode, getAttributes, getChildNodes, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNode, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getSystemId, hasAttributes, hasChildNodes, insertBefore, insertBefore, isSupported, normalize, removeChild, removeChild, replaceChild, replaceChild, setNodeValue, setPrefix, setSystemId, toBytesXML, toStringXML
public Advice(org.w3c.dom.Element element) throws org.w3c.dom.DOMException
Advice
instance from the given Element node.element
- An Advice element.org.w3c.dom.DOMException
public Advice(org.w3c.dom.Element element, java.lang.String SystemId) throws org.w3c.dom.DOMException
Advice
instance from the given Element node.element
- An Advice element.systemId
- The URI string system ID for the Advice
.org.w3c.dom.DOMException
public Advice(org.w3c.dom.Document owner) throws org.w3c.dom.DOMException
Advice
instance.owner
- The owner document of the new Advice.org.w3c.dom.DOMException
public void addAssertionIDReference(java.lang.String id)
id
- An String representing the ID of an assertion.public java.util.List getAssertionIDReferences()
List
object containing String objects, or an empty List
if no ID has been set.public void addAssertion(Assertion assertion)
Assertion
to this Advice
element.Assertion
- An Assertion
object.public java.util.List getAssertions()
List
object containing Assertion
objects, or an empty List
if no assertion has been set.