Class AbstractField<V>
java.lang.Object
studio.mevera.imperat.selector.field.AbstractField<V>
- Type Parameters:
V- The type of the value that this field handles.
- All Implemented Interfaces:
SelectionField<V>
- Direct Known Subclasses:
NumericField,OperatorField,PredicateField,RangedNumericField
AbstractField is an abstract base class that implements the SelectionField
interface. It provides a skeletal implementation of the SelectionField
interface to minimize the effort required to implement this interface.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Set<SelectionField<?>>protected final StringThe name of the selection field.A list that holds suggestion strings related to the selection field's value.protected final TypeRepresents the type information of the value that this field handles.Fields inherited from interface studio.mevera.imperat.selector.field.SelectionField
SEPARATOR, VALUE_EQUALS -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractField(String name, studio.mevera.imperat.util.TypeWrap<V> type) Constructs an AbstractField instance with the specified name and type. -
Method Summary
Modifier and TypeMethodDescriptiongetName()Retrieves the name of the selection field.Retrieves a list of suggestions related to this selection field's valueRetrieves the type of the value handled by the selection field.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface studio.mevera.imperat.selector.field.SelectionField
parseFieldValue
-
Field Details
-
name
The name of the selection field. -
type
Represents the type information of the value that this field handles. This is a wrapped type of the value that supports various operations related to type management in this field. -
suggestions
A list that holds suggestion strings related to the selection field's value. This list can be used to provide autocomplete or assistive suggestions for the user. -
ALL
-
-
Constructor Details
-
AbstractField
Constructs an AbstractField instance with the specified name and type.- Parameters:
name- The name of the selection field.type- The type information of the value that this field handles, wrapped in a TypeWrap object.
-
-
Method Details
-
getName
Retrieves the name of the selection field.- Specified by:
getNamein interfaceSelectionField<V>- Returns:
- The name of the selection field.
-
getValueType
Retrieves the type of the value handled by the selection field.- Specified by:
getValueTypein interfaceSelectionField<V>- Returns:
- The type information wrapped in a TypeWrap object, which represents the value type of the selection field.
-
getSuggestions
Retrieves a list of suggestions related to this selection field's value- Specified by:
getSuggestionsin interfaceSelectionField<V>- Returns:
- A list of suggestion strings.
-