Class GSDimensionInfoEncoder
- java.lang.Object
-
- it.geosolutions.geoserver.rest.encoder.utils.XmlElement
-
- it.geosolutions.geoserver.rest.encoder.metadata.GSDimensionInfoEncoder
-
- Direct Known Subclasses:
GSFeatureDimensionInfoEncoder
public class GSDimensionInfoEncoder extends XmlElement
GSDimensionInfoEncoder class.
- Version:
- $Id: $
- Author:
- Carlo Cancellieri - carlo.cancellieri@geo-solutions.it, Simone Giannecchini, GeoSolutions
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGSDimensionInfoEncoder.PresentationEnum for presentation mode
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringDIMENSIONINFOConstantDIMENSIONINFO="dimensionInfo"static java.lang.StringPRESENTATIONConstantPRESENTATION="presentation"static java.lang.StringRESOLUTIONConstantRESOLUTION="resolution"static java.lang.StringUNIT_SYMBOLConstantUNIT_SYMBOL="unitSymbol"static java.lang.StringUNITSConstantUNITS="units"
-
Constructor Summary
Constructors Constructor Description GSDimensionInfoEncoder()build an not enabled dimensionGSDimensionInfoEncoder(boolean enabled)Build a dimension.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddPresentation(GSDimensionInfoEncoder.Presentation pres, java.math.BigDecimal interval)addPresentationvoidsetEnabled(boolean enabled)Setter for the fieldenabled.voidsetPresentation(GSDimensionInfoEncoder.Presentation pres)setPresentationvoidsetPresentation(GSDimensionInfoEncoder.Presentation pres, java.math.BigDecimal interval)setPresentationvoidsetUnit(java.lang.String unit)Set UoM for this dimension.voidsetUnitSymbol(java.lang.String unitSymbol)Set UoM for this dimension.
-
-
-
Field Detail
-
DIMENSIONINFO
public static final java.lang.String DIMENSIONINFO
ConstantDIMENSIONINFO="dimensionInfo"- See Also:
- Constant Field Values
-
RESOLUTION
public static final java.lang.String RESOLUTION
ConstantRESOLUTION="resolution"- See Also:
- Constant Field Values
-
PRESENTATION
public static final java.lang.String PRESENTATION
ConstantPRESENTATION="presentation"- See Also:
- Constant Field Values
-
UNITS
public static final java.lang.String UNITS
ConstantUNITS="units"- See Also:
- Constant Field Values
-
UNIT_SYMBOL
public static final java.lang.String UNIT_SYMBOL
ConstantUNIT_SYMBOL="unitSymbol"- See Also:
- Constant Field Values
-
-
Method Detail
-
setEnabled
public void setEnabled(boolean enabled)
Setter for the field
enabled.- Parameters:
enabled- a boolean.
-
setPresentation
public void setPresentation(GSDimensionInfoEncoder.Presentation pres)
setPresentation
- Parameters:
pres- aGSDimensionInfoEncoder.Presentationobject.
-
addPresentation
protected void addPresentation(GSDimensionInfoEncoder.Presentation pres, java.math.BigDecimal interval)
addPresentation
- Parameters:
pres- aGSDimensionInfoEncoder.Presentationobject.interval- aBigDecimalobject.
-
setPresentation
public void setPresentation(GSDimensionInfoEncoder.Presentation pres, java.math.BigDecimal interval)
setPresentation
- Parameters:
pres- aGSDimensionInfoEncoder.Presentationobject.interval- aBigDecimalobject.
-
setUnit
public void setUnit(java.lang.String unit)
Set UoM for this dimension.nullis acceptable and leave this UoM blank.- Parameters:
unit- UoM for this dimension.
-
setUnitSymbol
public void setUnitSymbol(java.lang.String unitSymbol)
Set UoM for this dimension.nullis acceptable and leave this UoM blank.- Parameters:
unitSymbol- UoM for this dimension.
-
-