|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.nakedobjects.metamodel.adapter.ResolveState
public final class ResolveState
| Field Summary | |
|---|---|
static java.util.Map<ResolveState,ResolveState[]> |
changeToStatesByState
These cannot be passed into the constructor because cannot reference an instance until it has been declared. |
static ResolveState |
DESTROYED
|
static ResolveState |
GHOST
|
static ResolveState |
NEW
|
static ResolveState |
PART_RESOLVED
|
static ResolveState |
RESOLVED
|
static ResolveState |
RESOLVING
|
static ResolveState |
RESOLVING_PART
|
static ResolveState |
SERIALIZING_GHOST
|
static ResolveState |
SERIALIZING_PART_RESOLVED
|
static ResolveState |
SERIALIZING_RESOLVED
|
static ResolveState |
SERIALIZING_TRANSIENT
|
static ResolveState |
TRANSIENT
|
static ResolveState |
UPDATING
|
static ResolveState |
VALUE
|
| Method Summary | |
|---|---|
boolean |
canChangeTo(ResolveState newState)
As per isValidToChangeTo(ResolveState), but will
additionally throw a ResolveException if the
requested state can never be transitioned into, and
will return false if the current state can
never be transitioned from. |
java.lang.String |
code()
Four character representation of the state. |
boolean |
couldResolve()
Returns true if an object in this state could trigger some sort of database loading. |
ResolveState |
getEndState()
|
static ResolveState |
getResolveState(java.lang.String name)
|
boolean |
isDeserializable(ResolveState newState)
|
boolean |
isDestroyed()
|
boolean |
isGhost()
|
boolean |
isNew()
|
boolean |
isPartlyResolved()
|
boolean |
isPersistent()
Returns true when an object is persistent (except for VALUE adapters). |
boolean |
isResolvable(ResolveState newState)
Deprecated. - renamed to canChangeTo(ResolveState). |
boolean |
isResolved()
|
boolean |
isResolving()
Return true if the state reflects some kind of loading. |
boolean |
isSerializing()
|
boolean |
isTransient()
Returns true when an object has not yet been made persistent (except for VALUE adapters).. |
boolean |
isUpdating()
|
boolean |
isValidToChangeTo(ResolveState nextState)
Determines if the resolved state can be changed from this state to the specified state. |
boolean |
isValue()
|
java.lang.String |
name()
|
boolean |
respondToChangesInPersistentObjects()
Returns false while object is having its field set up. |
ResolveState |
serializeFrom()
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final ResolveState NEW
public static final ResolveState TRANSIENT
public static final ResolveState GHOST
public static final ResolveState PART_RESOLVED
public static final ResolveState RESOLVED
public static final ResolveState RESOLVING
public static final ResolveState RESOLVING_PART
public static final ResolveState SERIALIZING_GHOST
public static final ResolveState SERIALIZING_PART_RESOLVED
public static final ResolveState SERIALIZING_RESOLVED
public static final ResolveState SERIALIZING_TRANSIENT
public static final ResolveState UPDATING
public static final ResolveState DESTROYED
public static final ResolveState VALUE
public static java.util.Map<ResolveState,ResolveState[]> changeToStatesByState
| Method Detail |
|---|
public static ResolveState getResolveState(java.lang.String name)
public java.lang.String code()
The format is XYZW where:
public ResolveState getEndState()
public boolean isPersistent()
VALUE adapters).
Always returns false for VALUE.
public boolean isTransient()
VALUE adapters)..
Always returns false for VALUE.
public boolean canChangeTo(ResolveState newState)
isValidToChangeTo(ResolveState), but will
additionally throw a ResolveException if the
requested state can never be transitioned into, and
will return false if the current state can
never be transitioned from.
@Deprecated public boolean isResolvable(ResolveState newState)
canChangeTo(ResolveState).
public boolean isDeserializable(ResolveState newState)
public boolean respondToChangesInPersistentObjects()
public boolean isGhost()
public boolean isValue()
public boolean isNew()
public boolean isPartlyResolved()
public boolean isUpdating()
public boolean isDestroyed()
public boolean isResolved()
public boolean isResolving()
public boolean couldResolve()
Used to prevent calls to title() etc on objects that are not resolved.
ResolvePotentialpublic boolean isSerializing()
public boolean isValidToChangeTo(ResolveState nextState)
public java.lang.String name()
public ResolveState serializeFrom()
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 | |||||||||