📄 coverageseditorform.java
字号:
//
// Ignore the parameters used for decimation at run time
//
// //
if (key.equalsIgnoreCase(readGeometryKey)) {
continue;
}
param = CoverageStoreUtils.find(info, key);
if (param == null) {
errors.add("paramValue[" + i + "]",
new ActionError("error.dataFormatEditor.param.missing", key,
factory.getDescription()));
continue;
}
maxSize = (Boolean) request.getAttribute(MultipartRequestHandler.ATTRIBUTE_MAX_LENGTH_EXCEEDED);
if ((maxSize != null) && (maxSize.booleanValue())) {
size = null;
cc = mapping.getModuleConfig().getControllerConfig();
if (cc == null) {
size = Long.toString(CommonsMultipartRequestHandler.DEFAULT_SIZE_MAX);
} else {
size = cc.getMaxFileSize(); // struts-config :
// <controller
// maxFileSize="nK" />
}
errors.add("styleID", new ActionError("error.file.maxLengthExceeded", size));
return errors;
}
value = CoverageUtils.getCvParamValue(key, param, paramValues, i);
if (value != null) {
connectionParams.put(key, value);
}
}
}
return errors;
}
/**
* Access Catalog Configuration Model from the WebContainer.
*
* @param request
*
* @return Configuration model for Catalog information.
*/
protected DataConfig getDataConfig(HttpServletRequest request) {
return (DataConfig) request.getSession().getServletContext()
.getAttribute(DataConfig.CONFIG_KEY);
}
/**
* @return Returns the defaultInterpolationMethod.
*/
public String getDefaultInterpolationMethod() {
return defaultInterpolationMethod;
}
/**
* @param defaultInterpolationMethod
* The defaultInterpolationMethod to set.
*/
public void setDefaultInterpolationMethod(String defaultInterpolationMethod) {
this.defaultInterpolationMethod = defaultInterpolationMethod;
}
/**
* @return Returns the description.
*/
public String getDescription() {
return description;
}
/**
* @param description
* The description to set.
*/
public void setDescription(String description) {
this.description = description;
}
/**
* @return Returns the keywords.
*/
public String getKeywords() {
return keywords;
}
/**
* @param keywords
* The keywords to set.
*/
public void setKeywords(String keywords) {
this.keywords = keywords;
}
/**
* @return Returns the label.
*/
public String getLabel() {
return label;
}
/**
* @param label
* The label to set.
*/
public void setLabel(String label) {
this.label = label;
}
/**
* @return Returns the boundingBoxMaxX.
*/
public String getMaxX() {
return boundingBoxMaxX;
}
/**
* @param boundingBoxMaxX
* The boundingBoxMaxX to set.
*/
public void setMaxX(String boundingBoxMaxX) {
this.boundingBoxMaxX = boundingBoxMaxX;
}
/**
* @return Returns the boundingBoxMaxY.
*/
public String getMaxY() {
return boundingBoxMaxY;
}
/**
* @param boundingBoxMaxY
* The boundingBoxMaxY to set.
*/
public void setMaxY(String boundingBoxMaxY) {
this.boundingBoxMaxY = boundingBoxMaxY;
}
/**
* @return Returns the boundingBoxMinX.
*/
public String getMinX() {
return boundingBoxMinX;
}
/**
* @param boundingBoxMinX
* The boundingBoxMinX to set.
*/
public void setMinX(String boundingBoxMinX) {
this.boundingBoxMinX = boundingBoxMinX;
}
/**
* @return Returns the boundingBoxMinY.
*/
public String getMinY() {
return boundingBoxMinY;
}
/**
* @param boundingBoxMinY
* The boundingBoxMinY to set.
*/
public void setMinY(String boundingBoxMinY) {
this.boundingBoxMinY = boundingBoxMinY;
}
/**
* @return Returns the name.
*/
public String getName() {
return name;
}
/**
* @param name
* The name to set.
*/
public void setName(String name) {
this.name = name;
}
/**
* @return Returns the nativeFormat.
*/
public String getNativeFormat() {
return nativeFormat;
}
/**
* @param nativeFormat
* The nativeFormat to set.
*/
public void setNativeFormat(String nativeFormat) {
this.nativeFormat = nativeFormat;
}
/**
* @return Returns the srsName.
*/
public String getSrsName() {
return srsName;
}
/**
* @param srsName
* The srsName to set.
*/
public void setSrsName(String srsName) {
this.srsName = srsName;
}
/**
* @return Returns the metadataLink.
*/
public String getMetadataLink() {
return metadataLink;
}
/**
* @param metadataLink
* The metadataLink to set.
*/
public void setMetadataLink(String metadataLink) {
this.metadataLink = metadataLink;
}
/**
* @return Returns the interpolationMethods.
*/
public String getInterpolationMethods() {
return interpolationMethods;
}
/**
* @param interpolationMethods
* The interpolationMethods to set.
*/
public void setInterpolationMethods(String interpolationMethods) {
this.interpolationMethods = interpolationMethods;
}
/**
* @return Returns the requestCRSs.
*/
public String getRequestCRSs() {
return requestCRSs;
}
/**
* @param requestCRSs
* The requestCRSs to set.
*/
public void setRequestCRSs(String requestCRSs) {
this.requestCRSs = requestCRSs;
}
/**
* @return Returns the responseCRSs.
*/
public String getResponseCRSs() {
return responseCRSs;
}
/**
* @param responseCRSs
* The responseCRSs to set.
*/
public void setResponseCRSs(String responseCRSs) {
this.responseCRSs = responseCRSs;
}
/**
* @return Returns the supportedFormats.
*/
public String getSupportedFormats() {
return supportedFormats;
}
/**
* @param supportedFormats
* The supportedFormats to set.
*/
public void setSupportedFormats(String supportedFormats) {
this.supportedFormats = supportedFormats;
}
/**
* @return Returns the action.
*/
public String getAction() {
return action;
}
/**
* @param action
* The action to set.
*/
public void setAction(String action) {
this.action = action;
}
/**
* @return Returns the formatId.
*/
public String getFormatId() {
return formatId;
}
/**
* @param formatId
* The formatId to set.
*/
public void setFormatId(String formatId) {
this.formatId = formatId;
}
/**
* @return Returns the newCoverage.
*/
public String getNewCoverage() {
return newCoverage;
}
/**
* @param newCoverage
* The newCoverage to set.
*/
public void setNewCoverage(String newCoverage) {
this.newCoverage = newCoverage;
}
public SortedSet getStyles() {
return styles;
}
public void setStyles(SortedSet styles) {
this.styles = styles;
}
public String getStyleId() {
return styleId;
}
public void setStyleId(String styleId) {
this.styleId = styleId;
}
public String getWKTString() {
return WKTString;
}
public void setWKTString(String string) {
WKTString = string;
}
public String getWmsPath() {
return wmsPath;
}
public void setWmsPath(String wmsPath) {
this.wmsPath = wmsPath;
}
/**
* @param paramHelp
* The paramHelp to set.
*/
public void setParamHelp(ArrayList paramHelp) {
this.paramHelp = paramHelp;
}
/**
* @return Returns the paramKeys.
*/
public List getParamKeys() {
return paramKeys;
}
/**
* @param paramKeys
* The paramKeys to set.
*/
public void setParamKeys(List paramKeys) {
this.paramKeys = paramKeys;
}
/**
* @return Returns the paramValues.
*/
public List getParamValues() {
return paramValues;
}
/**
* @param paramValues
* The paramValues to set.
*/
public void setParamValues(List paramValues) {
this.paramValues = paramValues;
}
public Map getParams() {
final Map map = new HashMap();
if (paramKeys != null) {
final int size = paramKeys.size();
for (int i = 0; i < size; i++) {
map.put(paramKeys.get(i), paramValues.get(i));
}
}
return map;
}
/**
* DOCUMENT ME!
*
* @param index
* DOCUMENT ME!
*
* @return
*/
public String getParamKey(int index) {
return (String) paramKeys.get(index).toString();
}
/**
* DOCUMENT ME!
*
* @param index
* DOCUMENT ME!
*
* @return
*/
public String getParamValue(int index) {
return (String) paramValues.get(index).toString();
}
/**
* @param paramKey
* The paramHelp to set.
*/
/*public void setParamKey(int index, String value) {
this.paramKeys.set(index, value);
}*/
/**
* @param paramValue
* The paramHelp to set.
*/
public void setParamValue(int index, String value) {
this.paramValues.set(index, value);
}
/**
* DOCUMENT ME!
*
* @param index
* @param value
* DOCUMENT ME!
*/
public void setParamValues(int index, String value) {
paramValues.set(index, value);
}
/**
* Index property paramHelp
*
* @return DOCUMENT ME!
*/
public String[] getParamHelp() {
return (String[]) paramHelp.toArray(new String[paramHelp.size()]);
}
/**
* Index property paramHelp
*
* @param index
* DOCUMENT ME!
*
* @return DOCUMENT ME!
*/
public String getParamHelp(int index) {
return (String) paramHelp.get(index).toString();
}
public String[] getOtherSelectedStyles() {
return otherSelectedStyles;
}
public void setOtherSelectedStyles(String[] otherSelectedStyles) {
this.otherSelectedStyles = otherSelectedStyles;
}
public SortedSet getPanelStyleIds() {
return panelStyleIds;
}
public SortedSet getTypeStyles() {
return typeStyles;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -