public class SchemaTool
extends java.lang.Object
The Schema description utility class, which is used to get the Schema description according to the Schema document path.
If the attributes in the and nodes of the Schema document are relative paths, this class can convert the paths to correct paths in Servlet to get Schema description. .
Constructor and Description |
---|
SchemaTool(java.lang.String basePath)
Creates the
SchemaTool object according to the root directory of the Schema document. |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getSchemaContent(java.lang.String mappedName, java.lang.String baseURL)
Gets the Schema description according to the root directory of the Schema document and the file attribute.
|
public SchemaTool(java.lang.String basePath)
SchemaTool
object according to the root directory of the Schema document.basePath
- Schema the root directory of the Schema document.public java.lang.String getSchemaContent(java.lang.String mappedName, java.lang.String baseURL) throws OGCException
Gets the Schema description according to the root directory of the Schema document and the file attribute.
The file attribute identifies the relative path of the Schema document to the root directory.
mappedName
- Schema the path of the Schema document relative to the root directory, separated by “,” in the OGC.baseURL
- Schema the descriptive string.OGCException
- the OGS related exception.