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 boolean
equals(Object o)
String
getCharset()
The name of the character encoding.String
getFormat()
The name of the format of the data object, e.g., Microsoft Excel.String
getFormatVersion()
The version of the format of the data object, e.g., 2000 (9.0.2720).String
getName()
The name representing the data object being described.URI
getUrl()
The URL to download the resource in the mentioned format.int
hashCode()
void
setCharset(String charset)
void
setFormat(String format)
void
setFormatVersion(String formatVersion)
void
setName(String name)
void
setUrl(URI url)
String
toString()
-
-
-
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
-
-