|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object kaos.kpat.models.ModelPolicy
public class ModelPolicy
This class models a policy in KPAT
Field Summary | |
---|---|
javax.swing.tree.TreeModel |
_analysisTreeModel
|
PolicyMsg |
_originalPolicyMsg
|
static java.awt.datatransfer.DataFlavor |
INFO_FLAVOR
|
Constructor Summary | |
---|---|
ModelPolicy(ModelPolicy po)
The 'copy' contructor for cloning the policy list. |
|
ModelPolicy(PolicyMsg policyMsg)
Constructor for modeling an existing policy Note that if you use this constructor the set* methods will not have any affect on the policy returned by toPolicyMsg() |
|
ModelPolicy(java.lang.String id,
java.lang.String name,
java.lang.String description,
java.lang.String scope,
java.lang.String subjectID,
java.lang.String subjectName,
java.lang.String targetID,
java.lang.String targetName,
java.lang.String type,
boolean inForce,
boolean isSingleValued,
boolean isFixedSet,
ModelAttributeList attributeList)
OLD CONSTRUCTOR ONLY FOR CREATING XML POLICIES Constructor. |
Method Summary | |
---|---|
java.lang.Object |
clone()
'Deep' clone. |
int |
compareTo(java.lang.Object o)
|
javax.swing.tree.TreeModel |
getAnalysisTreeModel()
|
ModelAttributeList |
getAttributeList()
|
java.lang.String |
getDescription()
|
int |
getDomainItemCount()
|
java.lang.String |
getID()
|
java.lang.String |
getName()
|
java.lang.String |
getNameJTP()
|
java.lang.String |
getPolicyTemplate()
|
java.lang.String |
getPriority()
|
java.lang.String |
getScope()
|
java.lang.String |
getSubjectID()
|
java.lang.String |
getSubjectName()
|
java.lang.String |
getTargetID()
|
java.lang.String |
getTargetName()
|
java.lang.Object |
getTransferData(java.awt.datatransfer.DataFlavor df)
implements Transferable interface |
java.awt.datatransfer.DataFlavor[] |
getTransferDataFlavors()
implements Transferable interface |
java.lang.String |
getType()
|
boolean |
isDataFlavorSupported(java.awt.datatransfer.DataFlavor df)
|
boolean |
isFixedSet()
|
boolean |
isHarmonized()
|
boolean |
isInForce()
|
boolean |
isSingleValued()
|
java.lang.String |
selectedAttributesString()
Return a pretty string containing all the currently *selected* attributes. |
void |
setAnalysisTreeModel(javax.swing.tree.TreeModel analysisTreeModel)
|
void |
setAttributeList(ModelAttributeList newList)
|
void |
setDescription(java.lang.String newDescription)
|
void |
setFixedSet(boolean isFixedSet)
|
void |
setHarmonized(boolean harmon)
|
void |
setID(java.lang.String newID)
|
void |
setInForce(boolean inf)
|
void |
setName(java.lang.String newName)
|
void |
setNameJTP(java.lang.String newName)
|
void |
setPolicyTemplate(java.lang.String policyTemplate)
|
void |
setScope(java.lang.String newScope)
|
void |
setSingleValued(boolean isSingleValued)
|
void |
setSubjectID(java.lang.String newID)
|
void |
setSubjectName(java.lang.String newName)
|
void |
setTargetID(java.lang.String newID)
|
void |
setTargetName(java.lang.String newName)
|
void |
setType(java.lang.String newType)
|
PolicyMsg |
toPolicyMsg()
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public PolicyMsg _originalPolicyMsg
public javax.swing.tree.TreeModel _analysisTreeModel
public static final java.awt.datatransfer.DataFlavor INFO_FLAVOR
Constructor Detail |
---|
public ModelPolicy(java.lang.String id, java.lang.String name, java.lang.String description, java.lang.String scope, java.lang.String subjectID, java.lang.String subjectName, java.lang.String targetID, java.lang.String targetName, java.lang.String type, boolean inForce, boolean isSingleValued, boolean isFixedSet, ModelAttributeList attributeList)
public ModelPolicy(PolicyMsg policyMsg)
public ModelPolicy(ModelPolicy po)
Method Detail |
---|
public void setAnalysisTreeModel(javax.swing.tree.TreeModel analysisTreeModel)
public javax.swing.tree.TreeModel getAnalysisTreeModel()
public java.lang.Object clone()
clone
in class java.lang.Object
public PolicyMsg toPolicyMsg()
public java.lang.String selectedAttributesString()
public int getDomainItemCount()
getDomainItemCount
in interface iModelPolicy
public ModelAttributeList getAttributeList()
getAttributeList
in interface iModelPolicy
public void setAttributeList(ModelAttributeList newList)
public java.lang.String getID()
public void setID(java.lang.String newID)
public java.lang.String getName()
getName
in interface iModelPolicy
public void setName(java.lang.String newName)
public java.lang.String getNameJTP()
public void setNameJTP(java.lang.String newName)
public java.lang.String getScope()
public void setScope(java.lang.String newScope)
public java.lang.String getSubjectID()
public void setSubjectID(java.lang.String newID)
public java.lang.String getSubjectName()
public void setSubjectName(java.lang.String newName)
public java.lang.String getTargetID()
public void setTargetID(java.lang.String newID)
public java.lang.String getTargetName()
public void setTargetName(java.lang.String newName)
public java.lang.String getType()
public void setType(java.lang.String newType)
public void setInForce(boolean inf)
setInForce
in interface iModelPolicy
public boolean isInForce()
isInForce
in interface iModelPolicy
public void setHarmonized(boolean harmon)
public boolean isHarmonized()
public java.lang.String getPriority()
public void setSingleValued(boolean isSingleValued)
setSingleValued
in interface iModelPolicy
public boolean isSingleValued()
isSingleValued
in interface iModelPolicy
public void setFixedSet(boolean isFixedSet)
setFixedSet
in interface iModelPolicy
public boolean isFixedSet()
isFixedSet
in interface iModelPolicy
public java.lang.String getDescription()
public void setDescription(java.lang.String newDescription)
public java.lang.String toString()
toString
in class java.lang.Object
public void setPolicyTemplate(java.lang.String policyTemplate)
public java.lang.String getPolicyTemplate()
public int compareTo(java.lang.Object o)
compareTo
in interface java.lang.Comparable
public boolean isDataFlavorSupported(java.awt.datatransfer.DataFlavor df)
isDataFlavorSupported
in interface java.awt.datatransfer.Transferable
public java.lang.Object getTransferData(java.awt.datatransfer.DataFlavor df) throws java.awt.datatransfer.UnsupportedFlavorException, java.io.IOException
getTransferData
in interface java.awt.datatransfer.Transferable
java.awt.datatransfer.UnsupportedFlavorException
java.io.IOException
public java.awt.datatransfer.DataFlavor[] getTransferDataFlavors()
getTransferDataFlavors
in interface java.awt.datatransfer.Transferable
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |