com.arsdigita.cms.dispatcher
Class ResourceType

java.lang.Object
  extended bycom.arsdigita.domain.DomainObject
      extended bycom.arsdigita.cms.dispatcher.ResourceType

public class ResourceType
extends com.arsdigita.domain.DomainObject

A DomainObject that represents an type of resource.

Common resource types include XML resource and streaming data.

Version:
$Revision: #8 $ $DateTime: 2004/04/07 16:07:11 $
Author:
Michael Pih (pihman@arsdigita.com)

Field Summary
static String BASE_DATA_OBJECT_TYPE
           
static String versionId
           
 
Constructor Summary
ResourceType()
           
ResourceType(com.arsdigita.persistence.DataObject obj)
           
ResourceType(com.arsdigita.persistence.OID oid)
           
ResourceType(String type)
           
 
Method Summary
 Resource createInstance(String className)
          Creates a new resource object of this type.
static ResourceType createResourceType(String id, String baseClass, String label)
          Creates a new resourceType object.
static ResourceType createResourceType(String id, String baseClass, String label, String description)
          Creates a new resourceType object.
static ResourceType findResourceType(String id)
           
 String getBaseClassName()
           
 String getDescription()
           
 String getID()
           
 String getLabel()
           
 void setBaseClassName(String s)
           
 void setDescription(String s)
           
 void setLabel(String s)
           
 
Methods inherited from class com.arsdigita.domain.DomainObject
add, add, addToAssociation, afterDelete, afterSave, beforeDelete, beforeSave, clear, delete, disconnect, equals, get, getBaseDataObjectType, getObjectType, getOID, getSession, hashCode, initialize, isDeleted, isDisconnected, isModified, isNew, isPropertyModified, isValid, remove, remove, remove, removeFromAssociation, save, set, setAssociation, setAssociation, specializeDataObject, specializeDataObject, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

versionId

public static final String versionId
See Also:
Constant Field Values

BASE_DATA_OBJECT_TYPE

public static final String BASE_DATA_OBJECT_TYPE
See Also:
Constant Field Values
Constructor Detail

ResourceType

public ResourceType()

ResourceType

public ResourceType(String type)

ResourceType

public ResourceType(com.arsdigita.persistence.OID oid)
             throws com.arsdigita.domain.DataObjectNotFoundException

ResourceType

public ResourceType(com.arsdigita.persistence.DataObject obj)
Method Detail

getID

public String getID()

getLabel

public String getLabel()

getDescription

public String getDescription()

getBaseClassName

public String getBaseClassName()

setLabel

public void setLabel(String s)

setDescription

public void setDescription(String s)

setBaseClassName

public void setBaseClassName(String s)

createInstance

public Resource createInstance(String className)
Creates a new resource object of this type.

Parameters:
className - The Java class that implements this resource
Returns:
The new resource

createResourceType

public static ResourceType createResourceType(String id,
                                              String baseClass,
                                              String label,
                                              String description)
Creates a new resourceType object.

Parameters:
id - The type key
baseClass - The Java class that implements this resource type
label - The pretty name
description - A description of the resource type
Returns:
The new resource type

createResourceType

public static ResourceType createResourceType(String id,
                                              String baseClass,
                                              String label)
Creates a new resourceType object.

Parameters:
id - The type key
baseClass - The Java class that implements this resource type
label - The pretty name
Returns:
The new resource type

findResourceType

public static ResourceType findResourceType(String id)
                                     throws com.arsdigita.domain.DataObjectNotFoundException
Throws:
com.arsdigita.domain.DataObjectNotFoundException


Copyright (c) 2004 Red Hat, Inc. Corporation. All Rights Reserved. Generated at July 21 2004:2352 UTC