Enum Class StoreType
- All Implemented Interfaces:
Serializable
,Comparable<StoreType>
,Constable
The type of a
Store
.- Since:
- 4.1.1
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull StoreType
Returns theStoreType
with the specified store-name (e.g.@NotNull String
getName()
Returns old style store name (e.g.char
Provides the one character abbreviation identifying a store.static StoreType
Returns the enum constant of this class with the specified name.static StoreType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
PAGE
PageStore- Since:
- 4.1.1
-
CONTENT
ContentStore- Since:
- 4.1.1
-
SITE
SiteStore- Since:
- 4.1.1
-
MEDIA
MediaStore- Since:
- 4.1.1
-
TEMPLATE
TemplateStore- Since:
- 4.1.1
-
GLOBAL
GlobalStore- Since:
- 4.1.1
-
-
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
-
getTypeChar
public char getTypeChar()Provides the one character abbreviation identifying a store.- Since:
- 4.1.1
-
getName
Returns old style store name (e.g."pagestore"
forPAGE
).- Returns:
- Old style store name.
- Since:
- 5.0.2
-
forName
@NotNull public static @NotNull StoreType forName(@NotNull @NotNull String name) throws IllegalArgumentException - Parameters:
name
- store-name (e.g."pagestore"
or"SITESTORE"
).- Returns:
- enum constant with the specified store-name.
- Throws:
IllegalArgumentException
- if the specified store-name is unknown.- Since:
- 5.0.2
-