Enum Class DocumentPosition

java.lang.Object
java.lang.Enum<DocumentPosition>
com.teamdev.jxbrowser.dom.DocumentPosition
All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite, com.google.protobuf.ProtocolMessageEnum, Serializable, Comparable<DocumentPosition>, Constable

@Generated("Generated by the protocol buffer compiler") public enum DocumentPosition extends Enum<DocumentPosition> implements com.google.protobuf.ProtocolMessageEnum
Describes how the position of the other node relates to the position of the reference node.

  • Enum Constant Details

    • DOCUMENT_POSITION_UNSPECIFIED

      public static final DocumentPosition DOCUMENT_POSITION_UNSPECIFIED
      Reserved value.

    • DISCONNECTED

      public static final DocumentPosition DISCONNECTED
      The nodes are disconnected.

    • PRECEDING

      public static final DocumentPosition PRECEDING
      The position of the other node precedes the position of the reference node.

    • FOLLOWING

      public static final DocumentPosition FOLLOWING
      The position of the other node follows the position of the reference node.

    • CONTAINS

      public static final DocumentPosition CONTAINS
      The reference node contains the other node.

    • CONTAINED_BY

      public static final DocumentPosition CONTAINED_BY
      The other node contains the reference node.

    • IMPLEMENTATION_SPECIFIC

      public static final DocumentPosition IMPLEMENTATION_SPECIFIC
      The node positions depend on the DOM implementation and cannot be compared.

    • UNRECOGNIZED

      public static final DocumentPosition UNRECOGNIZED
  • Field Details

    • DOCUMENT_POSITION_UNSPECIFIED_VALUE

      public static final int DOCUMENT_POSITION_UNSPECIFIED_VALUE
      Reserved value.

      See Also:
    • DISCONNECTED_VALUE

      public static final int DISCONNECTED_VALUE
      The nodes are disconnected.

      See Also:
    • PRECEDING_VALUE

      public static final int PRECEDING_VALUE
      The position of the other node precedes the position of the reference node.

      See Also:
    • FOLLOWING_VALUE

      public static final int FOLLOWING_VALUE
      The position of the other node follows the position of the reference node.

      See Also:
    • CONTAINS_VALUE

      public static final int CONTAINS_VALUE
      The reference node contains the other node.

      See Also:
    • CONTAINED_BY_VALUE

      public static final int CONTAINED_BY_VALUE
      The other node contains the reference node.

      See Also:
    • IMPLEMENTATION_SPECIFIC_VALUE

      public static final int IMPLEMENTATION_SPECIFIC_VALUE
      The node positions depend on the DOM implementation and cannot be compared.

      See Also:
  • Method Details

    • values

      public static DocumentPosition[] 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 DocumentPosition 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
    • getNumber

      public final int getNumber()
      Specified by:
      getNumber in interface com.google.protobuf.Internal.EnumLite
      Specified by:
      getNumber in interface com.google.protobuf.ProtocolMessageEnum
    • valueOf

      @Deprecated public static DocumentPosition valueOf(int value)
      Deprecated.
      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:
      value - 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
    • forNumber

      public static DocumentPosition forNumber(int value)
      Parameters:
      value - The numeric wire value of the corresponding enum entry.
      Returns:
      The enum associated with the given numeric wire value.
    • internalGetValueMap

      public static com.google.protobuf.Internal.EnumLiteMap<DocumentPosition> internalGetValueMap()
    • getValueDescriptor

      public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
      Specified by:
      getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnum
    • getDescriptorForType

      public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.ProtocolMessageEnum
    • getDescriptor

      public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
    • valueOf

      public static DocumentPosition valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
      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:
      desc - 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