|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectlt.monarch.chart.models.AbstractModelValidator
public abstract class AbstractModelValidator extends java.lang.Object implements java.io.Serializable
Abstract data model validator.
| Modifier and Type | Field and Description |
|---|---|
protected DataColumnType |
keyType
Data value type |
protected SortDirection |
sortDirection
Sort direction |
protected boolean |
sortEnabled
Flag whether to sort the model |
protected boolean |
validate
Flag whether to validate the model |
| Constructor and Description |
|---|
AbstractModelValidator()
|
| Modifier and Type | Method and Description |
|---|---|
DataColumnType |
getKeyType()
Gets key data value type. |
SortDirection |
getSortDirection()
Gets sort direction |
abstract boolean |
isSorted(DataColumnType keyType,
SortDirection direction)
Checks if the data is sorted according to the axis mapper |
boolean |
isSortEnabled()
Gets if the sort of data model is enabled |
abstract boolean |
isStackConsistent()
Checks if the stacked data models are consistent |
boolean |
isValidationEnabled()
|
void |
setKeyType(DataColumnType keyType)
Sets data value type. |
void |
setSortDirection(SortDirection sortDirection)
Sets sort direction for the data model |
void |
setSortEnabled(boolean sortEnabled)
Sets if the data model sorting is enabled |
void |
setValidationEnabled(boolean validate)
Sets whether to validate model |
abstract void |
validate(DataColumnType keyType)
Validates data model and sorts the data if required. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected boolean validate
protected boolean sortEnabled
protected SortDirection sortDirection
protected DataColumnType keyType
| Constructor Detail |
|---|
public AbstractModelValidator()
| Method Detail |
|---|
public abstract boolean isStackConsistent()
public abstract boolean isSorted(DataColumnType keyType,
SortDirection direction)
keyType - key type to checkdirection - specifies which way data should be sortedpublic abstract void validate(DataColumnType keyType)
keyType - key value typepublic void setValidationEnabled(boolean validate)
validate - true if to validatepublic boolean isValidationEnabled()
public SortDirection getSortDirection()
public void setSortDirection(SortDirection sortDirection)
sortDirection - the sort directionpublic boolean isSortEnabled()
public void setSortEnabled(boolean sortEnabled)
sortEnabled - true if data model sorting is enabledpublic DataColumnType getKeyType()
public void setKeyType(DataColumnType keyType)
keyType - key data value type
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||