org.apache.neethi.builders
Class PolicyContainingPrimitiveAssertion

java.lang.Object
  extended by org.apache.neethi.builders.PrimitiveAssertion
      extended by 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).


Field Summary
protected  Policy nested
           
 
Fields inherited from class org.apache.neethi.builders.PrimitiveAssertion
attributes, ignorable, name, optional, textValue
 
Constructor Summary
PolicyContainingPrimitiveAssertion(QName name, boolean optional, boolean ignorable, Map<QName,String> atts, Policy p)
           
PolicyContainingPrimitiveAssertion(QName name, boolean optional, boolean ignorable, Policy p)
           
 
Method Summary
protected  Assertion clone(boolean optional, Policy n)
           
 boolean equal(PolicyComponent policyComponent)
          Returns true if the argument is equal to self.
 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(javax.xml.stream.XMLStreamWriter writer)
           
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.apache.neethi.Assertion
getName, isIgnorable, isOptional, serialize
 
Methods inherited from interface org.apache.neethi.PolicyComponent
getType
 

Field Detail

nested

protected Policy nested
Constructor Detail

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)
Method Detail

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-2014 The Apache Software Foundation. All Rights Reserved.