Package org.opengis.cite.iso19136.data
Class PropertyValueTests
java.lang.Object
org.opengis.cite.iso19136.data.DataFixture
org.opengis.cite.iso19136.data.PropertyValueTests
Checks various property value constraints.
-
Nested Class Summary
Modifier and TypeClassDescription(package private) class
An EventFilter that accepts GML elements specified by (local) name. -
Field Summary
Fields inherited from class org.opengis.cite.iso19136.data.DataFixture
dataFile, model
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
[@Test
] If a gml:locationName property has a codeSpace attribute, then the attribute value must identify a controlled list (that includes the location name).void
[@Test
] The gml:locationReference property must include the xlink:href attribute.Methods inherited from class org.opengis.cite.iso19136.data.DataFixture
generateXPathExpression, initDataFixture, setDataFile, setSchemaModel
-
Constructor Details
-
PropertyValueTests
public PropertyValueTests()
-
-
Method Details
-
validateLocationName
[@Test
] If a gml:locationName property has a codeSpace attribute, then the attribute value must identify a controlled list (that includes the location name). The list resource must be available, but no particular format is assumed.Sources
- ISO 19136:2007, cl. 9.4.2: locationName, locationReference
- Throws:
FileNotFoundException
- If no data file is found.MalformedURLException
- If the codeSpace value is a malformed URL.
-
validateLocationReference
[@Test
] The gml:locationReference property must include the xlink:href attribute. When the URI value is dereferenced the result must be a text value (that purports to describe the location of the feature).Sources
- ISO 19136:2007, cl. 9.4.2: locationName, locationReference
- Throws:
FileNotFoundException
- If no data file is found.MalformedURLException
- If a location reference is a malformed URL.
-