de.fhg.igd.semoa.ui
Class AgentFlavors

java.lang.Object
  extended byde.fhg.igd.semoa.ui.AgentFlavors

public class AgentFlavors
extends Object

Reference class for all DataFlavors used to transfer an AgentContext or one of its fields during drag and drop.

Version:
$Id: AgentFlavors.java 1913 2007-08-08 02:41:53Z jpeters $
Author:
Dennis Bartussek
See Also:
AgentContext

Field Summary
static DataFlavor CARD_FLAVOR
          The DataFlavor representing the AgentCard.
static DataFlavor CLASSLOADER_FLAVOR
          The DataFlavor representing the AgentClassLoader.
static DataFlavor COMMUNICATION_FLAVOR
          The DataFlavor representing the CommunicationContext of an agent.
static DataFlavor CONTEXT_FLAVOR
          The DataFlavor representing the AgentContext.
static DataFlavor COOKIE_FLAVOR
          The DataFlavor representing the cookie of an agent.
static DataFlavor ENVIRONMENT_FLAVOR
          The DataFlavor representing the Environment of an agent.
static DataFlavor LIFECYCLE_FLAVOR
          The DataFlavor representing the Lifecycle of an agent.
static DataFlavor MANIFEST_PRESET_FLAVOR
          The DataFlavor representing the Manifest of an agent.
static DataFlavor MOBILITY_FLAVOR
          The DataFlavor representing the MobilityContext of an agent.
static DataFlavor NICKNAME_FLAVOR
          The DataFlavor representing the nickname of an agent.
static DataFlavor OWNER_CERT_FLAVOR
          The DataFlavor representing the owner X509Certificate of an agent.
static DataFlavor OWNER_FLAVOR
          The DataFlavor representing the owner Principal of an agent.
static DataFlavor PERMISSIONS_FLAVOR
          The DataFlavor representing the AgentPermission.
static DataFlavor PROPERTIES_FLAVOR
          The DataFlavor representing the Properties of an agent.
static DataFlavor RESOURCE_FLAVOR
          The DataFlavor representing the Resource of an agent.
static DataFlavor REVERSE_TICKET_FLAVOR
          The DataFlavor representing the reverse Ticket of an agent.
static DataFlavor SENDER_CERT_FLAVOR
          The DataFlavor representing the sender X509Certificate of an agent.
static DataFlavor SPOOLER_FLAVOR
          The DataFlavor representing the Spooler of an agent.
static DataFlavor STATIC_PART_FLAVOR
          The DataFlavor representing the static part of an agent.
static DataFlavor THREADGROUP_FLAVOR
          The DataFlavor representing the AgentThreadGroup.
static DataFlavor TICKET_FLAVOR
          The DataFlavor representing the Ticket of an agent.
static DataFlavor TMP_COOKIE_FLAVOR
          The DataFlavor representing the temporary cookie of an agent.
static DataFlavor VARIABLES_FLAVOR
          The DataFlavor representing the VariablesContext of an agent.
 
Constructor Summary
AgentFlavors()
           
 
Method Summary
static Map getFieldTypeFlavorMap()
          Creates and returns a HashMap that maps FieldTypes to DataFlavors defined by this class.
static FieldType getFieldTypeFor(DataFlavor flavor)
          Returns the FieldType that is represented by the flavor argument.
static DataFlavor getFlavorFor(FieldType type)
          Returns the DataFlavor representing the type argument.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CONTEXT_FLAVOR

public static final DataFlavor CONTEXT_FLAVOR
The DataFlavor representing the AgentContext.


CARD_FLAVOR

public static final DataFlavor CARD_FLAVOR
The DataFlavor representing the AgentCard.


CLASSLOADER_FLAVOR

public static final DataFlavor CLASSLOADER_FLAVOR
The DataFlavor representing the AgentClassLoader.


COMMUNICATION_FLAVOR

public static final DataFlavor COMMUNICATION_FLAVOR
The DataFlavor representing the CommunicationContext of an agent.


