com.arsdigita.formbuilder
Class BebopObjectType

java.lang.Object
  extended bycom.arsdigita.domain.DomainObject
      extended bycom.arsdigita.domain.ObservableDomainObject
          extended bycom.arsdigita.kernel.ACSObject
              extended bycom.arsdigita.formbuilder.BebopObjectType

public class BebopObjectType
extends ACSObject

This class defines a persistent object, whose subclasses will have meta objects associated with them. It is essentially just here to facilitate the retrieval of groups of meta object There are two object types which are defined, PersistentComponent & PersistentProcessListener.


Field Summary
static String APP_NAME
           
static String BASE_DATA_OBJECT_TYPE
           
static String CLASS_NAME
           
static String TYPE_ID
           
 
Fields inherited from class com.arsdigita.kernel.ACSObject
CONTAINER, DEFAULT_DOMAIN_CLASS, DISPLAY_NAME, ID, OBJECT_TYPE, versionId
 
Constructor Summary
BebopObjectType()
           
BebopObjectType(BigDecimal id)
          Constructor.
BebopObjectType(DataObject obj)
          Constructor.
BebopObjectType(ObjectType type)
           
BebopObjectType(OID oid)
          Constructor.
BebopObjectType(String type)
           
 
Method Summary
static BebopObjectType create(String app, Class widget)
           
static BebopObjectType create(String app, String widgetClass)
           
static BebopObjectType findByClass(String name, Class type)
          Retrieves object type matching the specified class.
static BebopObjectType findByClassName(String app, String name)
          Retrieves object type matching the specified class name.
 String getAppName()
           
static Collection getObjectTypes()
          Retrieves a collection of all the object types
 Class getType()
          Returns the Class object of the persistent object this object type represents
 String getTypeName()
          Returns the class name of the persistent object this object type represents
 void setAppName(String name)
           
 void setType(Class type)
           
 void setTypeName(String typeName)
           
 
Methods inherited from class com.arsdigita.kernel.ACSObject
assertPrivilege, beforeSave, checkPrivilege, doCreateCheck, doWriteCheck, getBaseDataObjectType, getContainer, getDefaultDomainClass, getDisplayName, getID, getSpecificObjectType, getSpecificOID, gimmeContainer, initialize, isContainerModified, setID, setID
 
Methods inherited from class com.arsdigita.domain.ObservableDomainObject
addObserver, getObservers
 
Methods inherited from class com.arsdigita.domain.DomainObject
add, add, addToAssociation, afterDelete, afterSave, beforeDelete, clear, delete, disconnect, equals, get, getObjectType, getOID, getSession, hashCode, 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

BASE_DATA_OBJECT_TYPE

public static final String BASE_DATA_OBJECT_TYPE
See Also:
Constant Field Values

TYPE_ID

public static final String TYPE_ID
See Also:
Constant Field Values

CLASS_NAME

public static final String CLASS_NAME
See Also:
Constant Field Values

APP_NAME

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

BebopObjectType

public BebopObjectType()

BebopObjectType

public BebopObjectType(String type)

BebopObjectType

public BebopObjectType(ObjectType type)

BebopObjectType

public BebopObjectType(DataObject obj)
Constructor. Instantiates the object type from an existing data object.

Parameters:
obj - the data object

BebopObjectType

public BebopObjectType(BigDecimal id)
                throws DataObjectNotFoundException
Constructor. Instantiates the object type from the specified id

Parameters:
id - the id of the object type

BebopObjectType

public BebopObjectType(OID oid)
                throws DataObjectNotFoundException
Constructor. To be used by subclasses for instantiating an object type from a given oid.

Parameters:
oid - the oid of the object type
Method Detail

create

public static BebopObjectType create(String app,
                                     Class widget)

create

public static BebopObjectType create(String app,
                                     String widgetClass)

findByClass

public static BebopObjectType findByClass(String name,
                                          Class type)
                                   throws DataObjectNotFoundException
Retrieves object type matching the specified class.

Parameters:
type - the class whose object type to retrieve
Throws:
DataObjectNotFoundException - if there is no object type for the specified class

findByClassName

public static BebopObjectType findByClassName(String app,
                                              String name)
                                       throws DataObjectNotFoundException
Retrieves object type matching the specified class name.

Throws:
DataObjectNotFoundException - if there is no object type for the specified class name

getObjectTypes

public static Collection getObjectTypes()
Retrieves a collection of all the object types


getType

public Class getType()
              throws ClassNotFoundException
Returns the Class object of the persistent object this object type represents

Throws:
ClassNotFoundException

getTypeName

public String getTypeName()
Returns the class name of the persistent object this object type represents


setType

public void setType(Class type)

setTypeName

public void setTypeName(String typeName)

getAppName

public String getAppName()

setAppName

public void setAppName(String name)


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