Package org.ametys.web.source
Enum ServiceSourceFactory.SourceType
- java.lang.Object
-
- java.lang.Enum<ServiceSourceFactory.SourceType>
-
- org.ametys.web.source.ServiceSourceFactory.SourceType
-
- All Implemented Interfaces:
Serializable
,Comparable<ServiceSourceFactory.SourceType>
- Enclosing class:
- ServiceSourceFactory
public static enum ServiceSourceFactory.SourceType extends Enum<ServiceSourceFactory.SourceType>
The enum of existing types of servicesources
-
-
Constructor Summary
Constructors Modifier Constructor Description private
SourceType()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ServiceSourceFactory.SourceType
valueOf(String name)
Returns the enum constant of this type with the specified name.static ServiceSourceFactory.SourceType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PLUGIN
public static final ServiceSourceFactory.SourceType PLUGIN
The source is in the plugin
-
SKIN
public static final ServiceSourceFactory.SourceType SKIN
The source is in the skin
-
TEMPLATE
public static final ServiceSourceFactory.SourceType TEMPLATE
The source is in the template
-
-
Constructor Detail
-
SourceType
private SourceType()
-
-
Method Detail
-
values
public static ServiceSourceFactory.SourceType[] 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 (ServiceSourceFactory.SourceType c : ServiceSourceFactory.SourceType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ServiceSourceFactory.SourceType 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
-
-