Package com.tailf.ned
Class NedEditOp
Object
com.tailf.ned.NedEditOp
NedEditOp represents the edit operations provided to a
NedGeneric in the prepare, abort, and revert methods.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intbooleanDeprecated.static final int -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
CREATED
public static final int CREATED- See Also:
-
DELETED
public static final int DELETED- See Also:
-
MOVED
public static final int MOVED- See Also:
-
MODIFIED
public static final int MODIFIED- See Also:
-
VALUE_SET
public static final int VALUE_SET- See Also:
-
DEFAULT_SET
public static final int DEFAULT_SET- See Also:
-
ATTR_SET
public static final int ATTR_SET- See Also:
-
ATTR_DEL
public static final int ATTR_DEL- See Also:
-
FIRST
public static final int FIRST- See Also:
-
AFTER
public static final int AFTER- See Also:
-
op_done
Deprecated.
-
-
Constructor Details
-
NedEditOp
-
-
Method Details
-
getValue
Returns the value used in this operation. Typically this is the value set by a set operation. For a relative move operation, this value, in combination with the constant returned bygetMoveDestination(), specifies the destination of the moved element.- Returns:
- the value used in the operation
-
getMoveDestination
Returns the absolute or relative destination of a move operation. For the relative destinations (before/after), the element which the move is relative to is given bygetValue(). The two possible return values areFIRSTandAFTER. For a non-move operation, this method will always return -1.- Returns:
- the destination for this move operation
- Throws:
NedException
-
getOperation
public int getOperation() -
setOpDone
public void setOpDone() -
getOpDone
public boolean getOpDone() -
getPath
-
toString
-