|
||||||||||
| 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.metadatalink.GSMetadataLinkInfoEncoder
public class GSMetadataLinkInfoEncoder
GSMetadataLinkEncoder - encodes a metadataLink for a given GeoServer Resource (feature type /coverage), as follows:
final GSMetadataLinkInfoEncoder mde = new GSMetadataLinkInfoEncoder();
mde.setType("text/xml");
mde.setMetadataType("ISO19115:2003");
mde.setContent("http://www.organization.org/metadata");
For this example, the XML output is:
<metadataLink>
<type>text/xml</type>
<metadataType>ISO19115:2003</metadataType>
<content>http://www.organization.org/metadata</content>
</metadataLink>
| Constructor Summary | |
|---|---|
GSMetadataLinkInfoEncoder()
Constructs a new GSMetadataLinkInfoEncoder |
|
GSMetadataLinkInfoEncoder(String type,
String metadataType,
String content)
Constructs quickly a MetadataLink info |
|
| Method Summary | |
|---|---|
boolean |
delContent()
Deletes the content |
protected boolean |
delMember(ResourceMetadataLinkInfo type)
Deletes a MetadataLinkInfo member |
boolean |
delMetadataType()
Deletes the metadata type |
boolean |
delType()
Deletes the type |
String |
getContent()
Get the content |
static org.jdom.filter.Filter |
getFilterByContent(String content)
Get a Filter using the MetadataLinkInfo content (metadataURL) |
protected String |
getMember(ResourceMetadataLinkInfo type)
Get the value of the MetadataLinkInfo member |
String |
getMetadataType()
Get the metadata type |
String |
getType()
Get the mime type |
void |
setContent(String content)
Set the content |
protected void |
setMember(ResourceMetadataLinkInfo type,
String value)
Set a MetadataLinkInfo member (type, metadataType or content) |
void |
setMetadataType(String metadataType)
Set the metadata type |
void |
setType(String type)
Set the mime type |
protected void |
setup(String type,
String metadataType,
String content)
Set-up quickly a metadataLinkInfo |
| 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 |
| Constructor Detail |
|---|
public GSMetadataLinkInfoEncoder()
public GSMetadataLinkInfoEncoder(String type,
String metadataType,
String content)
type - (required)metadataType - (required)content - (required)| Method Detail |
|---|
public static org.jdom.filter.Filter getFilterByContent(String content)
content -
protected void setup(String type,
String metadataType,
String content)
type - metadataType - content -
protected void setMember(ResourceMetadataLinkInfo type,
String value)
type - value - public void setType(String type)
type - public void setMetadataType(String metadataType)
metadataType - public void setContent(String content)
content - protected boolean delMember(ResourceMetadataLinkInfo type)
type -
public boolean delType()
type -
public boolean delMetadataType()
metadata - type
public boolean delContent()
content -
protected String getMember(ResourceMetadataLinkInfo type)
type -
public String getType()
public String getMetadataType()
public String getContent()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||