Enum Class TaxonomyMarker
- All Implemented Interfaces:
Serializable,Comparable<TaxonomyMarker>,Constable,ClassMarkerEnum,FriendlyEnum
Enum class for the WordPress cache taxonomy key markers.
A taxonomy marker is a prefix or identifier used in the 'class_list' field of a post (in the WordPress Posts JSON file) to indicate the type of taxonomy (e.g., tag, category, post type, status).
Example: "tag-python", "category-tutorial", "status-published"
These markers help extract and group related metadata from posts.
- Author:
- Yoham Gabriel @ YGBStudio
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionvalue()Returns the value of the enum constant, which is the actual string to be used in the API.static TaxonomyMarkerReturns the enum constant of this class with the specified name.static TaxonomyMarker[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
TAG
Tag taxonomy marker. -
CATEGORY
Category taxonomy marker. -
POST
Post taxonomy marker. -
TYPE
Type taxonomy marker. -
STATUS
Status taxonomy marker.
-
-
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
-
value
Description copied from interface:FriendlyEnumReturns the value of the enum constant, which is the actual string to be used in the API.Example: If an enum constant is named
STATUS_PENDING, the value returned by this method would be"pending", which is the value provided in its constructor.- Specified by:
valuein interfaceFriendlyEnum- Returns:
- the value of the enum constant
-