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)
PolicyComponent
equal
in interface PolicyComponent
policyComponent
- the PolicyComponent to check whether self is
logically equal or notpublic short getType()
PolicyComponent
getType
in interface PolicyComponent
public QName getName()
Assertion
public void setName(QName n)
public boolean isOptional()
Assertion
isOptional
in interface Assertion
public void setOptional(boolean o)
public boolean isIgnorable()
Assertion
isIgnorable
in interface Assertion
public void setIgnorable(boolean i)
public PolicyComponent normalize()
Assertion
public void serialize(XMLStreamWriter writer) throws XMLStreamException
Assertion
serialize
in interface Assertion
serialize
in interface PolicyComponent
writer
- 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
XMLStreamException
protected boolean hasContents()
protected void writeAttributes(XMLStreamWriter writer) throws XMLStreamException
XMLStreamException
protected String getOrCreatePrefix(String ns, XMLStreamWriter writer) throws XMLStreamException
XMLStreamException
protected Assertion clone(boolean isoptional)
Copyright © 2004–2021 The Apache Software Foundation. All rights reserved.