org.apache.neethi.builders
Class PolicyContainingPrimitiveAssertion
java.lang.Object
org.apache.neethi.builders.PrimitiveAssertion
org.apache.neethi.builders.PolicyContainingPrimitiveAssertion
- All Implemented Interfaces:
- Assertion, PolicyComponent, PolicyContainingAssertion
public class PolicyContainingPrimitiveAssertion
- extends PrimitiveAssertion
- implements PolicyContainingAssertion
Implementation of an assertion that required exactly one (possibly empty) child element
of type Policy (as does for examples the wsam:Addressing assertion).
| Methods inherited from class org.apache.neethi.builders.PrimitiveAssertion |
addAttribute, addAttributes, clone, getAttribute, getName, getOrCreatePrefix, getTextValue, getType, isIgnorable, isOptional, serialize, setIgnorable, setName, setOptional, setTextValue, toString, writeAttributes |
nested
protected Policy nested
PolicyContainingPrimitiveAssertion
public PolicyContainingPrimitiveAssertion(QName name,
boolean optional,
boolean ignorable,
Policy p)
PolicyContainingPrimitiveAssertion
public PolicyContainingPrimitiveAssertion(QName name,
boolean optional,
boolean ignorable,
Map<QName,String> atts,
Policy p)
normalize
public PolicyComponent normalize()
- Description copied from interface:
Assertion
- Returns a new PolicyComponent that is the normalized version of this.
- Specified by:
normalize in interface Assertion- Overrides:
normalize in class PrimitiveAssertion
clone
protected Assertion clone(boolean optional,
Policy n)
equal
public boolean equal(PolicyComponent policyComponent)
- Description copied from interface:
PolicyComponent
- Returns true if the argument is equal to self.
- Specified by:
equal in interface PolicyComponent- Overrides:
equal in class PrimitiveAssertion
- Parameters:
policyComponent - the PolicyComponent to check whether self is
logically equal or not
- Returns:
- true if the argument is equal to self.
setPolicy
public void setPolicy(Policy n)
getPolicy
public Policy getPolicy()
- Specified by:
getPolicy in interface PolicyContainingAssertion
writeContents
protected void writeContents(javax.xml.stream.XMLStreamWriter writer)
throws javax.xml.stream.XMLStreamException
- Overrides:
writeContents in class PrimitiveAssertion
- Throws:
javax.xml.stream.XMLStreamException
hasContents
protected boolean hasContents()
- Overrides:
hasContents in class PrimitiveAssertion
Copyright © 2004-2012 The Apache Software Foundation. All Rights Reserved.