Enum Class MenuItemType
- All Implemented Interfaces:
Serializable
,Comparable<MenuItemType>
,Constable
Defines the default possible types for
MenuItems
. This is can be helpful to the
frontend when determining how to render the content related to the MenuItem.getUrl()
.- Author:
- Nathan Moore (nathandmoore)
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionSignifies that an item is an asset such as an image.Signifies that an item leads to a category landing page.Signifies that an item leads a Content Item landing page.Signifies that an item leads a Content Model landing page, e.g.,/blogs
.Signifies that an item is a generic hyperlink.Signifies that an item leads to a CMS page.Signifies that an item leads to a product detail page.Signifies that an item is simple text. -
Method Summary
Modifier and TypeMethodDescriptionstatic MenuItemType
Returns the enum constant of this class with the specified name.static MenuItemType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
CATEGORY
Signifies that an item leads to a category landing page. -
ASSET
Signifies that an item is an asset such as an image. -
LINK
Signifies that an item is a generic hyperlink. -
PAGE
Signifies that an item leads to a CMS page. -
CONTENT_MODEL
Signifies that an item leads a Content Model landing page, e.g.,/blogs
. This is primarily useful in coordination with the metadata to render a Content Model lookup rather than a manual input. -
CONTENT_ITEM
Signifies that an item leads a Content Item landing page. This is primarily useful in coordination with the metadata to render a Content Item lookup rather than a manual input. -
PRODUCT
Signifies that an item leads to a product detail page. -
TEXT
Signifies that an item is simple text.
-
-
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
-