|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.neethi.builders.xml.XmlPrimtiveAssertion
public class XmlPrimtiveAssertion
XmlPrimitiveAssertion wraps an OMElement s.t. any unkown elements can be treated an assertions if there is no AssertionBuilder that can build an assertion from that OMElement.
Constructor Summary | |
---|---|
XmlPrimtiveAssertion(org.apache.axiom.om.OMElement element)
Constructs a XmlPrimitiveAssertion from an OMElement. |
Method Summary | |
---|---|
boolean |
equal(PolicyComponent policyComponent)
Returns true if the argument is equal to self. |
javax.xml.namespace.QName |
getName()
Returns the QName of the wrapped OMElement. |
short |
getType()
Returns Constants.TYPE_ASSERTION |
org.apache.axiom.om.OMElement |
getValue()
Returns the wrapped OMElement. |
boolean |
isOptional()
Returns true if the wrapped element that assumed to be an assertion, is optional. |
PolicyComponent |
normalize()
Returns the partial normalized version of the wrapped OMElement, that is assumed to be an assertion. |
PolicyComponent |
normalize(boolean isDeep)
Throws an UnsupportedOperationException since an assertion of an unknown element can't be fully normalized due to it's unkonwn composite. |
void |
serialize(javax.xml.stream.XMLStreamWriter writer)
Serialize this Assertion into its XML infoset using XMLStreamWriter. |
void |
setValue(org.apache.axiom.om.OMElement element)
Sets the wrapped OMElement. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XmlPrimtiveAssertion(org.apache.axiom.om.OMElement element)
element
- the OMElement from which the XmlAssertion is constructedMethod Detail |
---|
public javax.xml.namespace.QName getName()
getName
in interface Assertion
public void setValue(org.apache.axiom.om.OMElement element)
element
- the OMElement to be set as wrappedpublic org.apache.axiom.om.OMElement getValue()
public boolean isOptional()
isOptional
in interface Assertion
public PolicyComponent normalize()
normalize
in interface Assertion
public PolicyComponent normalize(boolean isDeep)
public void serialize(javax.xml.stream.XMLStreamWriter writer) throws javax.xml.stream.XMLStreamException
Assertion
serialize
in interface Assertion
serialize
in interface PolicyComponent
writer
- the writer that the component should write itself
javax.xml.stream.XMLStreamException
- if an errors in the process of serialization of the
PolicyComponent.public final short getType()
getType
in interface PolicyComponent
public boolean equal(PolicyComponent policyComponent)
PolicyComponent
equal
in interface PolicyComponent
policyComponent
- the PolicyComponent to check whether self is
logically equal or not
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |