public class DatasetsValidator extends Validator
| Constructor and Description |
|---|
DatasetsValidator(Document doc)
Initialize this validator with the contents of an XML Document.
|
| Modifier and Type | Method and Description |
|---|---|
String |
datasetNameForCode(Integer code)
Lookup a String name dataset for an Integer code according to the
embedded Datasets.xml
|
boolean |
isExtendedCode(Integer code)
Dataset codes between 900 - 999 (inclusive) will always be valid as
extended datasets.
|
boolean |
isValidCode(Integer code)
Check if an integer code is valid according to the embedded Datasets.xml.
|
boolean |
isValidName(String datasetName)
Check if a dataset name is valid according to the embedded Datasets.xml
|
compileAndEvaluatepublic DatasetsValidator(Document doc)
doc - XML Document from Datasets.xmlpublic boolean isExtendedCode(Integer code)
code - Integer for Dataset code (no leading zeros)public boolean isValidCode(Integer code)
code - Integer for Dataset code (no leading zeros)public boolean isValidName(String datasetName)
datasetName - String name of the datasetCopyright © 2023 Open Geospatial Consortium. All rights reserved.