|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.oakgrovesystems.reactor.ReactorObjectId
Field Summary | |
protected java.lang.String |
id
|
Constructor Summary | |
ReactorObjectId(java.lang.String id)
Creates a ReactorObjectId with the underlying String id. |
Method Summary | |
java.lang.Object |
dereference(java.lang.Class type)
Gets the referenced object from the persistence service. |
java.lang.Object |
dereference(java.lang.Class type,
java.util.Map map)
Gets the referenced object from the Map. |
java.lang.Object |
dereference(java.lang.Class type,
java.util.Map map,
boolean addToMap)
Gets the referenced object from the Map. |
java.lang.Object |
dereference(java.util.Map map)
Gets the referenced object from the Map. |
boolean |
equals(java.lang.Object otherRef)
Tests this ReactorObjectId for content equality with another. |
java.lang.String |
getId()
Returns this ReactorObjectId's underlying id String |
int |
hashCode()
Returns a hashCode for this ReactorObjectId |
org.jdom.Element |
toElement()
Returns this ReactorObjectId's XML representation: |
java.lang.String |
toString()
Returns this ReactorObjectId's underlying id String |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
protected java.lang.String id
Constructor Detail |
public ReactorObjectId(java.lang.String id) throws java.lang.IllegalArgumentException
Method Detail |
public java.lang.Object dereference(java.lang.Class type) throws ObjectDereferencingException
dereference
in interface ObjectReference
ObjectDereferencingException
public java.lang.Object dereference(java.lang.Class type, java.util.Map map, boolean addToMap) throws ObjectDereferencingException
this
as the key. If neither is a key in the
Map, tries to get the object from the ProcessObjectService.
Throws an ObjectDereferencingException if the ProcessObjectService
fails to return the object. If the addToMap
parameter is true and the ProcessObjectService successfully
returns the object, it is added to the map with the underlying
String as the key.
Throws IllegalArgumentException if the Map is null or type is null.
ObjectDereferencingException
public java.lang.Object dereference(java.util.Map map) throws ObjectDereferencingException
this
as the key. If neither is a key in the
Map, throws an ObjectDereferencingException. Throws a
IllegalArgumentException if the Map is null.
ObjectDereferencingException
public java.lang.Object dereference(java.lang.Class type, java.util.Map map) throws ObjectDereferencingException
this
as the key. If neither is a key in the
Map, throws an ObjectDereferencingException. If the object is not
of specified type, thows ObjectDereferencingException. Throws a
IllegalArgumentException if the Map is null or Class is null.
ObjectDereferencingException
public boolean equals(java.lang.Object otherRef)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String getId()
public org.jdom.Element toElement()
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |