public class ComponentSelectorValidator extends Validator
| Modifier and Type | Field and Description |
|---|---|
protected String |
DATASETS_QUERY
XPath query used for filtering Datasets
|
| Constructor and Description |
|---|
ComponentSelectorValidator(Document doc)
Initialize this validator with the contents of an XML Document.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isValidComponentSelector1ForDataset(String cs1,
String dataset)
Use Component Selector reference to check that a Component Selector level
1 is allowed for a Dataset.
|
boolean |
isValidComponentSelector2ForDataset(String cs2,
String cs1,
String dataset)
Use Component Selector reference to check that a Component Selector level
2 is allowed for a CS1 and Dataset.
|
compileAndEvaluateprotected final String DATASETS_QUERY
public ComponentSelectorValidator(Document doc)
doc - XML Document from Component_Selectors.xmlpublic boolean isValidComponentSelector1ForDataset(String cs1, String dataset)
cs1 - String of the level one Component Selectordataset - String of the Dataset IDpublic boolean isValidComponentSelector2ForDataset(String cs2, String cs1, String dataset)
cs2 - String of the level two Component Selectorcs1 - String of the level one Component Selectordataset - String of the Dataset IDCopyright © 2023 Open Geospatial Consortium. All rights reserved.