|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.neethi.builders.PrimitiveAssertion
org.apache.neethi.builders.xml.XmlPrimitiveAssertion
public class XmlPrimitiveAssertion
XmlPrimitiveAssertion wraps an Element s.t. any unknown elements can be treated an assertions if there is no AssertionBuilder that can build an assertion from that Element.
| Field Summary | |
|---|---|
protected Element |
element
|
| Fields inherited from class org.apache.neethi.builders.PrimitiveAssertion |
|---|
attributes, ignorable, name, optional, textValue |
| Constructor Summary | |
|---|---|
XmlPrimitiveAssertion(Element element)
Constructs a XmlPrimitiveAssertion from an Element. |
|
| Method Summary | |
|---|---|
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(javax.xml.stream.XMLStreamWriter writer)
Serialize this Assertion into its XML infoset using XMLStreamWriter. |
void |
setValue(Element el)
Sets the wrapped Element. |
| Methods inherited from class org.apache.neethi.builders.PrimitiveAssertion |
|---|
addAttribute, addAttributes, clone, getAttribute, getName, getOrCreatePrefix, getTextValue, hasContents, isIgnorable, isOptional, setIgnorable, setName, setOptional, setTextValue, toString, writeAttributes, writeContents |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.apache.neethi.Assertion |
|---|
getName, isIgnorable, isOptional |
| Field Detail |
|---|
protected Element element
| Constructor Detail |
|---|
public XmlPrimitiveAssertion(Element element)
element - the Element from which the XmlAssertion is constructed| Method Detail |
|---|
public void setValue(Element el)
element - the Element to be set as wrappedpublic Element getValue()
public PolicyComponent normalize()
normalize in interface Assertionnormalize in class PrimitiveAssertion
public void serialize(javax.xml.stream.XMLStreamWriter writer)
throws javax.xml.stream.XMLStreamException
Assertion
serialize in interface Assertionserialize in interface PolicyComponentserialize in class PrimitiveAssertionwriter - 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 PolicyComponentgetType in class PrimitiveAssertionpublic boolean equal(PolicyComponent policyComponent)
PolicyComponent
equal in interface PolicyComponentequal in class PrimitiveAssertionpolicyComponent - 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 | |||||||||