Class GeneralSchemaTests
java.lang.Object
org.opengis.cite.iso19136.general.GeneralSchemaTests
Verifies that a GML application schema is constructed in accord with all mandatory
constraints stipulated in clause A.1.1 of ISO 19136. All test methods in the class
belong to the "general" group.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
createSchemaModel
(org.testng.ITestContext testContext) Creates a schema model using the Schema object obtained from the ISuite context.void
[@Test
] A GML application schema shall be of at least one of the schema types described in clauses 21.3 through 21.11.void
[@Test
] An application schema shall declare a target namespace and it must not be "http://www.opengis.net/gml/3.2".(package private) URI
getApplicationNamespaceName
(Set<URI> schemaLocations) Determines the target namespace of a GML application schema, which is assumed to be the first schema found to have a target namespace name that is not in the opengis.net domain.(package private) AppSchemaInfo
void
[@Test
] A GML application schema shall import the full GML schema.
-
Constructor Details
-
GeneralSchemaTests
public GeneralSchemaTests()
-
-
Method Details
-
createSchemaModel
@BeforeClass public void createSchemaModel(org.testng.ITestContext testContext) Creates a schema model using the Schema object obtained from the ISuite context. The suite attributeschema
should evaluate to a Schema object. If the model is successfully created it is added to the ISuite context as themodel
attribute.- Parameters:
testContext
- The test (group) context.
-
declareTargetNamespace
public void declareTargetNamespace()[@Test
] An application schema shall declare a target namespace and it must not be "http://www.opengis.net/gml/3.2".Sources
- ISO 19136:2007, cl. 21.2.2
- ISO 19136:2007, cl. A.1.1.1 (Use of XML Namespaces)
-
importFullGMLSchema
public void importFullGMLSchema()[@Test
] A GML application schema shall import the full GML schema. The schemaLocation to the imported GML schema document must be provided.Sources
- ISO 19136:2007, cl. 21.2.3
- ISO 19136:2007, cl. A.1.1.3 (Import of GML schema components)
-
declaresGMLObjects
public void declaresGMLObjects()[@Test
] A GML application schema shall be of at least one of the schema types described in clauses 21.3 through 21.11. That is, a compliant application schema must include definitions created in accord with at least one of the following conformance classes:- GML application schemas defining Features and Feature Collections
- GML application schemas defining Spatial Geometries
- GML application schemas defining Spatial Topologies
- GML application schemas defining Time
- GML application schemas defining Coordinate Reference Systems
- GML application schemas defining Coverages
- GML application schemas defining Observations
- GML application schemas defining Dictionaries and Definitions
- GML application schemas defining Values
Sources
- ISO 19136:2007, cl. A.1.1.2 (General rules)
- ISO 19136:2007, cl. 21.2.1
-
getSchemaInfo
AppSchemaInfo getSchemaInfo() -
getApplicationNamespaceName
Determines the target namespace of a GML application schema, which is assumed to be the first schema found to have a target namespace name that is not in the opengis.net domain. If a URI cannot be dereferenced it is skipped.- Parameters:
schemaLocations
- A Set<URI> of schema references.- Returns:
- A URI indicating the target namespace of a GML application schema.
-