|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.neethi.builders.PrimitiveAssertion
public class PrimitiveAssertion
| Field Summary | |
|---|---|
protected Map<QName,String> |
attributes
|
protected boolean |
ignorable
|
protected QName |
name
|
protected boolean |
optional
|
protected String |
textValue
|
| Constructor Summary | |
|---|---|
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)
|
|
| Method Summary | |
|---|---|
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. |
String |
getAttribute(QName n)
|
QName |
getName()
Returns the QName of the Root Element of this Assertion. |
protected String |
getOrCreatePrefix(String ns,
javax.xml.stream.XMLStreamWriter writer)
|
String |
getTextValue()
|
short |
getType()
Returns a short value which uniquely identify the type of the PolicyComponent. |
protected boolean |
hasContents()
|
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(javax.xml.stream.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(javax.xml.stream.XMLStreamWriter writer)
|
protected void |
writeContents(javax.xml.stream.XMLStreamWriter writer)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected QName name
protected boolean optional
protected boolean ignorable
protected String textValue
protected Map<QName,String> attributes
| Constructor Detail |
|---|
public PrimitiveAssertion()
public PrimitiveAssertion(QName n)
public PrimitiveAssertion(QName n,
boolean o)
public PrimitiveAssertion(QName n,
boolean o,
boolean i)
public PrimitiveAssertion(QName n,
boolean o,
boolean i,
Map<QName,String> atts)
public PrimitiveAssertion(QName n,
boolean o,
boolean i,
Map<QName,String> atts,
String value)
| Method Detail |
|---|
public String getAttribute(QName n)
public void addAttribute(QName n,
String value)
public void addAttributes(Map<QName,String> atts)
public String getTextValue()
public void setTextValue(String s)
public String toString()
toString in class Objectpublic boolean equal(PolicyComponent policyComponent)
PolicyComponent
equal in interface PolicyComponentpolicyComponent - the PolicyComponent to check whether self is
logically equal or not
public short getType()
PolicyComponent
getType in interface PolicyComponentpublic QName getName()
Assertion
getName in interface Assertionpublic void setName(QName n)
public boolean isOptional()
Assertion
isOptional in interface Assertionpublic void setOptional(boolean o)
public boolean isIgnorable()
Assertion
isIgnorable in interface Assertionpublic void setIgnorable(boolean i)
public PolicyComponent normalize()
Assertion
normalize in interface Assertion
public void serialize(javax.xml.stream.XMLStreamWriter writer)
throws javax.xml.stream.XMLStreamException
Assertion
serialize in interface Assertionserialize in interface PolicyComponentwriter - the writer that the component should write itself
javax.xml.stream.XMLStreamException - if an errors in the process of serialization of the
PolicyComponent.
protected void writeContents(javax.xml.stream.XMLStreamWriter writer)
throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLStreamExceptionprotected boolean hasContents()
protected void writeAttributes(javax.xml.stream.XMLStreamWriter writer)
throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLStreamException
protected String getOrCreatePrefix(String ns,
javax.xml.stream.XMLStreamWriter writer)
throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLStreamExceptionprotected Assertion clone(boolean isoptional)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||