Package nl.gx.webmanager.services.seo
Enum FriendlyURLEntity.ContentType
- java.lang.Object
-
- java.lang.Enum<FriendlyURLEntity.ContentType>
-
- nl.gx.webmanager.services.seo.FriendlyURLEntity.ContentType
-
- All Implemented Interfaces:
Serializable
,Comparable<FriendlyURLEntity.ContentType>
- Enclosing interface:
- FriendlyURLEntity
public static enum FriendlyURLEntity.ContentType extends Enum<FriendlyURLEntity.ContentType>
Represents the three types of friendly URL entities: page, mediaitem and database page.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DB_PAGE
Database page content type.DUMPED_PAGE
MEDIA_ITEM
Media item content type.PAGE
Page content type.REDIRECT
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
toString()
static FriendlyURLEntity.ContentType
valueOf(String name)
Returns the enum constant of this type with the specified name.static FriendlyURLEntity.ContentType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PAGE
public static final FriendlyURLEntity.ContentType PAGE
Page content type.
-
MEDIA_ITEM
public static final FriendlyURLEntity.ContentType MEDIA_ITEM
Media item content type.
-
DB_PAGE
public static final FriendlyURLEntity.ContentType DB_PAGE
Database page content type.
-
DUMPED_PAGE
public static final FriendlyURLEntity.ContentType DUMPED_PAGE
-
REDIRECT
public static final FriendlyURLEntity.ContentType REDIRECT
-
-
Method Detail
-
values
public static FriendlyURLEntity.ContentType[] 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 (FriendlyURLEntity.ContentType c : FriendlyURLEntity.ContentType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static FriendlyURLEntity.ContentType 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
-
toString
public String toString()
- Overrides:
toString
in classEnum<FriendlyURLEntity.ContentType>
-
-