public class DefaultIntegrityValidation extends Object implements IntegrityValidation
This class is intended to be copied as a starting point for implementing IntegrityValidation. Chances are you are not working against a single typeName when performing an integrity test.
ALL, PRIORITY_COMPLEX, PRIORITY_INVOLVED, PRIORITY_SIMPLE, PRIORITY_TRIVIAL
Constructor and Description |
---|
DefaultIntegrityValidation()
No argument constructor, required by the Java Bean Specification.
|
Modifier and Type | Method and Description |
---|---|
String |
getDescription()
Override getDescription.
|
String |
getName()
Override getName.
|
int |
getPriority()
The priority level used to schedule this Validation.
|
String[] |
getTypeRefs()
Implementation of getTypeNames.
|
void |
setDescription(String description)
Override setDescription.
|
void |
setName(String name)
Override setName.
|
boolean |
validate(Map layers,
ReferencedEnvelope envelope,
ValidationResults results)
Check FeatureType for ...
|
public DefaultIntegrityValidation()
public final void setName(String name)
Sets the name of this validation.
setName
in interface Validation
name
- The name of this validation.Validation.setName(java.lang.String)
public final String getName()
Returns the name of this particular validation.
getName
in interface Validation
Validation.getName()
public final void setDescription(String description)
Sets the description of this validation.
setDescription
in interface Validation
description
- The description of the validation.Validation.setDescription(java.lang.String)
public final String getDescription()
Returns the description of this validation as a string.
getDescription
in interface Validation
Validation.getDescription()
public int getPriority()
getPriority
in interface Validation
Validation.getPriority()
public String[] getTypeRefs()
getTypeRefs
in interface Validation
Validation.getTypeRefs()
public boolean validate(Map layers, ReferencedEnvelope envelope, ValidationResults results) throws Exception
Detailed description...
validate
in interface IntegrityValidation
layers
- Map of SimpleFeatureSource by "dataStoreID:typeName"envelope
- The bounding box that encloses the unvalidated dataresults
- Used to coallate results informationtrue
if all the features pass this test.Exception
- DOCUMENT ME!Copyright © 1996–2019 Geotools. All rights reserved.