|
Copyright © 2006 BEA Systems, Inc. All Rights Reserved | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.compoze.collab.ItemClass
public class ItemClass
Defines the class of an Item including its name, default
keys, implementing Java class, containing item class and parent item class.
Defines how to create a class of Item instance.
| Field Summary | |
|---|---|
protected Key[] |
m_defaultKeys
|
protected Class |
m_javaClass
|
protected String |
m_sContainingItemClass
|
protected String |
m_sInternalName
|
protected String |
m_sItemClassParent
|
| Method Summary | |
|---|---|
protected static boolean |
checkForDuplicates(Key[] defaultKeys)
Check for duplicates in the defaultKeys array |
static ItemClass |
create(String sInternalName,
Key[] defaultKeys,
Class javaClass,
String sContainingItemClass,
String sItemClassParent)
Creates an ItemClass, given its name and properties, or returns an existing ItemClass if one has already been created with the same name and properties. |
boolean |
equals(Object obj)
Equals. |
String |
getContainingItemClass()
Get the internal name of the ItemClass of containers of
this ItemClass. |
Key[] |
getDefaultKeys()
Gets the Keys for the properties that are available for a specific Item. |
String |
getInternalName()
Get the ItemClass's name. |
String |
getItemClassParent()
Gets the internal name of the parent ItemClass that
this ItemClass extends. |
Class |
getJavaClass()
Gets the implementation class for the item class. |
Key[] |
getMinimumKeys()
Gets the minimum set of keys for this class. |
int |
hashCode()
Gets the hash code of the item class (the hash of its internal name). |
boolean |
isDefaultKey(Key key)
Determines if the specified key is a default for the item. |
boolean |
isInstanceOf(ItemClass itemClass)
Checks to see if this ItemClass is the same as or a subclass
of the given ItemClass. |
static ItemClass |
lookupItemClass(String sInternalName)
Find the ItemClass instance for the internal name. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected String m_sInternalName
protected Key[] m_defaultKeys
protected Class m_javaClass
protected String m_sContainingItemClass
protected String m_sItemClassParent
| Method Detail |
|---|
public static ItemClass create(String sInternalName,
Key[] defaultKeys,
Class javaClass,
String sContainingItemClass,
String sItemClassParent)
throws CollaborationException
sInternalName - unique internal name for this class (not null)defaultKeys - array of class specific default keys;
null means nonejavaClass - Java class representing this class; must implement
IItem (not null)sContainingItemClass - the internal name of the item class of containers
of this item (may be null if the item has no
logical container, such as a root container)sItemClassParent - the internal name of the parent item class
that this item class extends.
CollaborationException - if sInternalName or
javaClass is null,
if sInternalName is already used for a different
class, or javaClass does not implement IItem.protected static boolean checkForDuplicates(Key[] defaultKeys)
defaultKeys - the default Key array
true if there are any duplicatespublic Key[] getDefaultKeys()
Key[0], never null.public Key[] getMinimumKeys()
public boolean isDefaultKey(Key key)
key - the key (must not be null)
true if the key is a default keypublic String getInternalName()
public Class getJavaClass()
public static ItemClass lookupItemClass(String sInternalName)
sInternalName - internal name to look up
null
if none existspublic String toString()
toString in class ObjectObject.toString()public String getContainingItemClass()
ItemClass of containers of
this ItemClass.
public boolean isInstanceOf(ItemClass itemClass)
ItemClass is the same as or a subclass
of the given ItemClass.
itemClass - the ItemClass to check (not
null)
true if itemClass is the same or
a subclass of this classpublic String getItemClassParent()
ItemClass that
this ItemClass extends.
public int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Objecttrue if the specified object is an
ItemClass instance with the same internal name
|
Copyright © 2006 BEA Systems, Inc. All Rights Reserved | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||