Package 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
Modifier and TypeMethodDescriptionbooleanequal(PolicyComponent policyComponent) Returns true if the argument is equal to self.shortgetType()Returns a short value which uniquely identify the type of the PolicyComponent.voidserialize(XMLStreamWriter writer) Serializes the PolicyComponent using an XMLStreamWriter.
-
Method Details
-
serialize
Serializes the PolicyComponent using an XMLStreamWriter.- Parameters:
writer- the writer that the component should write itself- Throws:
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
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.
-