|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectit.geosolutions.geoserver.rest.encoder.utils.XmlElement
it.geosolutions.geoserver.rest.encoder.utils.PropertyXMLEncoder
it.geosolutions.geoserver.rest.encoder.GSResourceEncoder
public abstract class GSResourceEncoder
Encode a GeoServer resource.
GSDimensionInfoEncoder
,
GSFeatureDimensionInfoEncoder
Nested Class Summary | |
---|---|
static class |
GSResourceEncoder.ProjectionPolicy
NONE, REPROJECT_TO_DECLARED, FORCE_DECLARED |
Field Summary | |
---|---|
static String |
KEYWORDS
|
static String |
METADATA
|
static String |
NAME
|
Constructor Summary | |
---|---|
protected |
GSResourceEncoder(String rootName)
|
Method Summary | |
---|---|
void |
addKeyword(String keyword)
|
protected void |
addLatLonBoundingBox(double minx,
double miny,
double maxx,
double maxy,
String crs)
|
protected void |
addMetadata(String key,
XmlElement dimensionInfo)
|
protected void |
addName(String name)
Add the 'name' node with a text value from 'name' |
protected void |
addNativeBoundingBox(double minx,
double miny,
double maxx,
double maxy,
String crs)
|
protected void |
addProjectionPolicy(GSResourceEncoder.ProjectionPolicy policy)
NONE, REPROJECT_TO_DECLARED, FORCE_DECLARED |
protected void |
addSRS(String srs)
Add the 'SRS' node with a text value from 'srs' |
protected void |
addTitle(String title)
Add the 'title' node with a text value from 'title' |
boolean |
delKeyword(String keyword)
delete a keyword from the list |
boolean |
delMetadata(String key)
|
String |
getName()
|
void |
setEnabled(boolean enabled)
|
void |
setLatLonBoundingBox(double minx,
double miny,
double maxx,
double maxy,
String crs)
|
void |
setMetadata(String key,
XmlElement dimensionInfo)
|
void |
setName(String name)
Set or modify the 'name' node with a text value from 'name' |
void |
setNativeBoundingBox(double minx,
double miny,
double maxx,
double maxy,
String crs)
|
void |
setProjectionPolicy(GSResourceEncoder.ProjectionPolicy policy)
NONE, REPROJECT_TO_DECLARED, FORCE_DECLARED |
void |
setSRS(String srs)
Set or modify the 'SRS' node with a text value from 'srs' |
void |
setTitle(String title)
Set or modify the 'title' node with a text value from 'title' |
Methods inherited from class it.geosolutions.geoserver.rest.encoder.utils.PropertyXMLEncoder |
---|
add, get, get, set |
Methods inherited from class it.geosolutions.geoserver.rest.encoder.utils.XmlElement |
---|
add, addContent, getRoot, isEmpty, remove, set, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final String NAME
public static final String METADATA
public static final String KEYWORDS
Constructor Detail |
---|
protected GSResourceEncoder(String rootName)
rootName
- Actually 'feature' or 'coverage'GSFeatureTypeEncoder
,
GSCoverageEncoder
Method Detail |
---|
public void setEnabled(boolean enabled)
protected void addMetadata(String key, XmlElement dimensionInfo)
key
- dimensionInfo
- public void setMetadata(String key, XmlElement dimensionInfo)
public boolean delMetadata(String key)
key
- the name of the metadata to add (f.e.: elevation, time)
public void addKeyword(String keyword)
public boolean delKeyword(String keyword)
keyword
-
protected void addProjectionPolicy(GSResourceEncoder.ProjectionPolicy policy)
public void setProjectionPolicy(GSResourceEncoder.ProjectionPolicy policy)
protected void addName(String name)
public void setName(String name)
public String getName()
protected void addTitle(String title)
public void setTitle(String title)
protected void addSRS(String srs)
public void setSRS(String srs)
protected void addLatLonBoundingBox(double minx, double miny, double maxx, double maxy, String crs)
minx
- maxy
- maxx
- miny
- crs
- public void setLatLonBoundingBox(double minx, double miny, double maxx, double maxy, String crs)
protected void addNativeBoundingBox(double minx, double miny, double maxx, double maxy, String crs)
minx
- maxy
- maxx
- miny
- crs
- public void setNativeBoundingBox(double minx, double miny, double maxx, double maxy, String crs)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |