Package com.helger.html
Enum EHTMLContentModelType
- java.lang.Object
-
- java.lang.Enum<EHTMLContentModelType>
-
- com.helger.html.EHTMLContentModelType
-
- All Implemented Interfaces:
Serializable,Comparable<EHTMLContentModelType>
public enum EHTMLContentModelType extends Enum<EHTMLContentModelType>
Contains the potential element meta types.
See http://dev.w3.org/html5/markup/common-models.html#common-models- Author:
- Philip Helger
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CHILDSpecific child elementsFLOWFLOW_METADATALEGACY_PHRASINGMETADATANOTHINGNo contentPHRASINGPHRASING_METADATASPECIALSpecific rules are definedTRANSPARENTDerived from parent elementUNDEFINEDBecause the element is undefined in HTML 5, no documentation is available
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisFlowElement()booleanisMetadataElement()booleanisPhrasingElement()static EHTMLContentModelTypevalueOf(String name)Returns the enum constant of this type with the specified name.static EHTMLContentModelType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
FLOW
public static final EHTMLContentModelType FLOW
-
FLOW_METADATA
public static final EHTMLContentModelType FLOW_METADATA
-
PHRASING_METADATA
public static final EHTMLContentModelType PHRASING_METADATA
-
METADATA
public static final EHTMLContentModelType METADATA
-
PHRASING
public static final EHTMLContentModelType PHRASING
-
NOTHING
public static final EHTMLContentModelType NOTHING
No content
-
TRANSPARENT
public static final EHTMLContentModelType TRANSPARENT
Derived from parent element
-
CHILD
public static final EHTMLContentModelType CHILD
Specific child elements
-
SPECIAL
public static final EHTMLContentModelType SPECIAL
Specific rules are defined
-
UNDEFINED
public static final EHTMLContentModelType UNDEFINED
Because the element is undefined in HTML 5, no documentation is available
-
LEGACY_PHRASING
public static final EHTMLContentModelType LEGACY_PHRASING
-
-
Method Detail
-
values
public static EHTMLContentModelType[] 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 (EHTMLContentModelType c : EHTMLContentModelType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static EHTMLContentModelType 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
-
isFlowElement
public boolean isFlowElement()
-
isMetadataElement
public boolean isMetadataElement()
-
isPhrasingElement
public boolean isPhrasingElement()
-
-