Project Aristotle - ArisID Attribute Services

org.openliberty.arisid.policy
Interface IPolicyComponent

All Known Subinterfaces:
IAddValuesConstraint, IAssertion, IContractOrLegalConstraint, IDataDisplayMaskConstraint, IDataLossOrBreachConstraint, IDeleteValuesConstraint, ILifetimeConstraint, ILocalizationConstraint, IPolicy, IPropagateConstraint, IPurposeConstraint, IRetentionConstraint

public interface IPolicyComponent

A base interface on top of which any policy element can be implemented (e.g. policy, assertions, all, exactlyone, etc).


Method Summary
 boolean equal(IPolicyComponent 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:
  • IArisWSPolicy.POLICY for Policy type IPolicyComponent
  • IArisWSPolicy.EXACTLYONE for ExactlyOne type IPolicyComponent
  • IArisWSPolicy.ALL for All type IPolicyComponent
  • IArisWSPolicy.ASSERTION for Assertion type IPolicyComponent

equal

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

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

OpenLiberty.org - Licensed under Apache APL 2.0