org.apache.neethi
Interface PolicyComponent

All Known Subinterfaces:
Assertion, IntersectableAssertion, PolicyContainingAssertion, PolicyOperator
All Known Implementing Classes:
AbstractPolicyOperator, All, ExactlyOne, Policy, PolicyContainingPrimitiveAssertion, PolicyReference, PrimitiveAssertion, XmlPrimitiveAssertion

public interface PolicyComponent

This is an interface which any component of the framework must implement.


Method Summary
 boolean equal(PolicyComponent policyComponent)
          Returns true if the argument is equal to self.
 short getType()
          Returns a short value which uniquely identify the type of the PolicyComponent.
 void serialize(javax.xml.stream.XMLStreamWriter writer)
          Serializes the PolicyComponent using an XMLStreamWriter.
 

Method Detail

serialize

void serialize(javax.xml.stream.XMLStreamWriter writer)
               throws javax.xml.stream.XMLStreamException
Serializes the PolicyComponent using an XMLStreamWriter.

Parameters:
writer - the writer that the component should write itself
Throws:
javax.xml.stream.XMLStreamException - if an errors in the process of serialization of the PolicyComponent.

getType

short getType()
Returns a short value which uniquely identify the type of the PolicyComponent.

Returns:
Constants.TYPE_POLICY for Policy type PolicyComponent Constants.TYPE_EXACTLYONE for ExactlyOne type PolicyComponent Constants.TYPE_ALL for All type PolicyComponent Constants.TYPE_ASSERTION for Assertion type PolicyComponent

equal

boolean equal(PolicyComponent policyComponent)
Returns true if the argument is equal to self.

Parameters:
policyComponent - the PolicyComponent to check whether self is logically equal or not
Returns:
true if the argument is equal to self.


Copyright © 2004-2014 The Apache Software Foundation. All Rights Reserved.