|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
ObjectValidatorContainer
public class ValidatorContainer
A set of convenience methods for validating GeoAPI implementations. Every validate
method defined in this class delegate their work to one of many Validator objects
in various packages. Vendors can change the value of fields in this class if they wish to
override some validation process.
Customization
All validate(...) methods in this class are final because this class is not the extension
point for overriding validation processes. Instead, extend the appropriate Validator
subclass and assign an instance to the corresponding field in this class. For example in order
to override the validation of GeographicCRS objects, one
can do:
ValidatorContainer container = new ValidationContainer();
container.crs = new CRSValidator(container) {
@Override
public void validate(GeographicCRS object) {
super.validate(object);
// Perform additional validation here.
}
};
| Field Summary | |
|---|---|
List<Validator> |
all
An unmodifiable "live" list of all validators. |
CitationValidator |
citation
The validator for Citation and related objects. |
OperationValidator |
coordinateOperation
The validator for CoordinateOperation and related objects. |
CRSValidator |
crs
The validator for CoordinateReferenceSystem and related objects. |
CSValidator |
cs
The validator for CoordinateSystem and related objects. |
DatumValidator |
datum
The validator for Datum and related objects. |
ExtentValidator |
extent
The validator for Extent and related objects. |
GeometryValidator |
geometry
The validator for Geometry and related objects. |
ImageValidator |
image
The validator for images and related objects. |
RootValidator |
metadata
The validator for Metadata and related objects. |
NameValidator |
naming
The validator for GenericName and related objects. |
ParameterValidator |
parameter
The validator for ParameterValue and related objects. |
| Constructor Summary | |
|---|---|
ValidatorContainer()
Creates a new ValidatorContainer initialized with new Validator instances. |
|
| Method Summary | |
|---|---|
ValidatorContainer |
clone()
Returns a new container using the same validators than this instance. |
void |
dispatch(Object object)
For each interface implemented by the given object, invokes the corresponding validate(...) method defined in this class (if any). |
void |
validate(Address object)
Tests the conformance of the given object. |
void |
validate(BoundingPolygon object)
Tests the conformance of the given object. |
void |
validate(CartesianCS object)
Tests the conformance of the given object. |
void |
validate(Citation object)
Tests the conformance of the given object. |
void |
validate(CompoundCRS object)
Validates the given coordinate reference system. |
void |
validate(ConcatenatedOperation object)
Tests the conformance of the given object. |
void |
validate(Contact object)
Tests the conformance of the given object. |
void |
validate(Conversion object)
Tests the conformance of the given object. |
void |
validate(CoordinateOperation object)
Tests the conformance of the given object. |
void |
validate(CoordinateReferenceSystem object)
Tests the conformance of the given object. |
void |
validate(CoordinateSystem object)
Tests the conformance of the given object. |
void |
validate(CoordinateSystemAxis object)
Tests the conformance of the given object. |
void |
validate(CylindricalCS object)
Tests the conformance of the given object. |
void |
validate(Datum object)
Tests the conformance of the given object. |
void |
validate(DerivedCRS object)
Validates the given coordinate reference system. |
void |
validate(DirectPosition object)
Tests the conformance of the given object. |
void |
validate(Ellipsoid object)
Tests the conformance of the given object. |
void |
validate(EllipsoidalCS object)
Tests the conformance of the given object. |
void |
validate(EngineeringCRS object)
Validates the given coordinate reference system. |
void |
validate(EngineeringDatum object)
Tests the conformance of the given object. |
void |
validate(Envelope object)
Tests the conformance of the given object. |
void |
validate(Extent object)
Tests the conformance of the given object. |
void |
validate(Formula object)
Tests the conformance of the given object. |
void |
validate(GeneralParameterDescriptor object)
Tests the conformance of the given object. |
void |
validate(GeneralParameterValue object)
Tests the conformance of the given object. |
void |
validate(GenericName object)
Tests the conformance of the given object. |
void |
validate(GeocentricCRS object)
Tests the conformance of the given object. |
void |
validate(GeodeticDatum object)
Tests the conformance of the given object. |
void |
validate(GeographicBoundingBox object)
Tests the conformance of the given object. |
void |
validate(GeographicCRS object)
Tests the conformance of the given object. |
void |
validate(GeographicDescription object)
Tests the conformance of the given object. |
void |
validate(GeographicExtent object)
Tests the conformance of the given object. |
void |
validate(IdentifiedObject object)
Tests the conformance of the given object. |
void |
validate(Identifier object)
Tests the conformance of the given object. |
void |
validate(IIOMetadataFormat object)
Tests the conformance of the given object. |
void |
validate(ImageCRS object)
Validates the given coordinate reference system. |
void |
validate(ImageDatum object)
Tests the conformance of the given object. |
void |
validate(ImageReaderSpi object)
Tests the conformance of the given object. |
void |
validate(ImageWriterSpi object)
Tests the conformance of the given object. |
void |
validate(InternationalString object)
Tests the conformance of the given object. |
void |
validate(LinearCS object)
Tests the conformance of the given object. |
void |
validate(LocalName object)
Tests the conformance of the given object. |
void |
validate(MathTransform object)
Tests the conformance of the given object. |
void |
validate(Metadata object)
Tests the conformance of the given object. |
void |
validate(NameSpace object)
Tests the conformance of the given object. |
void |
validate(OnlineResource object)
Tests the conformance of the given object. |
void |
validate(OperationMethod object)
Tests the conformance of the given object. |
void |
validate(ParameterDescriptor<?> object)
Tests the conformance of the given object. |
void |
validate(ParameterDescriptorGroup object)
Tests the conformance of the given object. |
void |
validate(ParameterValue<?> object)
Tests the conformance of the given object. |
void |
validate(ParameterValueGroup object)
Tests the conformance of the given object. |
void |
validate(PassThroughOperation object)
Tests the conformance of the given object. |
void |
validate(PolarCS object)
Tests the conformance of the given object. |
void |
validate(PrimeMeridian object)
Tests the conformance of the given object. |
void |
validate(ProjectedCRS object)
Validates the given coordinate reference system. |
void |
validate(ReferenceIdentifier object)
Tests the conformance of the given object. |
void |
validate(ResponsibleParty object)
Tests the conformance of the given object. |
void |
validate(ScopedName object)
Tests the conformance of the given object. |
void |
validate(SphericalCS object)
Tests the conformance of the given object. |
void |
validate(Telephone object)
Tests the conformance of the given object. |
void |
validate(TemporalCRS object)
Validates the given coordinate reference system. |
void |
validate(TemporalDatum object)
Tests the conformance of the given object. |
void |
validate(TemporalExtent object)
Tests the conformance of the given object. |
void |
validate(TimeCS object)
Tests the conformance of the given object. |
void |
validate(Transformation object)
Tests the conformance of the given object. |
void |
validate(UserDefinedCS object)
Tests the conformance of the given object. |
void |
validate(VerticalCRS object)
Validates the given coordinate reference system. |
void |
validate(VerticalCS object)
Tests the conformance of the given object. |
void |
validate(VerticalDatum object)
Tests the conformance of the given object. |
void |
validate(VerticalExtent object)
Tests the conformance of the given object. |
| Methods inherited from class Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public NameValidator naming
GenericName and related objects.
Vendors can change this field to a different validator, or change the setting
of the referenced validator. This field shall not be set to null however.
public RootValidator metadata
Metadata and related objects.
Vendors can change this field to a different validator, or change the setting
of the referenced validator. This field shall not be set to null however.
public CitationValidator citation
Citation and related objects.
Vendors can change this field to a different validator, or change the setting
of the referenced validator. This field shall not be set to null however.
public ExtentValidator extent
Extent and related objects.
Vendors can change this field to a different validator, or change the setting
of the referenced validator. This field shall not be set to null however.
public DatumValidator datum
Datum and related objects.
Vendors can change this field to a different validator, or change the setting
of the referenced validator. This field shall not be set to null however.
public CSValidator cs
CoordinateSystem and related objects.
Vendors can change this field to a different validator, or change the setting
of the referenced validator. This field shall not be set to null however.
public CRSValidator crs
CoordinateReferenceSystem and related objects.
Vendors can change this field to a different validator, or change the setting
of the referenced validator. This field shall not be set to null however.
public ParameterValidator parameter
ParameterValue and related objects.
Vendors can change this field to a different validator, or change the setting
of the referenced validator. This field shall not be set to null however.
public OperationValidator coordinateOperation
CoordinateOperation and related objects.
Vendors can change this field to a different validator, or change the setting
of the referenced validator. This field shall not be set to null however.
public GeometryValidator geometry
Geometry and related objects.
Vendors can change this field to a different validator, or change the setting
of the referenced validator. This field shall not be set to null however.
public ImageValidator image
null however.
public final List<Validator> all
logger setting
or to set their set requireMandatoryAttributes
field to false.
| Constructor Detail |
|---|
public ValidatorContainer()
ValidatorContainer initialized with new Validator instances.
Note that this constructor does not inherit the configuration of the Validators.DEFAULT
instance. To inherit that default configuration, use DEFAULT.clone()
instead.
| Method Detail |
|---|
public ValidatorContainer clone()
ValidatorContainer instances will share the same Validator instances.
This method is typically used in order to use the default configuration with a few changes, as in the example below:
ValidatorContainer myContainer = Validators.DEFAULT.clone(); myContainer.crs = new CRSValidator(); myContainer.crs.enforceStandardNames = false;
clone in class ObjectValidatorContainer instance using the same Validator instances.public final void dispatch(Object object)
validate(...) method defined in this class (if any).
Use this method only if the type is unknown at compile-time.
object - The object to dispatch to validate(...) methods, or null.public final void validate(Metadata object)
object - The object to test, or null.RootValidator.validate(Metadata)public final void validate(Citation object)
object - The object to test, or null.CitationValidator.validate(Citation)public final void validate(ResponsibleParty object)
object - The object to test, or null.CitationValidator.validate(ResponsibleParty)public final void validate(Contact object)
object - The object to test, or null.CitationValidator.validate(Contact)public final void validate(Telephone object)
object - The object to test, or null.CitationValidator.validate(Telephone)public final void validate(Address object)
object - The object to test, or null.CitationValidator.validate(Address)public final void validate(OnlineResource object)
object - The object to test, or null.CitationValidator.validate(OnlineResource)public final void validate(Extent object)
object - The object to test, or null.ExtentValidator.validate(Extent)public final void validate(TemporalExtent object)
object - The object to test, or null.ExtentValidator.validate(TemporalExtent)public final void validate(VerticalExtent object)
object - The object to test, or null.ExtentValidator.validate(VerticalExtent)public final void validate(GeographicExtent object)
object - The object to test, or null.ExtentValidator.dispatch(GeographicExtent)public final void validate(GeographicDescription object)
object - The object to test, or null.ExtentValidator.validate(GeographicDescription)public final void validate(BoundingPolygon object)
object - The object to test, or null.ExtentValidator.validate(BoundingPolygon)public final void validate(GeographicBoundingBox object)
object - The object to test, or null.ExtentValidator.validate(GeographicBoundingBox)public final void validate(Envelope object)
object - The object to test, or null.GeometryValidator.validate(Envelope)public final void validate(DirectPosition object)
object - The object to test, or null.GeometryValidator.validate(DirectPosition)public final void validate(CoordinateReferenceSystem object)
object - The object to test, or null.CRSValidator.dispatch(CoordinateReferenceSystem)public final void validate(GeocentricCRS object)
object - The object to test, or null.CRSValidator.validate(GeocentricCRS)public final void validate(GeographicCRS object)
object - The object to test, or null.CRSValidator.validate(GeographicCRS)public final void validate(ProjectedCRS object)
object - The object to validate, or null.CRSValidator.validate(ProjectedCRS)public final void validate(DerivedCRS object)
object - The object to validate, or null.CRSValidator.validate(DerivedCRS)public final void validate(ImageCRS object)
object - The object to validate, or null.CRSValidator.validate(ImageCRS)public final void validate(EngineeringCRS object)
object - The object to validate, or null.CRSValidator.validate(EngineeringCRS)public final void validate(VerticalCRS object)
object - The object to validate, or null.CRSValidator.validate(VerticalCRS)public final void validate(TemporalCRS object)
object - The object to validate, or null.CRSValidator.validate(TemporalCRS)public final void validate(CompoundCRS object)
object - The object to validate, or null.CRSValidator.validate(CompoundCRS)public final void validate(CoordinateSystem object)
object - The object to test, or null.CSValidator.dispatch(CoordinateSystem)public final void validate(CartesianCS object)
object - The object to test, or null.CSValidator.validate(CartesianCS)public final void validate(EllipsoidalCS object)
object - The object to test, or null.CSValidator.validate(EllipsoidalCS)public final void validate(SphericalCS object)
object - The object to test, or null.CSValidator.validate(SphericalCS)public final void validate(CylindricalCS object)
object - The object to test, or null.CSValidator.validate(CylindricalCS)public final void validate(PolarCS object)
object - The object to test, or null.CSValidator.validate(PolarCS)public final void validate(LinearCS object)
object - The object to test, or null.CSValidator.validate(LinearCS)public final void validate(VerticalCS object)
object - The object to test, or null.CSValidator.validate(VerticalCS)public final void validate(TimeCS object)
object - The object to test, or null.CSValidator.validate(TimeCS)public final void validate(UserDefinedCS object)
object - The object to test, or null.CSValidator.validate(UserDefinedCS)public final void validate(CoordinateSystemAxis object)
object - The object to test, or null.CSValidator.validate(CoordinateSystemAxis)public final void validate(Datum object)
object - The object to test, or null.DatumValidator.dispatch(Datum)public final void validate(PrimeMeridian object)
object - The object to test, or null.DatumValidator.validate(PrimeMeridian)public final void validate(Ellipsoid object)
object - The object to test, or null.DatumValidator.validate(Ellipsoid)public final void validate(GeodeticDatum object)
object - The object to test, or null.DatumValidator.validate(GeodeticDatum)public final void validate(VerticalDatum object)
object - The object to test, or null.DatumValidator.validate(VerticalDatum)public final void validate(TemporalDatum object)
object - The object to test, or null.DatumValidator.validate(TemporalDatum)public final void validate(ImageDatum object)
object - The object to test, or null.DatumValidator.validate(ImageDatum)public final void validate(EngineeringDatum object)
object - The object to test, or null.DatumValidator.validate(EngineeringDatum)public final void validate(CoordinateOperation object)
object - The object to test, or null.OperationValidator.dispatch(CoordinateOperation)public final void validate(Conversion object)
object - The object to test, or null.OperationValidator.validate(Conversion)public final void validate(Transformation object)
object - The object to test, or null.OperationValidator.validate(Transformation)public final void validate(ConcatenatedOperation object)
object - The object to test, or null.OperationValidator.validate(ConcatenatedOperation)public final void validate(PassThroughOperation object)
object - The object to test, or null.OperationValidator.validate(PassThroughOperation)public final void validate(OperationMethod object)
object - The object to test, or null.OperationValidator.validate(OperationMethod)public final void validate(Formula object)
object - The object to test, or null.OperationValidator.validate(OperationMethod)public final void validate(MathTransform object)
object - The object to test, or null.OperationValidator.validate(MathTransform)public final void validate(GeneralParameterDescriptor object)
object - The object to test, or null.ParameterValidator.dispatch(GeneralParameterDescriptor)public final void validate(ParameterDescriptor<?> object)
object - The object to test, or null.ParameterValidator.validate(ParameterDescriptor)public final void validate(ParameterDescriptorGroup object)
object - The object to test, or null.ParameterValidator.validate(ParameterDescriptorGroup)public final void validate(GeneralParameterValue object)
object - The object to test, or null.ParameterValidator.dispatch(GeneralParameterValue)public final void validate(ParameterValue<?> object)
object - The object to test, or null.ParameterValidator.validate(ParameterValue)public final void validate(ParameterValueGroup object)
object - The object to test, or null.ParameterValidator.validate(ParameterValueGroup)public final void validate(IdentifiedObject object)
object - The object to test, or null.ReferencingValidator.dispatchObject(IdentifiedObject)public final void validate(ReferenceIdentifier object)
object - The object to test, or null.ReferencingValidator.validate(ReferenceIdentifier)public final void validate(Identifier object)
object - The object to test, or null.RootValidator.validate(Identifier)public final void validate(GenericName object)
object - The object to test, or null.NameValidator.dispatch(GenericName)public final void validate(LocalName object)
object - The object to test, or null.NameValidator.validate(LocalName)public final void validate(ScopedName object)
object - The object to test, or null.NameValidator.validate(ScopedName)public final void validate(NameSpace object)
object - The object to test, or null.NameValidator.validate(NameSpace)public final void validate(InternationalString object)
object - The object to test, or null.NameValidator.validate(InternationalString)public final void validate(ImageReaderSpi object)
object - The object to test, or null.ImageValidator.validate(ImageReaderSpi)public final void validate(ImageWriterSpi object)
object - The object to test, or null.ImageValidator.validate(ImageWriterSpi)public void validate(IIOMetadataFormat object)
object - The object to test, or null.ImageValidator.validate(IIOMetadataFormat)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||