Class PropertyValueTests

java.lang.Object
org.opengis.cite.iso19136.data.DataFixture
org.opengis.cite.iso19136.data.PropertyValueTests

public class PropertyValueTests extends DataFixture
Checks various property value constraints.
  • Constructor Details

    • PropertyValueTests

      public PropertyValueTests()
  • Method Details

    • validateLocationName

      public void validateLocationName() throws FileNotFoundException, MalformedURLException
      [@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

      public void validateLocationReference() throws FileNotFoundException, MalformedURLException
      [@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.