public class PrimitiveAssertion extends Object implements Assertion
| Modifier and Type | Field and Description |
|---|---|
protected Map<QName,String> |
attributes |
protected boolean |
ignorable |
protected QName |
name |
protected boolean |
optional |
protected String |
textValue |
| Constructor and Description |
|---|
PrimitiveAssertion() |
PrimitiveAssertion(QName n) |
PrimitiveAssertion(QName n,
boolean o) |
PrimitiveAssertion(QName n,
boolean o,
boolean i) |
PrimitiveAssertion(QName n,
boolean o,
boolean i,
Map<QName,String> atts) |
PrimitiveAssertion(QName n,
boolean o,
boolean i,
Map<QName,String> atts,
String value) |
| Modifier and Type | Method and Description |
|---|---|
void |
addAttribute(QName n,
String value) |
void |
addAttributes(Map<QName,String> atts) |
protected Assertion |
clone(boolean isoptional) |
boolean |
equal(PolicyComponent policyComponent)
Returns true if the argument is equal to self.
|
boolean |
equals(Object obj) |
String |
getAttribute(QName n) |
Map<QName,String> |
getAttributes() |
QName |
getName()
Returns the QName of the Root Element of this Assertion.
|
protected String |
getOrCreatePrefix(String ns,
XMLStreamWriter writer) |
String |
getTextValue() |
short |
getType()
Returns a short value which uniquely identify the type of the
PolicyComponent.
|
protected boolean |
hasContents() |
int |
hashCode() |
boolean |
isIgnorable()
Returns true if this Assertion is ignorable.
|
boolean |
isOptional()
Returns true if this Assertion is optional.
|
PolicyComponent |
normalize()
Returns a new PolicyComponent that is the normalized version of this.
|
void |
serialize(XMLStreamWriter writer)
Serialize this Assertion into its XML infoset using XMLStreamWriter.
|
void |
setIgnorable(boolean i) |
void |
setName(QName n) |
void |
setOptional(boolean o) |
void |
setTextValue(String s) |
String |
toString() |
protected void |
writeAttributes(XMLStreamWriter writer) |
protected void |
writeContents(XMLStreamWriter writer) |
protected QName name
protected boolean optional
protected boolean ignorable
protected String textValue
public PrimitiveAssertion()
public PrimitiveAssertion(QName n)
public PrimitiveAssertion(QName n, boolean o)
public PrimitiveAssertion(QName n, boolean o, boolean i)
public String getTextValue()
public void setTextValue(String s)
public boolean equal(PolicyComponent policyComponent)
PolicyComponentequal in interface PolicyComponentpolicyComponent - the PolicyComponent to check whether self is
logically equal or notpublic short getType()
PolicyComponentgetType in interface PolicyComponentpublic QName getName()
Assertionpublic void setName(QName n)
public boolean isOptional()
AssertionisOptional in interface Assertionpublic void setOptional(boolean o)
public boolean isIgnorable()
AssertionisIgnorable in interface Assertionpublic void setIgnorable(boolean i)
public PolicyComponent normalize()
Assertionpublic void serialize(XMLStreamWriter writer) throws XMLStreamException
Assertionserialize in interface Assertionserialize in interface PolicyComponentwriter - the writer that the component should write itselfXMLStreamException - if an errors in the process of serialization of the
PolicyComponent.protected void writeContents(XMLStreamWriter writer) throws XMLStreamException
XMLStreamExceptionprotected boolean hasContents()
protected void writeAttributes(XMLStreamWriter writer) throws XMLStreamException
XMLStreamExceptionprotected String getOrCreatePrefix(String ns, XMLStreamWriter writer) throws XMLStreamException
XMLStreamExceptionprotected Assertion clone(boolean isoptional)
Copyright © 2004–2024 The Apache Software Foundation. All rights reserved.