public abstract class GSResourceEncoder extends PropertyXMLEncoder
GSDimensionInfoEncoder,
GSFeatureDimensionInfoEncoder| Modifier and Type | Class and Description |
|---|---|
static class |
GSResourceEncoder.ProjectionPolicy
Reprojection policy for a published layer.
|
| Modifier and Type | Field and Description |
|---|---|
static String |
KEYWORDS |
static String |
METADATA |
static String |
METADATALINKS |
static String |
NAME |
static String |
NATIVENAME |
| Modifier | Constructor and Description |
|---|---|
protected |
GSResourceEncoder(String rootName) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addAbstract(String _abstract)
Add the 'abstract' node with a text value from 'abstract'
|
protected void |
addDescription(String description)
Add the 'description' node with a text value from 'description'
|
void |
addKeyword(String keyword) |
void |
addKeyword(String keyword,
String language,
String vocabulary)
<keywords>
<string>WCS</string>
<string>ImageMosaic</string>
<string>srtm30</string> <string> KEYWORD\@language={LANGUAGE}\;\@vocabulary={VOCABULARY}\;
|
protected void |
addLatLonBoundingBox(double minx,
double miny,
double maxx,
double maxy,
String crs) |
protected void |
addMetadata(String key,
XmlElement dimensionInfo) |
protected void |
addMetadataDimension(String key,
GSDimensionInfoEncoder dimensionInfo) |
protected void |
addMetadataDimension(String key,
GSDimensionInfoEncoder dimensionInfo,
boolean custom)
Add the metadata for a custom dimension.
|
void |
addMetadataLinkInfo(GSMetadataLinkInfoEncoder metadataLinkInfo)
Adds a MetadataLinkInfo to the GeoServer Resource
|
void |
addMetadataLinkInfo(String type,
String metadataType,
String content)
Adds quickly a MetadataLinkInfo to the GeoServer Resource
|
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 |
addNativeCRS(String nativeCRS)
Add the 'nativeCRS' node with a text value from 'nativeCRS'
|
protected void |
addNativeName(String nativename)
Add the 'nativename' node with a text value from 'name'
|
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 |
delKeyword(String keyword,
String language,
String vocabulary)
delete a keyword from the list
|
boolean |
delMetadata(String key) |
boolean |
delMetadataLinkInfo(String metadataURL)
Deletes a metadataLinkInfo from the list using the metadataURL (MetadataLinkInfo content)
|
String |
getName() |
String |
getNativeName()
Get the nativeName
|
void |
setAbstract(String _abstract)
Set or modify the 'abstract' node with a text value from 'abstract'
|
void |
setDescription(String description)
Set or modify the 'description' node with a text value from 'description'
|
void |
setEnabled(boolean enabled) |
void |
setLatLonBoundingBox(double minx,
double miny,
double maxx,
double maxy,
String crs) |
void |
setMetadata(String key,
XmlElement dimensionInfo)
Deprecated.
Use
setMetadataDimension(String, GSDimensionInfoEncoder) this method will be set as protected for internal use only |
void |
setMetadataDimension(String key,
GSDimensionInfoEncoder dimensionInfo) |
void |
setMetadataDimension(String key,
GSDimensionInfoEncoder dimensionInfo,
boolean custom)
Set the metadata for a custom dimension.
|
void |
setMetadataString(String key,
String value) |
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 |
setNativeCRS(String nativeCRS)
Set or modify the 'nativeCRS' node with a text value from 'nativeCRS'
|
void |
setNativeName(String nativename)
Set or modify the 'nativename' node with a text value from 'name'
|
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'
|
add, createElementWithAttribute, get, get, setadd, addContent, getRoot, isEmpty, remove, set, setRoot, setRoot, toStringpublic static final String NAME
public static final String NATIVENAME
public static final String METADATA
public static final String KEYWORDS
public static final String METADATALINKS
protected GSResourceEncoder(String rootName)
rootName - Actually 'feature' or 'coverage'GSFeatureTypeEncoder,
GSCoverageEncoderpublic void setEnabled(boolean enabled)
protected void addMetadata(String key, XmlElement dimensionInfo)
key - dimensionInfo - public void setMetadata(String key, XmlElement dimensionInfo)
setMetadataDimension(String, GSDimensionInfoEncoder) this method will be set as protected for internal use onlykey - dimensionInfo - protected void addMetadataDimension(String key, GSDimensionInfoEncoder dimensionInfo)
key - dimensionInfo - protected void addMetadataDimension(String key, GSDimensionInfoEncoder dimensionInfo, boolean custom)
key - the name of the dimensiondimensionInfo - GSDimensionInfoEncoder with additional information about the dimensioncustom - is the dimension custom or not?public void setMetadataDimension(String key, GSDimensionInfoEncoder dimensionInfo)
public void setMetadataDimension(String key, GSDimensionInfoEncoder dimensionInfo, boolean custom)
key - the name of the dimensiondimensionInfo - GSDimensionInfoEncoder with additional information about the dimensioncustom - is the dimension custom or not?public boolean delMetadata(String key)
key - the name of the metadata to add (f.e.: elevation, time)public void addKeyword(String keyword)
public void addKeyword(String keyword, String language, String vocabulary)
<keywords>
<string>WCS</string>
<string>ImageMosaic</string>
<string>srtm30</string> <string> KEYWORD\@language={LANGUAGE}\;\@vocabulary={VOCABULARY}\;
keyword - mandatory keyword ('\' characters are not permitted)language - optional parametervocabulary - optional parameterpublic boolean delKeyword(String keyword)
keyword - public boolean delKeyword(String keyword, String language, String vocabulary)
keyword - public void addMetadataLinkInfo(GSMetadataLinkInfoEncoder metadataLinkInfo)
MetadataLink - public void addMetadataLinkInfo(String type, String metadataType, String content)
type - metadataType - content - public boolean delMetadataLinkInfo(String metadataURL)
metadataURL - 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 addNativeName(String nativename)
public void setNativeName(String nativename)
public String getNativeName()
protected void addDescription(String description)
public void setDescription(String description)
protected void addAbstract(String _abstract)
public void setAbstract(String _abstract)
protected void addTitle(String title)
public void setTitle(String title)
protected void addSRS(String srs)
public void setSRS(String srs)
protected void addNativeCRS(String nativeCRS)
public void setNativeCRS(String nativeCRS)
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)
Copyright © 2007–2016 PDOK. All rights reserved.