com.ibm.websphere.fabric.da
Class PolicyAssertion<P extends PropertyMap>

java.lang.Object
  extended by com.ibm.websphere.fabric.types.PolicyAssertion<P>
      extended by com.ibm.websphere.fabric.da.PolicyAssertion<P>
Type Parameters:
P - Formal type parameter used to indicate that that concrete implementations of this class can specify a subtype of PropertyMap upon instantiation.

is also used as the actual type parameter to PolicyAssertion in this class's definition. Consequently, if no actual type parameter is provided to satisfy the template, PropertyMap is used as the default.

All Implemented Interfaces:
java.io.Serializable

public abstract class PolicyAssertion<P extends PropertyMap>
extends PolicyAssertion<P>
implements java.io.Serializable

Describes either a policy constraint or an endpoint capability.

Policy assertions are tied ontological concepts in the Fabric Business Services Repository (Fabric BSR). Each such assertion is modeled with at least one assertion property. Some assertions have multiple properties. Some examples of assertions:

An instance of such an annotation may be:
 PolicyAnnotation cra = ...;
 cra.getTypeUri();
   // returns "http://my.domain.com/path/project-schema#CountryRestriction"
 PropertyMap crp = cra.getInstanceProperties();
 crp.getProperty("http://my.domain.com/path/project-schema#allowOnlyCountry");
   // returns TypedValue "USA"
 

This class is not intended for subclass by external clients.

Version:
$Id: $
Author:
dilumr@us.ibm.com
See Also:
Serialized Form

Constructor Summary
PolicyAssertion()
           
 
Method Summary
abstract  P getInstanceProperties()
          Exposes the actual constraint values of this assertion in PropertyMap form.
abstract  P getTypeAnnotations()
          Gets the annotations about the assertion type itself.
 
Methods inherited from class com.ibm.websphere.fabric.types.PolicyAssertion
getSourceUri, getTypeUri, isAutomatic, isFilledFromContext, isLocked, isRequired
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PolicyAssertion

public PolicyAssertion()
Method Detail

getTypeAnnotations

public abstract P getTypeAnnotations()
Gets the annotations about the assertion type itself. This exposure simplifies DA extensions, as it alleviates the need for direct link to the Fabric BSR. Instead, the extensions can couple conditional behavior to certain annotations' well known URIs and semantics.

Specified by:
getTypeAnnotations in class PolicyAssertion<P extends PropertyMap>
Returns:
non-null propertyMap whose names are URIs in String form.

getInstanceProperties

public abstract P getInstanceProperties()
Exposes the actual constraint values of this assertion in PropertyMap form. See the documentation for the class for an example.

Specified by:
getInstanceProperties in class PolicyAssertion<P extends PropertyMap>
Returns:
non-null propertyMap whose names are URIs in String form.


Copyright © 2002-2009 IBM. All Rights Reserved.