|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.argouml.cognitive.ItemUID
Instances of this class is supposed to be attached to other instances of other classes to uniquely identify them. It is intended that such a tagging should be persistent over saving and loading, if applicable.
The class also harbors the
getIDOfObject(Object, boolean)
which provides
a way to get the ItemUID of any object with a method
ItemUID getItemUID()
and creating new ItemUIDs for any object with a method
setItemUID(ItemUID)
using reflection in java.
Field Summary | |
protected java.lang.String |
_id
This actual ID of this instance. |
protected static java.lang.Class |
_myclass
Keeps a reference to the Class object of this class |
protected static org.apache.log4j.Category |
cat
|
Constructor Summary | |
ItemUID()
Constructs a new ItemUID and creates a new ID for it. |
|
ItemUID(java.lang.String param)
Constructs a new ItemUID and uses the String param as the ID. |
Method Summary | |
protected static java.lang.String |
createObjectID(java.lang.Object obj)
Tries to create a new ID for the object. |
static java.lang.String |
generateID()
Generates a new unique ID and returns it as a String. |
static java.lang.String |
getIDOfObject(java.lang.Object obj,
boolean canCreate)
Obtains the ID of an object and returns it as a String. |
protected static java.lang.String |
readObjectID(java.lang.Object obj)
Tries to read the ID of the object. |
java.lang.String |
toString()
Returns the ID of this ItemUID as a String. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected static org.apache.log4j.Category cat
protected static final java.lang.Class _myclass
protected java.lang.String _id
Constructor Detail |
public ItemUID()
public ItemUID(java.lang.String param)
param
- The ID to used for the new instance.toString()
Method Detail |
public java.lang.String toString()
toString
in class java.lang.Object
ItemUID(String)
public static java.lang.String generateID()
public static java.lang.String getIDOfObject(java.lang.Object obj, boolean canCreate)
protected static java.lang.String readObjectID(java.lang.Object obj)
protected static java.lang.String createObjectID(java.lang.Object obj)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ArgoUML (c) 1996-2002 |