本文整理汇总了Java中org.gbif.api.model.registry.eml.DataDescription类的典型用法代码示例。如果您正苦于以下问题:Java DataDescription类的具体用法?Java DataDescription怎么用?Java DataDescription使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
DataDescription类属于org.gbif.api.model.registry.eml包,在下文中一共展示了DataDescription类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: createDataDescription
import org.gbif.api.model.registry.eml.DataDescription; //导入依赖的package包/类
protected DataDescription createDataDescription() {
// link back to archive
DataDescription dataDescription = new DataDescription();
dataDescription.setName(DATA_DESC_FORMAT);
dataDescription.setFormat(DATA_DESC_FORMAT);
dataDescription.setCharset(Charsets.UTF_8.displayName());
try {
dataDescription.setUrl(new URI(workflowConfiguration.getDownloadLink(configuration.getDownloadKey())));
} catch (URISyntaxException e) {
LOG.error(String.format("Wrong url %s", workflowConfiguration.getDownloadLink(configuration.getDownloadKey())),
e);
}
return dataDescription;
}
示例2: getDataDescriptions
import org.gbif.api.model.registry.eml.DataDescription; //导入依赖的package包/类
public List<DataDescription> getDataDescriptions() {
return dataDescriptions;
}
示例3: setDataDescriptions
import org.gbif.api.model.registry.eml.DataDescription; //导入依赖的package包/类
public void setDataDescriptions(List<DataDescription> dataDescriptions) {
this.dataDescriptions = dataDescriptions;
}