public class SelectionValidator extends TabularDataValidator implements HasValueList<HierarchicalDataObject>
SelectionDataElement
will be the index of
the selected data element, therefore this class validates the integer value
of the selection index.Constructor and Description |
---|
SelectionValidator(java.util.List<HierarchicalDataObject> rValues,
java.util.List<de.esoco.lib.model.ColumnDefinition> rColumns)
Creates a new instance that uses zero-based continuous integer values for
the identification of the data objects.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object rObj) |
java.util.List<HierarchicalDataObject> |
getValues()
Returns the list of values from which a value can be selected.
|
int |
hashCode() |
boolean |
isValid(java.lang.String sId)
Must be implemented to validate data element values.
|
getColumns
public SelectionValidator(java.util.List<HierarchicalDataObject> rValues, java.util.List<de.esoco.lib.model.ColumnDefinition> rColumns)
rValues
- The hierarchical data objects allowed by this instancerColumns
- The table columnspublic boolean equals(java.lang.Object rObj)
equals
in class TabularDataValidator
Object.equals(Object)
public final java.util.List<HierarchicalDataObject> getValues()
getValues
in interface HasValueList<HierarchicalDataObject>
public int hashCode()
hashCode
in class TabularDataValidator
Object.hashCode()