it.geosolutions.geoserver.rest.encoder.metadata
Class GSDimensionInfoEncoder

java.lang.Object
  extended by it.geosolutions.geoserver.rest.encoder.utils.XmlElement
      extended by it.geosolutions.geoserver.rest.encoder.metadata.GSDimensionInfoEncoder
Direct Known Subclasses:
GSFeatureDimensionInfoEncoder

public class GSDimensionInfoEncoder
extends XmlElement

Author:
Carlo Cancellieri - carlo.cancellieri@geo-solutions.it, Simone Giannecchini, GeoSolutions

Nested Class Summary
static class GSDimensionInfoEncoder.Presentation
          Enum for presentation mode
 
Field Summary
static String DIMENSIONINFO
           
static String PRESENTATION
           
static String RESOLUTION
           
static String UNIT_SYMBOL
           
static String UNITS
           
 
Constructor Summary
GSDimensionInfoEncoder()
          build an not enabled dimension
GSDimensionInfoEncoder(boolean enabled)
          Build a dimension
 
Method Summary
protected  void addPresentation(GSDimensionInfoEncoder.Presentation pres, BigDecimal interval)
           
 void setEnabled(boolean enabled)
           
 void setPresentation(GSDimensionInfoEncoder.Presentation pres)
           
 void setPresentation(GSDimensionInfoEncoder.Presentation pres, BigDecimal interval)
           
 void setUnit(String unit)
          Set UoM for this dimension.
 void setUnitSymbol(String unitSymbol)
          Set UoM for this dimension.
 
Methods inherited from class it.geosolutions.geoserver.rest.encoder.utils.XmlElement
add, add, addContent, getRoot, isEmpty, remove, set, set, setRoot, setRoot, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

DIMENSIONINFO

public static final String DIMENSIONINFO
See Also:
Constant Field Values

RESOLUTION

public static final String RESOLUTION
See Also:
Constant Field Values

PRESENTATION

public static final String PRESENTATION
See Also:
Constant Field Values

UNITS

public static final String UNITS
See Also:
Constant Field Values

UNIT_SYMBOL

public static final String UNIT_SYMBOL
See Also:
Constant Field Values
Constructor Detail

GSDimensionInfoEncoder

public GSDimensionInfoEncoder(boolean enabled)
Build a dimension

Parameters:
enabled - enable dimension if true

GSDimensionInfoEncoder

public GSDimensionInfoEncoder()
build an not enabled dimension

Method Detail

setEnabled

public void setEnabled(boolean enabled)

setPresentation

public void setPresentation(GSDimensionInfoEncoder.Presentation pres)

addPresentation

protected void addPresentation(GSDimensionInfoEncoder.Presentation pres,
                               BigDecimal interval)
Parameters:
pres -
interval -

setPresentation

public void setPresentation(GSDimensionInfoEncoder.Presentation pres,
                            BigDecimal interval)

setUnit

public void setUnit(String unit)
Set UoM for this dimension. null is acceptable and leave this UoM blank.

Parameters:
unit - UoM for this dimension.

setUnitSymbol

public void setUnitSymbol(String unitSymbol)
Set UoM for this dimension. null is acceptable and leave this UoM blank.

Parameters:
unit - UoM for this dimension.


Copyright © 2007-2014 GeoSolutions. All Rights Reserved.