ponderEnforcement.policyService
Class PolicyEntry

java.lang.Object
  |
  +--ponderEnforcement.policyService.PolicyEntry
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
PolicyEntryInst, PolicyEntryType

public abstract class PolicyEntry
extends java.lang.Object
implements java.io.Serializable

Function: Models a policy entry object. This object holds all of the elements required to be stored in the directory: the java class (or other code that is generated for the policy), the source text of the policy and the XML code for the policy. This is an abstract class. It does not define the way to create a policy object and return it. If it is a type it returns null. If an instance it instantiates the object from the Java Bytecode.

See Also:
Serialized Form

Field Summary
protected  byte[] javaBytes
           
protected  java.lang.String name
          Fields
 
Constructor Summary
PolicyEntry(java.lang.String newName, java.lang.String newDomain, int newType)
          Constructor
 
Method Summary
 java.lang.String getDomain()
          Returns the policy domain path
abstract  boolean getIsType()
          Returns true/false depending on whether this is a type or not To be overriden
 byte[] getJavaBytes()
          Returns the java bytecodes
 java.lang.String getName()
          Returns the policy name
abstract  BasicPolicyI getPolicyObject()
          If it is a type it returns null.
 java.lang.String getSourceText()
          Returns the source text
 int getType()
          Returns the policy type - the types are defined in: ponderToolkit.compiler.codeGen.interfaces.BasicPolicyI
 void setJavaBytes(byte[] newJavaBytes)
          Set the Java Bytecode
 void setSourceText(java.lang.String newSourceText)
          Set the Source Code of the policy
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

name

protected java.lang.String name
Fields

javaBytes

protected byte[] javaBytes
Constructor Detail

PolicyEntry

public PolicyEntry(java.lang.String newName,
                   java.lang.String newDomain,
                   int newType)
Constructor
Method Detail

setJavaBytes

public void setJavaBytes(byte[] newJavaBytes)
Set the Java Bytecode

setSourceText

public void setSourceText(java.lang.String newSourceText)
Set the Source Code of the policy

getName

public java.lang.String getName()
Returns the policy name

getDomain

public java.lang.String getDomain()
Returns the policy domain path

getType

public int getType()
Returns the policy type - the types are defined in: ponderToolkit.compiler.codeGen.interfaces.BasicPolicyI

getJavaBytes

public byte[] getJavaBytes()
Returns the java bytecodes

getSourceText

public java.lang.String getSourceText()
Returns the source text

getIsType

public abstract boolean getIsType()
Returns true/false depending on whether this is a type or not To be overriden

getPolicyObject

public abstract BasicPolicyI getPolicyObject()
                                      throws java.lang.Exception
If it is a type it returns null. If an instance it instantiates the object from the Java Bytecode and returns it. To be overriden