📄 featuretypeinfodto.java
字号:
* <p>
* Makes use of the standard EPSG codes?
* </p>
*
* @return WPSG Spatial Reference System for FeatureType
*/
public int getSRS() {
return SRS;
}
public int getSRSHandling() {
return SRSHandling;
}
/**
* Title used to identify FeatureType to user.
*
* @return FeatureType title
*/
public String getTitle() {
return title;
}
/**
* setAbstract purpose.
*
* <p>
* Description ...
* </p>
*
* @param string
*/
public void setAbstract(String string) {
_abstract = string;
}
/**
* setDataStore purpose.
*
* <p>
* Description ...
* </p>
*
* @param store
*/
public void setDataStoreId(String store) {
dataStoreId = store;
}
/**
* setKeywords purpose.
*
* <p>
* Description ...
* </p>
*
* @param list
*/
public void setKeywords(List list) {
keywords = list;
}
/**
* Sets the MetadataURL list for this feature type
*
* @param list
*/
public void setMetadataLinks(List list) {
metadataLinks = list;
}
/**
* setKeywords purpose.
*
* <p>
* Description ...
* </p>
*
* @param key
*
* @return boolean true when added.
*/
public boolean addKeyword(String key) {
if (keywords == null) {
keywords = new LinkedList();
}
return keywords.add(key);
}
/**
* setKeywords purpose.
*
* <p>
* Description ...
* </p>
*
* @param key
*
* @return true whwn removed
*/
public boolean removeKeyword(String key) {
return keywords.remove(key);
}
/**
* setLatLongBBox purpose.
*
* <p>
* Description ...
* </p>
*
* @param envelope
*/
public void setLatLongBBox(Envelope envelope) {
latLongBBox = envelope;
}
/**
* setName purpose.
*
* <p>
* Description ...
* </p>
*
* @param string
*/
public void setName(String string) {
name = string;
}
/**
* setSRS purpose.
*
* <p>
* Description ...
* </p>
*
* @param i
*/
public void setSRS(int i) {
SRS = i;
}
public void setSRSHandling(int i) {
SRSHandling = i;
}
/**
* setTitle purpose.
*
* <p>
* Description ...
* </p>
*
* @param string
*/
public void setTitle(String string) {
title = string;
}
/**
* getNumDecimals purpose.
*
* <p>
* Description ...
* </p>
*
* @return
*/
public int getNumDecimals() {
return numDecimals;
}
/**
* setNumDecimals purpose.
*
* <p>
* Description ...
* </p>
*
* @param i
*/
public void setNumDecimals(int i) {
numDecimals = i;
}
/**
* getDefinitionQuery purpose.
*
* <p>
* Description ...
* </p>
*
* @return
*/
public Filter getDefinitionQuery() {
return definitionQuery;
}
/**
* setDefinitionQuery purpose.
*
* <p>
* Description ...
* </p>
*
* @param filter
*/
public void setDefinitionQuery(Filter filter) {
definitionQuery = filter;
}
/**
* getDefaultStyle purpose.
*
* <p>
* Description ...
* </p>
*
* @return
*/
public String getDefaultStyle() {
//HACK: So our UI doesn't seem to allow the setting of styles or
//default styles or anything, despite the fact that shit chokes when none
//is present. This is making it so the beta release can not have any data
//stores added to it. This is a hacky ass way to get around it, just
//write out a normal style if it is null. This can obviously be done
//better, and I have no idea why this default style shit is required - wfs
//does not care about a style. Should be able to seamlessly at least do
//something for wms.
if ((defaultStyle == null) || defaultStyle.equals("")) {
defaultStyle = "normal";
}
return defaultStyle;
}
/**
* setDefaultStyle purpose.
*
* <p>
* Description ...
* </p>
*
* @param string
*/
public void setDefaultStyle(String string) {
defaultStyle = string;
}
/**
* getSchema purpose.
*
* <p>
* Returns An ordered list of AttributeTypeInfoDTOs
* </p>
*
* @return An ordered list of AttributeTypeInfoDTOs
*/
public List getSchemaAttributes() {
return schema;
}
/**
* setSchema purpose.
*
* <p>
* Stores a list of AttributeTypeInfoDTOs.
* </p>
*
* @param schemaElements An ordered list of AttributeTypeInfoDTOs
*/
public void setSchemaAttributes(List schemaElements) {
this.schema = schemaElements;
}
/**
* getDirName purpose.
*
* <p>
* Returns the featuretype directory name.
* </p>
*
* @return the featuretype directory name
*/
public String getDirName() {
return dirName;
}
/**
* setDirName purpose.
*
* <p>
* Description ...
* </p>
*
* @param string
*/
public void setDirName(String string) {
dirName = string;
}
/**
* getSchemaName purpose.
*
* <p>
* Description ...
* </p>
*
* @return
*/
public String getSchemaName() {
return schemaName;
}
/**
* setSchemaName purpose.
*
* <p>
* Description ...
* </p>
*
* @param string
*/
public void setSchemaName(String string) {
schemaName = string;
}
/**
* getSchemaBase purpose.
*
* <p>
* Usually generated as: getName + "_Type"
* </p>
*
* @return
*/
public String getSchemaBase() {
return schemaBase;
}
/**
* setSchemaBase purpose.
*
* <p>
* Description ...
* </p>
*
* @param string
*/
public void setSchemaBase(String string) {
schemaBase = string;
}
// Modif C. Kolbowicz - 06/10/2004
/**
* Gets a reference to an optional legend icon.
*
* @return Value of property legendURL.
*/
public LegendURLDTO getLegendURL() {
return this.legendURL;
}
//-- Modif C. Kolbowicz - 06/10/2004
// Modif C. Kolbowicz - 06/10/2004
/**
* Returns a reference to an optional legend icon.
*
* @param legendURL New value of property legendURL.
*/
public void setLegendURL(LegendURLDTO legendURL) {
this.legendURL = legendURL;
}
/**
* Gets the schema.xml file associated with this FeatureType. This is set
* during the reading of configuration, it is not persisted as an element
* of the FeatureTypeInfoDTO, since it is just whether the schema.xml file
* was persisted, and its location. If there is no schema.xml file then
* this method will return a File object with the location where the schema
* file would be located, but the file will return false for exists().
*/
public File getSchemaFile() {
return this.schemaFile;
}
/**
* Sets the schema file. Note that a non-exisiting file can be set here,
* to indicate that no schema.xml file is present.
*/
public void setSchemaFile(File schemaFile) {
this.schemaFile = schemaFile;
}
//-- Modif C. Kolbowicz - 06/10/2004
public String toString() {
return "[FeatureTypeInfoDTO: " + name + ", datastoreId: " + dataStoreId + ", latLongBBOX: "
+ latLongBBox + "\n SRS: " + SRS + ", schema:" + schema + ", schemaName: " + schemaName
+ ", dirName: " + dirName + ", title: " + title + "\n definitionQuery: " + definitionQuery
+ ", defaultStyle: " + defaultStyle + ", legend icon: " + legendURL + ", caching?: "
+ cachingEnabled + ", max-age: " + cacheMaxAge;
}
public String getWmsPath() {
return wmsPath;
}
public void setWmsPath(String wmsPath) {
this.wmsPath = wmsPath;
}
public boolean isCachingEnabled() {
return cachingEnabled;
}
public void setCachingEnabled(boolean cachingEnabled) {
this.cachingEnabled = cachingEnabled;
}
public String getCacheMaxAge() {
return cacheMaxAge;
}
public void setCacheMaxAge(String cacheMaxAge) {
this.cacheMaxAge = cacheMaxAge;
}
public ArrayList getStyles() {
return styles;
}
public void addStyle(String styleName) {
if (!styles.contains(styleName)) {
styles.add(styleName);
}
}
public void setStyles(ArrayList styles) {
this.styles = styles;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -