com.supermap.services.ogc
Class SchemaTool
- java.lang.Object
-
- com.supermap.services.ogc.SchemaTool
-
public class SchemaTool extends java.lang.ObjectThe 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 Summary
Constructors Constructor and Description SchemaTool(java.lang.String basePath)Creates theSchemaToolobject according to the root directory of the Schema document.
-
Method Summary
Methods Modifier and Type Method and Description java.lang.StringgetSchemaContent(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.
-
-
-
Constructor Detail
-
SchemaTool
public SchemaTool(java.lang.String basePath)
Creates theSchemaToolobject according to the root directory of the Schema document.- Parameters:
basePath- Schema the root directory of the Schema document.
-
-
Method Detail
-
getSchemaContent
public java.lang.String getSchemaContent(java.lang.String mappedName, java.lang.String baseURL) throws OGCExceptionGets 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.
- Parameters:
mappedName- Schema the path of the Schema document relative to the root directory, separated by “,” in the OGC.baseURL- Schema the descriptive string.- Returns:
- Schema Schema the descriptive string.
- Throws:
OGCException- the OGS related exception.
-
-