kaos.kpat.models
Class ModelPolicySet

java.lang.Object
  extended by kaos.kpat.models.ModelPolicySet
All Implemented Interfaces:
java.awt.datatransfer.Transferable, java.io.Serializable, java.lang.Cloneable, java.lang.Comparable, iModelPolicySet

public class ModelPolicySet
extends java.lang.Object
implements iModelPolicySet, java.io.Serializable, java.lang.Cloneable, java.lang.Comparable, java.awt.datatransfer.Transferable

The Model Policy Set is the implemetation of the Policy Set Interface.

See Also:
Serialized Form

Field Summary
 PolicySetMsg _policySetMsg
           
static java.awt.datatransfer.DataFlavor INFO_FLAVOR
           
 
Constructor Summary
ModelPolicySet(PolicySetMsg policySetMsg)
           
 
Method Summary
 java.lang.Object clone()
          shallow clone.
 int compareTo(java.lang.Object o)
           
 java.lang.String getDescription()
           
 java.lang.String getName()
           
 java.util.Vector getPolicyIDs()
           
 java.lang.String getSetId()
           
 java.lang.Object getTransferData(java.awt.datatransfer.DataFlavor df)
          implements Transferable interface
 java.awt.datatransfer.DataFlavor[] getTransferDataFlavors()
          implements Transferable interface
 boolean isDataFlavorSupported(java.awt.datatransfer.DataFlavor df)
           
 PolicySetMsg toPolicySetMsg()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_policySetMsg

public PolicySetMsg _policySetMsg

INFO_FLAVOR

public static final java.awt.datatransfer.DataFlavor INFO_FLAVOR
Constructor Detail

ModelPolicySet

public ModelPolicySet(PolicySetMsg policySetMsg)
Method Detail

clone

public java.lang.Object clone()
shallow clone.

Overrides:
clone in class java.lang.Object

toPolicySetMsg

public PolicySetMsg toPolicySetMsg()

getSetId

public java.lang.String getSetId()
Specified by:
getSetId in interface iModelPolicySet

getDescription

public java.lang.String getDescription()
Specified by:
getDescription in interface iModelPolicySet

getName

public java.lang.String getName()
Specified by:
getName in interface iModelPolicySet

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getPolicyIDs

public java.util.Vector getPolicyIDs()
Specified by:
getPolicyIDs in interface iModelPolicySet

compareTo

public int compareTo(java.lang.Object o)
Specified by:
compareTo in interface java.lang.Comparable

isDataFlavorSupported

public boolean isDataFlavorSupported(java.awt.datatransfer.DataFlavor df)
Specified by:
isDataFlavorSupported in interface java.awt.datatransfer.Transferable

getTransferData

public java.lang.Object getTransferData(java.awt.datatransfer.DataFlavor df)
                                 throws java.awt.datatransfer.UnsupportedFlavorException,
                                        java.io.IOException
implements Transferable interface

Specified by:
getTransferData in interface java.awt.datatransfer.Transferable
Throws:
java.awt.datatransfer.UnsupportedFlavorException
java.io.IOException

getTransferDataFlavors

public java.awt.datatransfer.DataFlavor[] getTransferDataFlavors()
implements Transferable interface

Specified by:
getTransferDataFlavors in interface java.awt.datatransfer.Transferable