Class LOVSupport
- java.lang.Object
-
- com.redwood.scheduler.api.constraint.LOVSupport
-
- All Implemented Interfaces:
Comparable<LOVSupport>
public final class LOVSupport extends Object implements Comparable<LOVSupport>
-
-
Field Summary
Fields Modifier and Type Field Description static LOVSupportGetLOVstatic LOVSupportGetLOVAllowNewstatic LOVSupportGetLOVQuerystatic LOVSupportGetLOVQueryAllowNewstatic LOVSupportGetLOVQueryPrefixstatic LOVSupportGetLOVQueryPrefixAllowNewstatic LOVSupportNoGetLOV
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanGetLOV()Is an LOV available?booleancanQuery()Can the LOV be queried?intcompareTo(LOVSupport that)booleanequals(Object other)inthashCode()booleanisNewValueAllowed()Is a new value (one not in the LOV) allowed?booleanisQueryPrefix()Is the query the prefix of the string?StringtoString()static LOVSupportvalueOf(String name)Get the LOV support for a string (opposite oftoString()).
-
-
-
Field Detail
-
NoGetLOV
public static final LOVSupport NoGetLOV
-
GetLOV
public static final LOVSupport GetLOV
-
GetLOVQuery
public static final LOVSupport GetLOVQuery
-
GetLOVQueryPrefix
public static final LOVSupport GetLOVQueryPrefix
-
GetLOVAllowNew
public static final LOVSupport GetLOVAllowNew
-
GetLOVQueryAllowNew
public static final LOVSupport GetLOVQueryAllowNew
-
GetLOVQueryPrefixAllowNew
public static final LOVSupport GetLOVQueryPrefixAllowNew
-
-
Method Detail
-
canGetLOV
public boolean canGetLOV()
Is an LOV available?- Returns:
- true if an LOV can be retrieved, false otherwise
-
canQuery
public boolean canQuery()
Can the LOV be queried?- Returns:
- true if the LOV can be queried with a search string (a string the user typed in), false otherwise.
-
isQueryPrefix
public boolean isQueryPrefix()
Is the query the prefix of the string?- Returns:
- true if the LOV can be queried with a search string that starts at the beginning, false otherwise.
-
isNewValueAllowed
public boolean isNewValueAllowed()
Is a new value (one not in the LOV) allowed?- Returns:
- true if a new value is allowed, false otherwise.
-
compareTo
public int compareTo(LOVSupport that)
- Specified by:
compareToin interfaceComparable<LOVSupport>
-
valueOf
public static LOVSupport valueOf(String name)
Get the LOV support for a string (opposite oftoString()).- Parameters:
name- LOV support level name.- Returns:
- the constant or null if not found.
-
-