public class GSMetadataLinkInfoEncoder extends XmlElement
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 and Description |
|---|
GSMetadataLinkInfoEncoder()
Constructs a new GSMetadataLinkInfoEncoder
|
GSMetadataLinkInfoEncoder(String type,
String metadataType,
String content)
Constructs quickly a MetadataLink info
|
| Modifier and Type | Method and Description |
|---|---|
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
|
public GSMetadataLinkInfoEncoder()
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 - typepublic boolean delContent()
content - protected String getMember(ResourceMetadataLinkInfo type)
type - public String getType()
public String getMetadataType()
public String getContent()
Copyright © 2007–2016 PDOK. All rights reserved.