|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectmodhelxs.state_management.Value<T>
public abstract class Value<T>
A place for storing a value of type T.
| Field Summary | |
|---|---|
private boolean |
giveInitWarning_
Give a warning is the Value is not initialized. |
private java.lang.Class<T> |
type_
The type of the stored value. |
private T |
value_
The stored value. |
| Constructor Summary | |
|---|---|
Value(java.lang.Class<T> type)
Create a new storage of type type. |
|
Value(java.lang.Class<T> type,
boolean giveInitWarning)
Create a new storage of type type. |
|
| Method Summary | |
|---|---|
java.lang.Class<T> |
getType()
Get the type of this storage. |
T |
getValue()
Get the value stored in this storage. |
void |
init(T value)
Set the initial value of this storage. |
void |
initFromProperty(NamedEntity entity,
java.lang.String propName)
Set the initial value of this storage from a property of a NamedEntity. |
protected void |
setValue(T value)
Set the value stored in this storage. |
protected void |
setValue(Value<T> value)
Set the value stored in this storage. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private java.lang.Class<T> type_
private T value_
private boolean giveInitWarning_
| Constructor Detail |
|---|
public Value(java.lang.Class<T> type,
boolean giveInitWarning)
type.
public Value(java.lang.Class<T> type)
type.
| Method Detail |
|---|
public java.lang.Class<T> getType()
public T getValue()
protected void setValue(T value)
protected void setValue(Value<T> value)
public void init(T value)
public void initFromProperty(NamedEntity entity,
java.lang.String propName)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||