Package org.gbif.api.model.registry.eml
Class DataDescription
- java.lang.Object
-
- org.gbif.api.model.registry.eml.DataDescription
-
- All Implemented Interfaces:
Serializable
public class DataDescription extends Object implements Serializable
Describes the format of externally available data on a URL.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DataDescription()DataDescription(String name, String charset, URI url, String format, String formatVersion)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)StringgetCharset()The name of the character encoding.StringgetFormat()The name of the format of the data object, e.g., Microsoft Excel.StringgetFormatVersion()The version of the format of the data object, e.g., 2000 (9.0.2720).StringgetName()The name representing the data object being described.URIgetUrl()The URL to download the resource in the mentioned format.inthashCode()voidsetCharset(String charset)voidsetFormat(String format)voidsetFormatVersion(String formatVersion)voidsetName(String name)voidsetUrl(URI url)StringtoString()
-
-
-
Constructor Detail
-
DataDescription
public DataDescription()
-
-
Method Detail
-
getCharset
public String getCharset()
The name of the character encoding. This is typically ASCII or UTF-8, or one of the other common encodings.- Returns:
- the character encoding
-
setCharset
public void setCharset(String charset)
-
getFormat
public String getFormat()
The name of the format of the data object, e.g., Microsoft Excel.- Returns:
- the data format
-
getFormatVersion
public String getFormatVersion()
The version of the format of the data object, e.g., 2000 (9.0.2720).- Returns:
- the data format version
-
setFormatVersion
public void setFormatVersion(String formatVersion)
-
getName
public String getName()
The name representing the data object being described.- Returns:
- the data object name
-
getUrl
public URI getUrl()
The URL to download the resource in the mentioned format.- Returns:
- the download URL
-
-