|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectlt.monarch.chart.models.AbstractModelValidator
lt.monarch.chart.models.DataModelValidator
public class DataModelValidator extends AbstractModelValidator
Data model validator, which validates if the data supplied is correct and consistent
| Modifier and Type | Field and Description |
|---|---|
protected DataModel |
model
Data model to validate |
| Fields inherited from class lt.monarch.chart.models.AbstractModelValidator |
|---|
keyType, sortDirection, sortEnabled, validate |
| Constructor and Description |
|---|
DataModelValidator(DataModel dataModel)
Data model validator default constructor |
| Modifier and Type | Method and Description |
|---|---|
void |
dispose()
Disposes object |
protected void |
finalize()
|
java.lang.String |
getValidationMessage()
|
boolean |
isSorted(DataColumnType keyType,
SortDirection direction)
Checks if the data is sorted according to the axis mapper |
boolean |
isStackConsistent()
Checks if the stacked data models are consistent |
boolean |
isValidateTypes()
Is validating data types of the column |
void |
setValidateTypes(boolean validateTypes)
Sets to validate data types of the column |
void |
sort(DataColumnType keyType,
SortDirection direction)
Sorts the data model according to the axis |
void |
validate(DataColumnType keyType)
Validates data model and sorts the data if required. |
boolean |
validateTypes(DataColumnType type)
Validates if data types for the same column are of the same type. |
| Methods inherited from class lt.monarch.chart.models.AbstractModelValidator |
|---|
getKeyType, getSortDirection, isSortEnabled, isValidationEnabled, setKeyType, setSortDirection, setSortEnabled, setValidationEnabled |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final DataModel model
| Constructor Detail |
|---|
public DataModelValidator(DataModel dataModel)
dataModel - data model to validate| Method Detail |
|---|
public void sort(DataColumnType keyType,
SortDirection direction)
keyType - key data value type, which is mapped to the axisMapperdirection - data sort direction
protected void finalize()
throws java.lang.Throwable
finalize in class java.lang.Objectjava.lang.Throwablepublic void validate(DataColumnType keyType)
AbstractModelValidator
validate in class AbstractModelValidatorkeyType - key value type
public boolean isSorted(DataColumnType keyType,
SortDirection direction)
AbstractModelValidator
isSorted in class AbstractModelValidatorkeyType - key type to checkdirection - specifies which way data should be sortedpublic boolean isStackConsistent()
AbstractModelValidator
isStackConsistent in class AbstractModelValidatorpublic java.lang.String getValidationMessage()
public void dispose()
public boolean validateTypes(DataColumnType type)
type - column numberjava.lang.IllegalArgumentException - if validation do not passpublic boolean isValidateTypes()
public void setValidateTypes(boolean validateTypes)
validateTypes - true if to validate data types
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||