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 LOVSupport
GetLOV
static LOVSupport
GetLOVAllowNew
static LOVSupport
GetLOVQuery
static LOVSupport
GetLOVQueryAllowNew
static LOVSupport
GetLOVQueryPrefix
static LOVSupport
GetLOVQueryPrefixAllowNew
static LOVSupport
NoGetLOV
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canGetLOV()
Is an LOV available?boolean
canQuery()
Can the LOV be queried?int
compareTo(LOVSupport that)
boolean
equals(Object other)
int
hashCode()
boolean
isNewValueAllowed()
Is a new value (one not in the LOV) allowed?boolean
isQueryPrefix()
Is the query the prefix of the string?String
toString()
static LOVSupport
valueOf(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:
compareTo
in 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.
-
-