Enum Class RelativeInsertPosition

java.lang.Object
java.lang.Enum<RelativeInsertPosition>
ro.sync.exml.editor.xmleditor.operations.context.RelativeInsertPosition
All Implemented Interfaces:
Serializable, Comparable<RelativeInsertPosition>, Constable

@API(type=NOT_EXTENDABLE, src=PUBLIC) public enum RelativeInsertPosition extends Enum<RelativeInsertPosition>
Defines an insert position relative to a node.
  • Enum Constant Details

    • INSERT_LOCATION_AFTER

      public static final RelativeInsertPosition INSERT_LOCATION_AFTER
      Insert the node after the anchor node.
    • INSERT_LOCATION_BEFORE

      public static final RelativeInsertPosition INSERT_LOCATION_BEFORE
      Insert the node before the anchor node.
    • INSERT_LOCATION_AS_FIRST_CHILD

      public static final RelativeInsertPosition INSERT_LOCATION_AS_FIRST_CHILD
      Insert the node as the first child of the anchor node.
    • INSERT_LOCATION_AS_LAST_CHILD

      public static final RelativeInsertPosition INSERT_LOCATION_AS_LAST_CHILD
      Insert the node as the last child of the anchor node.
  • Method Details

    • values

      public static RelativeInsertPosition[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static RelativeInsertPosition valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null