Package com.redwood.scheduler.api.model
Interface EnumResolver
-
public interface EnumResolver
Interface for resolving all EnumerationsBaseSchedulerEnumeration
based on their name.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description BaseSchedulerEnumeration<?,?>
getEnumerationByTypeCode(String type, String code)
Get an enumeration value based upon the type and the code.BaseSchedulerEnumeration<?,?>
getEnumerationByTypeValue(String type, String value)
Get an enumeration value based upon the type and the String value.
-
-
-
Method Detail
-
getEnumerationByTypeCode
BaseSchedulerEnumeration<?,?> getEnumerationByTypeCode(String type, String code)
Get an enumeration value based upon the type and the code.- Parameters:
type
- the type of enumerationcode
- the char/int code as a string- Returns:
- the enumeration value that matches the type and code, or
null
if it does not exist.
-
getEnumerationByTypeValue
BaseSchedulerEnumeration<?,?> getEnumerationByTypeValue(String type, String value)
Get an enumeration value based upon the type and the String value.- Parameters:
type
- the type of enumerationvalue
- the string value of the enumeration- Returns:
- the enumeration value that matches the type and value, or
null
if it does not exist.
-
-