Merge pull request #135 from eblondel/master-134-featureDimensionInfo-endAttribute-encoding

Extend GSFeatureDimensionInfoEncoder with endAttribute. Close #134.
This commit is contained in:
Emanuele Tajariol 2014-07-10 13:22:05 +02:00
commit b9aae2620b

View File

@ -28,6 +28,7 @@ package it.geosolutions.geoserver.rest.encoder.metadata;
public class GSFeatureDimensionInfoEncoder extends GSDimensionInfoEncoder { public class GSFeatureDimensionInfoEncoder extends GSDimensionInfoEncoder {
public final static String ATTRIBUTE="attribute"; public final static String ATTRIBUTE="attribute";
public final static String END_ATTRIBUTE="endAttribute";
/** /**
* if this dimension is enabled this constructor should be called. * if this dimension is enabled this constructor should be called.
@ -46,6 +47,12 @@ public class GSFeatureDimensionInfoEncoder extends GSDimensionInfoEncoder {
set(ATTRIBUTE, attribute); set(ATTRIBUTE, attribute);
} }
/**
* Set the end attribute used in the dimension (optional)
* @param endAttribute the dimension end attribute
*/
public void setEndAttribute(final String endAttribute){
set(END_ATTRIBUTE, endAttribute);
}
} }