Enum ClientlibLink.Kind
- java.lang.Object
-
- java.lang.Enum<ClientlibLink.Kind>
-
- com.composum.sling.clientlibs.handle.ClientlibLink.Kind
-
- All Implemented Interfaces:
Serializable
,Comparable<ClientlibLink.Kind>
- Enclosing class:
- ClientlibLink
public static enum ClientlibLink.Kind extends Enum<ClientlibLink.Kind>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CATEGORY
A link to a category of clientlibs which is rendered by theClientlibCategoryServlet
.CLIENTLIB
A link to a client library that is rendered by theClientlibServlet
.EXTERNALURI
URI to external system.FILE
A link to a file in the system.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ClientlibLink.Kind
valueOf(String name)
Returns the enum constant of this type with the specified name.static ClientlibLink.Kind[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CATEGORY
public static final ClientlibLink.Kind CATEGORY
A link to a category of clientlibs which is rendered by theClientlibCategoryServlet
.
-
CLIENTLIB
public static final ClientlibLink.Kind CLIENTLIB
A link to a client library that is rendered by theClientlibServlet
.
-
FILE
public static final ClientlibLink.Kind FILE
A link to a file in the system.
-
EXTERNALURI
public static final ClientlibLink.Kind EXTERNALURI
URI to external system.
-
-
Method Detail
-
values
public static ClientlibLink.Kind[] 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 (ClientlibLink.Kind c : ClientlibLink.Kind.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ClientlibLink.Kind 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
-
-