|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--ponderEnforcement.policyService.PolicyEntry
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.
| 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 |
protected java.lang.String name
protected byte[] javaBytes
| Constructor Detail |
public PolicyEntry(java.lang.String newName,
java.lang.String newDomain,
int newType)
| Method Detail |
public void setJavaBytes(byte[] newJavaBytes)
public void setSourceText(java.lang.String newSourceText)
public java.lang.String getName()
public java.lang.String getDomain()
public int getType()
public byte[] getJavaBytes()
public java.lang.String getSourceText()
public abstract boolean getIsType()
public abstract BasicPolicyI getPolicyObject()
throws java.lang.Exception
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||