|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Used to define a type of validation test that is performed on Features.
Each ValidationPlugIn is very specific in nature: it performs one test extermly well. This simplifies design decisions, documenation configuration and use.
The PlugIn is also required to supply some metadata to aid in its deployment, scripting, logging and execution and error recovery:
Field Summary | |
static java.lang.String[] |
ALL
Empty String array for use with getTypeNames(). |
static int |
PRIORITY_COMPLEX
A constant for getPriority() used for complex validation checks. |
static int |
PRIORITY_INVOLVED
A constant for getPriority() used for involved validation checks. |
static int |
PRIORITY_SIMPLE
A constant for getPriority() used for simple validation checks. |
static int |
PRIORITY_TRIVIAL
A constant for getPriority() used for Trivial validation checks. |
Method Summary | |
java.lang.String |
getDescription()
User's Description of this Validation. |
java.lang.String |
getName()
User's name for the validation. |
int |
getPriority()
Priority used in scheduling this Validation test. |
java.lang.String[] |
getTypeRefs()
Identify the FeatureTypes that this validation test is run against. |
void |
setDescription(java.lang.String description)
Sets the description of the validation. |
void |
setName(java.lang.String name)
Sets the name of the validation. |
Field Detail |
public static final int PRIORITY_TRIVIAL
This is a Priority Hint to Validation Processor based on computational expense.
Trivial is used for thing that don't require any real work - like checking for any O(1) opperations such as checking null values.
public static final int PRIORITY_SIMPLE
This is a Priority Hint to Validation Processor based on computational expense.
Used for simple attribute or geometry validations, basically anything that is Order(N) like a Bounds check.
public static final int PRIORITY_COMPLEX
This is a Priority Hint to Validation Processor based on computational expense.
Used for complex validations, basically anything that is has a Chance of being worse then O(N).
Any integrity tests between two FeatureTypes should be an example of a PRIORITY_COMPLEX.
public static final int PRIORITY_INVOLVED
This is a Priority Hint to Validation Processor based on computational expense.
Used for involved validations, basically anything that is has a Chance of being worse then O(N^2).
Any integrity tests involving network code, were we have to build the network and then walk it, is an example of PRIORITY_INVOLVED.
public static final java.lang.String[] ALL
Used to denote that all FeatureTypes should be tested. (If this does not Pan out we may have to define the wild-card character "" or support Regex based typeName matching.
Method Detail |
public void setName(java.lang.String name)
name
- the name of the validation.public java.lang.String getName()
public void setDescription(java.lang.String description)
description
- of the validationpublic java.lang.String getDescription()
public int getPriority()
public java.lang.String[] getTypeRefs()
If this list is empty the ValidationProcess will run the test against all FeatureTypes. The ValidationProcess expects these names to be in the format dataStoreId:typeName.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |