ponderEnforcement.policyService
Class CompositePolicyType

java.lang.Object
  |
  +--ponderEnforcement.policyService.CompositePolicyEntry
        |
        +--ponderEnforcement.policyService.CompositePolicyType
All Implemented Interfaces:
CompositePolicyTypeI, java.io.Serializable

public class CompositePolicyType
extends CompositePolicyEntry
implements CompositePolicyTypeI, java.io.Serializable

Function:This is an implementation of the CompositePolicyTypeI interface

See Also:
Serialized Form

Fields inherited from class ponderEnforcement.policyService.CompositePolicyEntry
name
 
Constructor Summary
CompositePolicyType(java.lang.String newName, java.lang.String newDomain, int newType, TypesListI newBaseTypes, InstantiationsListI newInstList)
          Construct a new CompositePolicy Type
 
Method Summary
 void addSubType(java.lang.String newSubType)
          Add a new sub-type.
 TypesListI getBaseTypes()
          return the list of base-types for this composite policy type
 InstantiationsListI getInstancesList()
          return the list of names for the instances that must be created together with the parameters list that must be passed to each
 boolean getIsType()
          Returns true.
 TypesListI getSubTypes()
          return the list of sub-types for this composite policy type
 void instantiate(java.util.LinkedList parameters)
          Instantiate this Composite Policy
 
Methods inherited from class ponderEnforcement.policyService.CompositePolicyEntry
getDomain, getName, getSourceText, getType, setDomain, setSourceText
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface ponderToolkit.compiler.codeGen.interfaces.CompositePolicyTypeI
getName, getType
 

Constructor Detail

CompositePolicyType

public CompositePolicyType(java.lang.String newName,
                           java.lang.String newDomain,
                           int newType,
                           TypesListI newBaseTypes,
                           InstantiationsListI newInstList)
Construct a new CompositePolicy Type
Method Detail

instantiate

public void instantiate(java.util.LinkedList parameters)
Instantiate this Composite Policy
Specified by:
instantiate in interface CompositePolicyTypeI

getBaseTypes

public TypesListI getBaseTypes()
Description copied from interface: CompositePolicyTypeI
return the list of base-types for this composite policy type
Specified by:
getBaseTypes in interface CompositePolicyTypeI
Returns:
the list of base-types for this composite policy type

getSubTypes

public TypesListI getSubTypes()
Description copied from interface: CompositePolicyTypeI
return the list of sub-types for this composite policy type
Specified by:
getSubTypes in interface CompositePolicyTypeI
Returns:
the list of sub-types for this composite policy type

addSubType

public void addSubType(java.lang.String newSubType)
Add a new sub-type. A sub-type is a type which inherits from this
Specified by:
addSubType in interface CompositePolicyTypeI
Parameters:
newSubType - The sub-type to add

getInstancesList

public InstantiationsListI getInstancesList()
return the list of names for the instances that must be created together with the parameters list that must be passed to each
Specified by:
getInstancesList in interface CompositePolicyTypeI

getIsType

public boolean getIsType()
Returns true. This is a type
Overrides:
getIsType in class CompositePolicyEntry
Returns:
true