it.geosolutions.geoserver.rest.decoder.RESTDimensionInfo Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of geoserver-manager Show documentation
Show all versions of geoserver-manager Show documentation
GeoServer Manager is a library to interact with GeoServer
The scope of this library is to have a simple API, and use as few external
libs as possible.
/*
* GeoBatch - Open Source geospatial batch processing system
* https://github.com/nfms4redd/nfms-geobatch
* Copyright (C) 2007-2012 GeoSolutions S.A.S.
* http://www.geo-solutions.it
*
* GPLv3 + Classpath exception
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*/
package it.geosolutions.geoserver.rest.decoder;
import org.jdom.Element;
/**
* RESTDimensionInfo class.
*
* @author DamianoG
* @version $Id: $
*/
public class RESTDimensionInfo extends RESTMetadataList.RESTMetadataElement{
private boolean enabled;
private String presentation;
private String resolution;
/** Constant TIME="time"
*/
public static final String TIME = "time";
/** Constant ELEVATION="elevation"
*/
public static final String ELEVATION = "elevation";
/**
* Constructor for RESTDimensionInfo.
*
* @param elem a {@link org.jdom.Element} object.
*/
public RESTDimensionInfo(Element elem) {
super(elem);
if(elem.getChild("dimensionInfo")!=null){
enabled = Boolean.parseBoolean(elem.getChild("dimensionInfo").getChildText("enabled"));
presentation = elem.getChild("dimensionInfo").getChildText("presentation");
resolution = elem.getChild("dimensionInfo").getChildText("resolution");
}
}
/**
* isEnabled
*
* @return the enabled
*/
public boolean isEnabled() {
return enabled;
}
/**
* Setter for the field enabled
.
*
* @param enabled the enabled to set
*/
public void setEnabled(boolean enabled) {
this.enabled = enabled;
}
/**
* Getter for the field presentation
.
*
* @return the presentation
*/
public String getPresentation() {
return presentation;
}
/**
* Setter for the field presentation
.
*
* @param presentation the presentation to set
*/
public void setPresentation(String presentation) {
this.presentation = presentation;
}
/**
* Getter for the field resolution
.
*
* @return the resolution
*/
public String getResolution() {
return resolution;
}
/**
* Setter for the field resolution
.
*
* @param resolution the resolution to set
*/
public void setResolution(String resolution) {
this.resolution = resolution;
}
}