COOKIE_FLAVOR

public static final DataFlavor COOKIE_FLAVOR
The DataFlavor representing the cookie of an agent. The representation class is an array of bytes.


ENVIRONMENT_FLAVOR

public static final DataFlavor ENVIRONMENT_FLAVOR
The DataFlavor representing the Environment of an agent.


LIFECYCLE_FLAVOR

public static final DataFlavor LIFECYCLE_FLAVOR
The DataFlavor representing the Lifecycle of an agent.


MANIFEST_PRESET_FLAVOR

public static final DataFlavor MANIFEST_PRESET_FLAVOR
The DataFlavor representing the Manifest of an agent.


MOBILITY_FLAVOR

public static final DataFlavor MOBILITY_FLAVOR
The DataFlavor representing the MobilityContext of an agent.


NICKNAME_FLAVOR

public static final DataFlavor NICKNAME_FLAVOR
The DataFlavor representing the nickname of an agent. The representation class is String.


OWNER_FLAVOR

public static final DataFlavor OWNER_FLAVOR
The DataFlavor representing the owner Principal of an agent.


OWNER_CERT_FLAVOR

public static final DataFlavor OWNER_CERT_FLAVOR
The DataFlavor representing the owner X509Certificate of an agent.


PERMISSIONS_FLAVOR

public static final DataFlavor PERMISSIONS_FLAVOR
The DataFlavor representing the AgentPermission.


PROPERTIES_FLAVOR

public static final DataFlavor PROPERTIES_FLAVOR
The DataFlavor representing the Properties of an agent.


RESOURCE_FLAVOR

public static final DataFlavor RESOURCE_FLAVOR
The DataFlavor representing the Resource of an agent.


REVERSE_TICKET_FLAVOR

public static final DataFlavor REVERSE_TICKET_FLAVOR
The DataFlavor representing the reverse Ticket of an agent.


SENDER_CERT_FLAVOR

public static final DataFlavor SENDER_CERT_FLAVOR
The DataFlavor representing the sender X509Certificate of an agent.


SPOOLER_FLAVOR

public static final DataFlavor SPOOLER_FLAVOR
The DataFlavor representing the Spooler of an agent.


STATIC_PART_FLAVOR

public static final DataFlavor STATIC_PART_FLAVOR
The DataFlavor representing the static part of an agent. The representation class is Map.


THREADGROUP_FLAVOR

public static final DataFlavor THREADGROUP_FLAVOR
The DataFlavor representing the AgentThreadGroup.


TICKET_FLAVOR

public static final DataFlavor TICKET_FLAVOR
The DataFlavor representing the Ticket of an agent.


TMP_COOKIE_FLAVOR

public static final DataFlavor TMP_COOKIE_FLAVOR
The DataFlavor representing the temporary cookie of an agent. The representation class is an array of bytes.


VARIABLES_FLAVOR

public static final DataFlavor VARIABLES_FLAVOR
The DataFlavor representing the VariablesContext of an agent.

Constructor Detail

AgentFlavors

public AgentFlavors()
Method Detail

getFieldTypeFlavorMap

public static Map getFieldTypeFlavorMap()
Creates and returns a HashMap that maps FieldTypes to DataFlavors defined by this class.

Returns:
a FieldType to DataFlavor mapping

getFlavorFor

public static DataFlavor getFlavorFor(FieldType type)
Returns the DataFlavor representing the type argument.

Parameters:
type - the FieldType to get the DataFlavor for
Returns:
the DataFlavor representing the type argument or null if there is no such DataFlavor

getFieldTypeFor

public static FieldType getFieldTypeFor(DataFlavor flavor)
Returns the FieldType that is represented by the flavor argument.

Parameters:
flavor - the DataFlavor to get the FieldType for
Returns:
the FieldType represented by the flavor argument or null if there is no such FieldType


Copyright © Fraunhofer Gesellschaft. All Rights Reserved.