public class XmlPrimitiveAssertion extends PrimitiveAssertion implements Assertion
| Modifier and Type | Field and Description |
|---|---|
protected org.w3c.dom.Element |
element |
attributes, ignorable, name, optional, textValue| Constructor and Description |
|---|
XmlPrimitiveAssertion(org.w3c.dom.Element element)
Constructs a XmlPrimitiveAssertion from an Element.
|
| Modifier and Type | Method and Description |
|---|---|
private void |
copyEvents(javax.xml.stream.XMLEventReader reader,
javax.xml.stream.XMLStreamWriter writer) |
boolean |
equal(PolicyComponent policyComponent)
Returns true if the argument is equal to self.
|
short |
getType()
Returns Constants.TYPE_ASSERTION
|
org.w3c.dom.Element |
getValue()
Returns the wrapped Element.
|
PolicyComponent |
normalize()
Returns the partial normalized version of the wrapped Element, that is
assumed to be an assertion.
|
void |
serialize(javax.xml.stream.XMLStreamWriter writer)
Serialize this Assertion into its XML infoset using XMLStreamWriter.
|
void |
setValue(org.w3c.dom.Element el)
Sets the wrapped Element.
|
addAttribute, addAttributes, clone, getAttribute, getName, getOrCreatePrefix, getTextValue, hasContents, isIgnorable, isOptional, setIgnorable, setName, setOptional, setTextValue, toString, writeAttributes, writeContentsclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetName, isIgnorable, isOptionalpublic XmlPrimitiveAssertion(org.w3c.dom.Element element)
element - the Element from which the XmlAssertion is constructedpublic void setValue(org.w3c.dom.Element el)
element - the Element to be set as wrappedpublic org.w3c.dom.Element getValue()
public PolicyComponent normalize()
normalize in interface Assertionnormalize in class PrimitiveAssertionpublic void serialize(javax.xml.stream.XMLStreamWriter writer)
throws javax.xml.stream.XMLStreamException
Assertionserialize in interface Assertionserialize in interface PolicyComponentserialize in class PrimitiveAssertionwriter - the writer that the component should write itselfjavax.xml.stream.XMLStreamException - if an errors in the process of serialization of the
PolicyComponent.public final short getType()
getType in interface PolicyComponentgetType in class PrimitiveAssertionpublic boolean equal(PolicyComponent policyComponent)
PolicyComponentequal in interface PolicyComponentequal in class PrimitiveAssertionpolicyComponent - the PolicyComponent to check whether self is
logically equal or notprivate void copyEvents(javax.xml.stream.XMLEventReader reader,
javax.xml.stream.XMLStreamWriter writer)
throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLStreamException