Package com.helger.html.hc
Enum EHCNodeState
- java.lang.Object
-
- java.lang.Enum<EHCNodeState>
-
- com.helger.html.hc.EHCNodeState
-
- All Implemented Interfaces:
Serializable,Comparable<EHCNodeState>
public enum EHCNodeState extends Enum<EHCNodeState>
This enum represents the internal state ofIHCNodeobjects.- Author:
- Philip Helger
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CONSISTENCY_CHECKEDConsistency checks are disabled or protected method onConsistencyCheck was calledCUSTOMIZEDNode was customized withIHCCustomizerFINALIZEDProtected method onFinalizeNodeState was called on the nodeINITIALThe stated when the HCNode was initializedRESOURCES_REGISTEREDProtected method onRegisterExternalResources was called on the node
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetID()booleanisAfter(EHCNodeState eOther)booleanisBefore(EHCNodeState eOther)booleanisEqualOrAfter(EHCNodeState eOther)booleanisEqualOrBefore(EHCNodeState eOther)static EHCNodeStatevalueOf(String name)Returns the enum constant of this type with the specified name.static EHCNodeState[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INITIAL
public static final EHCNodeState INITIAL
The stated when the HCNode was initialized
-
CUSTOMIZED
public static final EHCNodeState CUSTOMIZED
Node was customized withIHCCustomizer
-
FINALIZED
public static final EHCNodeState FINALIZED
Protected method onFinalizeNodeState was called on the node
-
CONSISTENCY_CHECKED
public static final EHCNodeState CONSISTENCY_CHECKED
Consistency checks are disabled or protected method onConsistencyCheck was called
-
RESOURCES_REGISTERED
public static final EHCNodeState RESOURCES_REGISTERED
Protected method onRegisterExternalResources was called on the node
-
-
Method Detail
-
values
public static EHCNodeState[] 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 (EHCNodeState c : EHCNodeState.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static EHCNodeState valueOf(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:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getID
public int getID()
-
isBefore
public boolean isBefore(@Nonnull EHCNodeState eOther)
-
isEqualOrBefore
public boolean isEqualOrBefore(@Nonnull EHCNodeState eOther)
-
isAfter
public boolean isAfter(@Nonnull EHCNodeState eOther)
-
isEqualOrAfter
public boolean isEqualOrAfter(@Nonnull EHCNodeState eOther)
-
-