org.figure8.join.businessobjects.environment
Class AbstractResourceType

java.lang.Object
  extended by org.figure8.join.core.EntityObject
      extended by org.figure8.join.businessobjects.environment.AbstractResourceType
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, ResourceType
Direct Known Subclasses:
GatewayType, ServiceType, VersionedResourceType

public abstract class AbstractResourceType
extends EntityObject
implements ResourceType

Helper class for implementing persistent ResourceTypes.

Version:
$Revision: 1.1 $
Author:
Laurent Broudoux
See Also:
Serialized Form

Constructor Summary
AbstractResourceType()
          Creates a new instance of AbstractResourceType
AbstractResourceType(java.lang.String key, java.lang.String label)
          Creates a new instance of AbstractResourceType with mandatory attributes
 
Method Summary
 java.lang.String getKey()
           
 java.lang.String getLabel()
           
 void setKey(java.lang.String key)
           
 void setLabel(java.lang.String label)
           
 
Methods inherited from class org.figure8.join.core.EntityObject
clone, equals, getId, hashCode, isTransient
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractResourceType

public AbstractResourceType()
Creates a new instance of AbstractResourceType


AbstractResourceType

public AbstractResourceType(java.lang.String key,
                            java.lang.String label)
Creates a new instance of AbstractResourceType with mandatory attributes

Parameters:
key - This new type key (should be unique)
label - This new type label for display
Method Detail

setKey

public void setKey(java.lang.String key)
Parameters:
key - This resource type unique key

setLabel

public void setLabel(java.lang.String label)
Parameters:
label - This resource type display label

getKey

public java.lang.String getKey()
Specified by:
getKey in interface ResourceType
Returns:
This resource type unique key

getLabel

public java.lang.String getLabel()
Specified by:
getLabel in interface ResourceType
Returns:
This resource type label


Copyright © 2005-2008 Join. All Rights Reserved.