Package org.opengis.test.metadata
Class MetadataBaseValidator
- Object
-
- Validator
-
- MetadataValidator
-
- MetadataBaseValidator
-
public class MetadataBaseValidator extends MetadataValidator
ValidatesMetadata
and related objects from theorg.opengis.metadata
package. This validator is namedMetadataBaseValidator
for consistency with the"mdb"
namespace in XML schema.Metadata
is usually the root of the metadata tree.This class is provided for users wanting to override the validation methods. When the default behavior is sufficient, the
Validators
static methods provide a more convenient way to validate various kinds of objects.- Since:
- 3.1
-
-
Field Summary
-
Fields inherited from class Validator
container, DEFAULT_TOLERANCE, enforceForbiddenAttributes, logger, requireMandatoryAttributes
-
-
Constructor Summary
Constructors Constructor Description MetadataBaseValidator(ValidatorContainer container)
Creates a new validator instance.
-
Method Summary
Modifier and Type Method Description void
validate(Identifier object)
Validates the given identifier.void
validate(Metadata object)
Validates the given metadata.-
Methods inherited from class Validator
conditional, forbidden, mandatory, validate
-
-
-
-
Constructor Detail
-
MetadataBaseValidator
public MetadataBaseValidator(ValidatorContainer container)
Creates a new validator instance.- Parameters:
container
- the set of validators to use for validating other kinds of objects (see field javadoc).
-
-
Method Detail
-
validate
public void validate(Metadata object)
Validates the given metadata.- Parameters:
object
- the object to validate, ornull
.
-
validate
public void validate(Identifier object)
Validates the given identifier.- Parameters:
object
- the identifier to validate, ornull
.
-
-