Package com.teamdev.jxbrowser.dom
Enum Class DocumentPosition
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<DocumentPosition>,Constable
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.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe other node contains the reference node.The reference node contains the other node.The nodes are disconnected.Reserved value.The position of the other node follows the position of the reference node.The node positions depend on the DOM implementation and cannot be compared.The position of the other node precedes the position of the reference node. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe other node contains the reference node.static final intThe reference node contains the other node.static final intThe nodes are disconnected.static final intReserved value.static final intThe position of the other node follows the position of the reference node.static final intThe node positions depend on the DOM implementation and cannot be compared.static final intThe position of the other node precedes the position of the reference node. -
Method Summary
Modifier and TypeMethodDescriptionstatic DocumentPositionforNumber(int value) static final com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<DocumentPosition>static DocumentPositionvalueOf(int value) Deprecated.static DocumentPositionvalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this class with the specified name.static DocumentPositionReturns the enum constant of this class with the specified name.static DocumentPosition[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
DOCUMENT_POSITION_UNSPECIFIED
Reserved value. -
DISCONNECTED
The nodes are disconnected. -
PRECEDING
The position of the other node precedes the position of the reference node. -
FOLLOWING
The position of the other node follows the position of the reference node. -
CONTAINS
The reference node contains the other node. -
CONTAINED_BY
The other node contains the reference node. -
IMPLEMENTATION_SPECIFIC
The node positions depend on the DOM implementation and cannot be compared. -
UNRECOGNIZED
-
-
Field Details
-
DOCUMENT_POSITION_UNSPECIFIED_VALUE
public static final int DOCUMENT_POSITION_UNSPECIFIED_VALUEReserved value.- See Also:
-
DISCONNECTED_VALUE
public static final int DISCONNECTED_VALUEThe nodes are disconnected.- See Also:
-
PRECEDING_VALUE
public static final int PRECEDING_VALUEThe position of the other node precedes the position of the reference node.- See Also:
-
FOLLOWING_VALUE
public static final int FOLLOWING_VALUEThe position of the other node follows the position of the reference node.- See Also:
-
CONTAINS_VALUE
public static final int CONTAINS_VALUEThe reference node contains the other node.- See Also:
-
CONTAINED_BY_VALUE
public static final int CONTAINED_BY_VALUEThe other node contains the reference node.- See Also:
-
IMPLEMENTATION_SPECIFIC_VALUE
public static final int IMPLEMENTATION_SPECIFIC_VALUEThe node positions depend on the DOM implementation and cannot be compared.- See Also:
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
getNumber
public final int getNumber()- Specified by:
getNumberin interfacecom.google.protobuf.Internal.EnumLite- Specified by:
getNumberin interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
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 nameNullPointerException- if the argument is null
-
forNumber
- Parameters:
value- The numeric wire value of the corresponding enum entry.- Returns:
- The enum associated with the given numeric wire value.
-
internalGetValueMap
-
getValueDescriptor
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()- Specified by:
getValueDescriptorin interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptor
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() -
valueOf
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 nameNullPointerException- if the argument is null
-