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, writeContents
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getName, isIgnorable, isOptional
protected 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 Assertion
normalize
in class PrimitiveAssertion
public void serialize(XMLStreamWriter writer) throws XMLStreamException
Assertion
serialize
in interface Assertion
serialize
in interface PolicyComponent
serialize
in class PrimitiveAssertion
writer
- 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 PolicyComponent
getType
in class PrimitiveAssertion
public boolean equal(PolicyComponent policyComponent)
PolicyComponent
equal
in interface PolicyComponent
equal
in class PrimitiveAssertion
policyComponent
- the PolicyComponent to check whether self is
logically equal or notCopyright © 2004–2021 The Apache Software Foundation. All rights reserved.