Enum RelativeInsertPosition

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<RelativeInsertPosition>

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

      • 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 Detail

      • values

        public static RelativeInsertPosition[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (RelativeInsertPosition c : RelativeInsertPosition.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static RelativeInsertPosition valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null