Merge pull request #135 from eblondel/master-134-featureDimensionInfo-endAttribute-encoding
Extend GSFeatureDimensionInfoEncoder with endAttribute. Close #134.
This commit is contained in:
commit
b9aae2620b
@ -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);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user