📄 datadto.java
字号:
} else if (c.getStyles() != null) {
return false;
}
if (defaultNameSpacePrefix != null) {
r = r && defaultNameSpacePrefix.equals(c.getDefaultNameSpacePrefix());
} else if (c.getDefaultNameSpacePrefix() != null) {
return false;
}
return r;
}
/**
* Implement hashCode as part of the Object contract.
*
* @return Service hashcode or 0
*
* @see java.lang.Object#hashCode()
*/
public int hashCode() {
int r = 1;
if (dataStores != null) {
r *= dataStores.hashCode();
}
if (formats != null) {
r *= formats.hashCode();
}
if (nameSpaces != null) {
r *= nameSpaces.hashCode();
}
if (featuresTypes != null) {
r *= featuresTypes.hashCode();
}
if (styles != null) {
r *= styles.hashCode();
}
if (coverages != null) {
r *= coverages.hashCode();
}
return r;
}
/**
* Retrive a Map of DataStoreInfoDTO by "dataStoreID".
*
* @return Map of DataStoreInfoDTO by "dataStoreID"
*
* @uml.property name="dataStores"
*/
public Map getDataStores() {
return dataStores;
}
/**
* Retrive a Map of CoverageStoreInfoDTO by "formatID".
*
* @return Map of CoverageStoreInfoDTO by "formatID"
*
* @uml.property name="formats"
*/
public Map getFormats() {
return formats;
}
/**
* Return the getDefaultNameSpace.
*
* <p>
* May consider just returning the "prefix" of the default Namespace here.
* It is unclear what happens when we are starting out with a Empty
* DataDTO class.
* </p>
*
* @return Default namespace or <code>null</code>
*
* @uml.property name="defaultNameSpacePrefix"
*/
public String getDefaultNameSpacePrefix() {
return defaultNameSpacePrefix;
}
/**
* Retrive Map of FeatureTypeInfoDTO by "dataStoreID.typeName".
*
* @return Map of FeatureTypeInfoDTO by "dataStoreID.typeName"
*
* @uml.property name="featuresTypes"
*/
public Map getFeaturesTypes() {
return featuresTypes;
}
/**
* Map of NamespaceDTO by "prefix".
*
* @return Map of NamespaceDTO by "prefix".
*
* @uml.property name="nameSpaces"
*/
public Map getNameSpaces() {
return nameSpaces;
}
/**
* Retrive Map of StyleDTO by "something?". Key is Style.id
*
* @return Map of StyleDTO by "something"?
*
* @uml.property name="styles"
*/
public Map getStyles() {
return styles;
}
/**
* Replace DataStoreInfoDTO map.
*
* @param map Map of DataStoreInfoDTO by "dataStoreID"
*
* @throws NullPointerException DOCUMENT ME!
*
* @uml.property name="dataStores"
*/
public void setDataStores(Map map) {
if (map == null) {
throw new NullPointerException(
"DataStores map must not be null. Use Collections.EMPTY_MAP if you must");
}
dataStores = new HashMap(map);
if (map != null) {
dataStores = map;
}
}
/**
* Replace CoverageStoreInfoDTO map.
*
* @param map Map of CoverageStoreInfoDTO by "formatID"
*
* @throws NullPointerException DOCUMENT ME!
*
* @uml.property name="formats"
*/
public void setFormats(Map map) {
if (map == null) {
throw new NullPointerException(
"Formats map must not be null. Use Collections.EMPTY_MAP if you must");
}
formats = new HashMap(map);
if (map != null) {
formats = map;
}
}
/**
* Sets the default namespace.
*
* <p>
* Note the provided namespace must be present in the namespace map.
* </p>
*
* @param dnsp the default namespace prefix.
*
* @throws NoSuchElementException DOCUMENT ME!
*
* @uml.property name="defaultNameSpacePrefix"
*/
public void setDefaultNameSpacePrefix(String dnsp) {
defaultNameSpacePrefix = dnsp;
if (!nameSpaces.containsKey(dnsp)) {
throw new NoSuchElementException("Invalid NameSpace Prefix for Default");
}
}
/**
* Set the FeatureTypeInfoDTO map.
*
* <p>
* The dataStoreID used for the map must be in datastores.
* </p>
*
* @param map of FeatureTypeInfoDTO by "dataStoreID.typeName"
*
* @throws NullPointerException DOCUMENT ME!
*
* @uml.property name="featuresTypes"
*/
public void setFeaturesTypes(Map map) {
if (map == null) {
throw new NullPointerException(
"FeatureTypeInfoDTO map must not be null. Use Collections.EMPTY_MAP if you must");
}
featuresTypes = map;
}
/**
* Sets the NameSpaceInfoDTO map.
*
* <p>
* The default prefix is not changed by this operation.
* </p>
*
* @param map of NameSpaceInfoDTO by "prefix"
*
* @throws NullPointerException DOCUMENT ME!
*
* @uml.property name="nameSpaces"
*/
public void setNameSpaces(Map map) {
if (map == null) {
throw new NullPointerException(
"NameSpaceDTO map must not be null. Use Collections.EMPTY_MAP if you must");
}
nameSpaces = map;
}
/**
* Set map of StyleDTO by "something?".
*
* @param map Map of StyleDTO by "someKey"?
*
* @throws NullPointerException DOCUMENT ME!
*
* @uml.property name="styles"
*/
public void setStyles(Map map) {
if (map == null) {
throw new NullPointerException(
"StyleInfoDTO map must not be null. Use Collections.EMPTY_MAP if you must");
}
styles = map;
}
/**
* @return Returns the coverages.
*
* @uml.property name="coverages"
*/
public Map getCoverages() {
return coverages;
}
/**
* @param coverages The coverages to set.
*
* @uml.property name="coverages"
*/
public void setCoverages(Map coverages) {
if (coverages == null) {
throw new NullPointerException(
"CoverageInfoDTO map must not be null. Use Collections.EMPTY_MAP if you must");
}
this.coverages = coverages;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -