Package com.tailf.ned

Class NedEditOp

Object
com.tailf.ned.NedEditOp

public class NedEditOp extends Object
NedEditOp represents the edit operations provided to a NedGeneric in the prepare, abort, and revert methods.
  • Field Details

  • Constructor Details

  • Method Details

    • getValue

      public ConfObject 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 by getMoveDestination(), specifies the destination of the moved element.
      Returns:
      the value used in the operation
    • getMoveDestination

      public int getMoveDestination() throws NedException
      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 by getValue(). The two possible return values are FIRST and AFTER. 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

      public ConfPath getPath()
    • toString

      public String toString()
      Overrides:
      toString in class Object