Purpose: Act as a place holder for a variable that required a value holder interface. This class should be used to initialze an objects attributes that are using indirection is their mappings.
| Modifier and Type | Field and Description |
|---|---|
| private boolean | isCoordinatedWithProperty
The two variable below are used as part of the implementation of WeavedAttributeValueHolderInterface They are used to track whether a valueholder that has been weaved into a class is coordinated with the underlying property |
| private boolean | |
| protected T | value
Stores the wrapped object. |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Object | clone()
Overrides java. Implements org. |
| public T | getValue()
Implements org. |
| public boolean | isCoordinatedWithProperty()
Implements org. |
| public boolean | isInstantiated()
Implements org. |
| public boolean | isNewlyWeavedValueHolder()
Implements org. |
| public void | setIsCoordinatedWithProperty(boolean coordinated)
Implements org. |
| public void | setIsNewlyWeavedValueHolder(boolean isNew)
Implements org. |
| public void | setValue(T value)
Implements org. |
| public boolean | shouldAllowInstantiationDeferral()
Implements org. |
| public String |
| isCoordinatedWithProperty | back to summary |
|---|---|
| private boolean isCoordinatedWithProperty The two variable below are used as part of the implementation of WeavedAttributeValueHolderInterface They are used to track whether a valueholder that has been weaved into a class is coordinated with the underlying property | |
| isNewlyWeavedValueHolder | back to summary |
|---|---|
| private boolean isNewlyWeavedValueHolder | |
| value | back to summary |
|---|---|
| protected T value Stores the wrapped object. | |
| ValueHolder | back to summary |
|---|---|
| public ValueHolder() PUBLIC: Initialize the holder. | |
| ValueHolder | back to summary |
|---|---|
| public ValueHolder(T value) PUBLIC: Initialize the holder with an object. | |
| clone | back to summary |
|---|---|
| public Object clone() Overrides java. Implements org. INTERNAL:
| |
| getValue | back to summary |
|---|---|
| public T getValue() Implements org. PUBLIC: Return the wrapped object.
| |
| isCoordinatedWithProperty | back to summary |
|---|---|
| public boolean isCoordinatedWithProperty() Implements org. Used as part of the implementation of WeavedAttributeValueHolderInterface Used to track whether a valueholder that has been weaved into a class is coordinated with the underlying property
| |
| isInstantiated | back to summary |
|---|---|
| public boolean isInstantiated() Implements org. PUBLIC: Return a boolean indicating whether the wrapped object has been set or not.
| |
| isNewlyWeavedValueHolder | back to summary |
|---|---|
| public boolean isNewlyWeavedValueHolder() Implements org. Used as part of the implementation of WeavedAttributeValueHolderInterface Used to determine if this ValueHolder was added instantiated as part of the constructor of a weaved class
| |
| setIsCoordinatedWithProperty | back to summary |
|---|---|
| public void setIsCoordinatedWithProperty(boolean coordinated) Implements org. Used as part of the implementation of WeavedAttributeValueHolderInterface Used to track whether a valueholder that has been weaved into a class is coordinated with the underlying property This method will be called internall when the state of Coordination between the weaved valueholder and the underlying value is known
| |
| setIsNewlyWeavedValueHolder | back to summary |
|---|---|
| public void setIsNewlyWeavedValueHolder(boolean isNew) Implements org. Used as part of the implementation of WeavedAttributeValueHolderInterface Used to determine if this ValueHolder was added instantiated as part of the constructor of a weaved class This method will be called when a ValueHolder is instantiated in a weaved class
| |
| setValue | back to summary |
|---|---|
| public void setValue(T value) Implements org. PUBLIC: Set the wrapped object.
| |
| shouldAllowInstantiationDeferral | back to summary |
|---|---|
| public boolean shouldAllowInstantiationDeferral() Implements org. INTERNAL: Return if add/remove should trigger instantiation or avoid. Current instantiation is avoided is using change tracking.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. INTERNAL:
| |