public class XmlPrimitiveAssertion extends PrimitiveAssertion implements Assertion
| Modifier and Type | Field and Description |
|---|---|
protected Element |
element |
attributes, ignorable, name, optional, textValue| Constructor and Description |
|---|
XmlPrimitiveAssertion(Element element)
Constructs a XmlPrimitiveAssertion from an Element.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equal(PolicyComponent policyComponent)
Returns true if the argument is equal to self.
|
short |
getType()
Returns Constants.TYPE_ASSERTION
|
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(XMLStreamWriter writer)
Serialize this Assertion into its XML infoset using XMLStreamWriter.
|
void |
setValue(Element el)
Sets the wrapped Element.
|
addAttribute, addAttributes, clone, equals, getAttribute, getAttributes, getName, getOrCreatePrefix, getTextValue, hasContents, hashCode, isIgnorable, isOptional, setIgnorable, setName, setOptional, setTextValue, toString, writeAttributes, writeContentsclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetName, isIgnorable, isOptionalprotected Element element
public XmlPrimitiveAssertion(Element element)
element - the Element from which the XmlAssertion is constructedpublic void setValue(Element el)
el - the Element to be set as wrappedpublic Element getValue()
public PolicyComponent normalize()
normalize in interface Assertionnormalize in class PrimitiveAssertionpublic void serialize(XMLStreamWriter writer) throws XMLStreamException
Assertionserialize in interface Assertionserialize in interface PolicyComponentserialize in class PrimitiveAssertionwriter - the writer that the component should write itselfXMLStreamException - 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 notCopyright © 2004–2024 The Apache Software Foundation. All rights reserved.