public class PolicyContainingPrimitiveAssertion extends PrimitiveAssertion implements PolicyContainingAssertion
Modifier and Type | Field and Description |
---|---|
protected Policy |
nested |
attributes, ignorable, name, optional, textValue
Constructor and Description |
---|
PolicyContainingPrimitiveAssertion(QName name,
boolean optional,
boolean ignorable,
Map<QName,String> atts,
Policy p) |
PolicyContainingPrimitiveAssertion(QName name,
boolean optional,
boolean ignorable,
Policy p) |
Modifier and Type | Method and Description |
---|---|
protected Assertion |
clone(boolean optional,
Policy n) |
boolean |
equal(PolicyComponent policyComponent)
Returns true if the argument is equal to self.
|
boolean |
equals(Object obj) |
Policy |
getPolicy() |
protected boolean |
hasContents() |
PolicyComponent |
normalize()
Returns a new PolicyComponent that is the normalized version of this.
|
void |
setPolicy(Policy n) |
protected void |
writeContents(XMLStreamWriter writer) |
addAttribute, addAttributes, clone, getAttribute, getAttributes, getName, getOrCreatePrefix, getTextValue, getType, hashCode, isIgnorable, isOptional, serialize, setIgnorable, setName, setOptional, setTextValue, toString, writeAttributes
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getName, isIgnorable, isOptional, serialize
getType
protected Policy nested
public PolicyContainingPrimitiveAssertion(QName name, boolean optional, boolean ignorable, Policy p)
public PolicyComponent normalize()
Assertion
normalize
in interface Assertion
normalize
in class PrimitiveAssertion
public boolean equal(PolicyComponent policyComponent)
PolicyComponent
equal
in interface PolicyComponent
equal
in class PrimitiveAssertion
policyComponent
- the PolicyComponent to check whether self is
logically equal or notpublic boolean equals(Object obj)
equals
in class PrimitiveAssertion
public void setPolicy(Policy n)
public Policy getPolicy()
getPolicy
in interface PolicyContainingAssertion
protected void writeContents(XMLStreamWriter writer) throws XMLStreamException
writeContents
in class PrimitiveAssertion
XMLStreamException
protected boolean hasContents()
hasContents
in class PrimitiveAssertion
Copyright © 2004–2021 The Apache Software Foundation. All rights reserved.