com.supermap.services.wfs
Class NamespaceConfig
- java.lang.Object
-
- java.util.AbstractMap<K,V>
-
- java.util.HashMap<java.lang.String,com.supermap.services.wfs.DatasourceNamespaceConfig>
-
- com.supermap.services.wfs.NamespaceConfig
-
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable, java.util.Map<java.lang.String,com.supermap.services.wfs.DatasourceNamespaceConfig>
public class NamespaceConfig extends java.util.HashMap<java.lang.String,com.supermap.services.wfs.DatasourceNamespaceConfig>Namespace configuration class.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description NamespaceConfig()
-
Method Summary
Methods Modifier and Type Method and Description java.lang.String[]decodeFeatureTypeName(javax.xml.namespace.QName featureTypeName)Retrieve the datasource name and dataset name from the feature type name.java.lang.StringgetBaseNamespaceURL()Get the root URI of the namespace.javax.xml.namespace.QNamegetFeatureTypeName(java.lang.String datasourceName, java.lang.String datasetName)Get the feature type name according to the datasource and dataset name.voidinit(java.util.List<FeatureType> featureTypeList)Initialize the feature type list.voidsetBaseNamespaceURL(java.lang.String baseNamespaceURL)Set the root URI of the namespace.-
Methods inherited from class java.util.HashMap
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, values
-
-
-
-
Method Detail
-
setBaseNamespaceURL
public void setBaseNamespaceURL(java.lang.String baseNamespaceURL)
Set the root URI of the namespace.
- Parameters:
baseNamespaceURL- the root URI of the namespace.
-
getBaseNamespaceURL
public java.lang.String getBaseNamespaceURL()
Get the root URI of the namespace.
- Returns:
- the namespace root url.
-
init
public void init(java.util.List<FeatureType> featureTypeList)
Initialize the feature type list.
- Parameters:
featureTypeList- the feature type list.
-
getFeatureTypeName
public javax.xml.namespace.QName getFeatureTypeName(java.lang.String datasourceName, java.lang.String datasetName)Get the feature type name according to the datasource and dataset name.
- Parameters:
datasourceName- the name of the datasource.datasetName- the dataset name.- Returns:
- if the datasource configuration information is empty, null is returned; otherwise returns null if the dataset configuration information is empty, if it is not empty it returns a QName value which includes the namespace URI, the local part and the prefix.
-
decodeFeatureTypeName
public java.lang.String[] decodeFeatureTypeName(javax.xml.namespace.QName featureTypeName)
Retrieve the datasource name and dataset name from the feature type name.
- Parameters:
featureTypeName- the feature type name.- Returns:
- returns a null if the feature type name is empty; otherwise, it returns an array of one-dimensional strings with two elements where the first element is the name of the datasource, and the second element is the dataset name.
-
-