|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.tc.object.dna.api.PhysicalAction
public class PhysicalAction
A physical object change action
| Constructor Summary | |
|---|---|
PhysicalAction(int index,
java.lang.Object value,
boolean isReference)
Construct a physical action representing a single array element change. |
|
PhysicalAction(java.lang.Object value)
Construct a physical action representing a new value for an entire array |
|
PhysicalAction(java.lang.Object value,
int startPos)
Construct a physical action representing a new subarray |
|
PhysicalAction(java.lang.String field,
java.lang.Object value,
boolean isReference)
Construct a physical action that consists of a field, a new value, and whether the new value is a reference. |
|
| Method Summary | |
|---|---|
int |
getArrayIndex()
If this is an array element, the index of the element. |
java.lang.String |
getFieldName()
Get field name, only valid if this physical action is a true physical field change. |
java.lang.Object |
getObject()
Get object value |
boolean |
isArrayElement()
|
boolean |
isEntireArray()
|
boolean |
isReference()
Is the object a reference? |
boolean |
isSubArray()
|
boolean |
isTruePhysical()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PhysicalAction(java.lang.Object value)
value - The new array
public PhysicalAction(java.lang.Object value,
int startPos)
value - The new subarraystartPos - The starting position for the new subarray
public PhysicalAction(int index,
java.lang.Object value,
boolean isReference)
index - The index in the array parentvalue - The new value for the array elementisReference - Whether the new value is a reference
public PhysicalAction(java.lang.String field,
java.lang.Object value,
boolean isReference)
| Method Detail |
|---|
public java.lang.String getFieldName()
java.lang.IllegalStateException - If called on an action that returns false for isTruePhysical()public java.lang.Object getObject()
public boolean isReference()
public int getArrayIndex()
java.lang.IllegalStateException - If not an array element or subarraypublic boolean isTruePhysical()
public boolean isArrayElement()
public boolean isEntireArray()
public boolean isSubArray()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||