|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.gridsystems.nextgrid.api.pom.ref.ReferenceSupport<E>
com.gridsystems.nextgrid.api.pom.ref.ScalarReference<E>
E - The scalar typepublic class ScalarReference<E>
Scalar References are references to workflow local values (e.g. simple parameters).
The value is wrapped in an XML document with the following layout:
<value> [value string representation] </value>
| Field Summary |
|---|
| Fields inherited from class com.gridsystems.nextgrid.api.pom.ref.ReferenceSupport |
|---|
LOG |
| Constructor Summary | |
|---|---|
ScalarReference(java.lang.Class<E> type)
Creates a new instance. |
|
ScalarReference(java.lang.Class<E> type,
E value)
Creates a new instance. |
|
| Method Summary | |
|---|---|
boolean |
canCastFrom(java.lang.Class<?> type)
|
boolean |
canCastTo(java.lang.Class<?> type)
|
java.lang.Object |
castTo(java.lang.Class<?> type)
|
E |
getValue()
|
java.lang.Class<E> |
getValueType()
|
void |
setValue(java.lang.Object value)
|
| Methods inherited from class com.gridsystems.nextgrid.api.pom.ref.ReferenceSupport |
|---|
addReader, addWriter, clearLinks, copy, dispose, getReaders, getWriters, isAvailable, readLock, removeReader, removeWriter, reset, setAvailable, waitAvailable, writeLock |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ScalarReference(java.lang.Class<E> type)
type - A class instance for returning value types
public ScalarReference(java.lang.Class<E> type,
E value)
type - A class instance for returning value typesvalue - An object instance| Method Detail |
|---|
public final void setValue(java.lang.Object value)
public final E getValue()
public final java.lang.Class<E> getValueType()
public boolean canCastTo(java.lang.Class<?> type)
public boolean canCastFrom(java.lang.Class<?> type)
public java.lang.Object castTo(java.lang.Class<?> type)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||