org.dataconservancy.ui.model.DataItem.getDescription()方法的使用及代码示例

x33g5p2x  于2022-01-18 转载在 其他  
字(4.4k)|赞(0)|评价(0)|浏览(140)

本文整理了Java中org.dataconservancy.ui.model.DataItem.getDescription()方法的一些代码示例,展示了DataItem.getDescription()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。DataItem.getDescription()方法的具体详情如下:
包路径:org.dataconservancy.ui.model.DataItem
类名称:DataItem
方法名:getDescription

DataItem.getDescription介绍

暂无

代码示例

代码示例来源:origin: org.dataconservancy.dcs/dcs-mhf-finders-impl

@Override
protected MetadataAttributeSet findCoreMetadata(BusinessObject bo) {
  checkObjectType(bo);
  final DataItem dataItem = (DataItem) bo;
  final MetadataAttributeSet attributeSet = super.findCoreMetadata(dataItem);
  attributeSet.setName(MetadataAttributeSetName.DATAITEM_CORE_METADATA);
  if (dataItem.getName() != null) {
    attributeSet.addAttribute(new MetadataAttribute(MetadataAttributeName.TITLE, dataItem.getName().getClass().getSimpleName(), dataItem.getName()));
  }
  if (dataItem.getDescription() != null) {
    attributeSet.addAttribute(new MetadataAttribute(MetadataAttributeName.DESCRIPTION, dataItem.getDescription().getClass().getSimpleName(), dataItem.getDescription()));
  }
  //TODO: should be removed, as business id is already set by the super class's method.
  if (dataItem.getId() != null) {
    attributeSet.addAttribute(new MetadataAttribute(MetadataAttributeName.BUSINESS_ID, MetadataAttributeType.STRING, dataItem.getId()));
  }
  return attributeSet;
}

代码示例来源:origin: org.dataconservancy.mhf/dcs-mhf-finders-impl

@Override
protected MetadataAttributeSet findCoreMetadata(BusinessObject bo) {
  checkObjectType(bo);
  final DataItem dataItem = (DataItem) bo;
  final MetadataAttributeSet attributeSet = super.findCoreMetadata(dataItem);
  attributeSet.setName(MetadataAttributeSetName.DATAITEM_CORE_METADATA);
  if (dataItem.getName() != null) {
    attributeSet.addAttribute(new MetadataAttribute(MetadataAttributeName.TITLE, dataItem.getName().getClass().getSimpleName(), dataItem.getName()));
  }
  if (dataItem.getDescription() != null) {
    attributeSet.addAttribute(new MetadataAttribute(MetadataAttributeName.DESCRIPTION, dataItem.getDescription().getClass().getSimpleName(), dataItem.getDescription()));
  }
  //TODO: should be removed, as business id is already set by the super class's method.
  if (dataItem.getId() != null) {
    attributeSet.addAttribute(new MetadataAttribute(MetadataAttributeName.BUSINESS_ID, MetadataAttributeType.STRING, dataItem.getId()));
  }
  return attributeSet;
}

代码示例来源:origin: org.dataconservancy.model/dcs-ui-model

/**
 * Constructs a DataItem, initializing this state with {@code toCopy}.
 */
public DataItem(DataItem toCopy) {
  this.name = toCopy.getName();
  this.description = toCopy.getDescription();
  this.id = toCopy.getId();
  this.depositorID = toCopy.getDepositorId();
  this.depositDate = toCopy.getDepositDate();
  this.files = toCopy.getFiles();
  this.parentId = toCopy.getParentId();
  this.alternateIds = toCopy.getAlternateIds();
  this.citableLocator = toCopy.getCitableLocator();
  this.contentModel = toCopy.getContentModel();
  this.creators = toCopy.getCreators();
  this.contactInfos = toCopy.getContactInfos();
  this.createdDate = toCopy.getCreatedDate();
  this.modifiedDate = toCopy.getModifiedDate();
}

代码示例来源:origin: org.dataconservancy.dcs/dcs-ui-model

/**
 * Constructs a DataItem, initializing this state with {@code toCopy}.
 */
public DataItem(DataItem toCopy) {
  this.name = toCopy.getName();
  this.description = toCopy.getDescription();
  this.id = toCopy.getId();
  this.depositorID = toCopy.getDepositorId();
  this.depositDate = toCopy.getDepositDate();
  this.files = toCopy.getFiles();
  this.parentId = toCopy.getParentId();
  this.alternateIds = toCopy.getAlternateIds();
  this.citableLocator = toCopy.getCitableLocator();
  this.contentModel = toCopy.getContentModel();
  this.creators = toCopy.getCreators();
  this.contactInfos = toCopy.getContactInfos();
  this.createdDate = toCopy.getCreatedDate();
  this.modifiedDate = toCopy.getModifiedDate();
}

代码示例来源:origin: org.dataconservancy.model/dcs-ui-model-builder-xstream

if (!isEmptyOrNull(dataItemSource.getDescription())) {
  writer.startNode(E_DESCRIPTION);
  writer.setValue(dataItemSource.getDescription());
  writer.endNode();

代码示例来源:origin: org.dataconservancy.dcs/dcs-ui-model-builder-xstream

if (!isEmptyOrNull(dataItemSource.getDescription())) {
  writer.startNode(E_DESCRIPTION);
  writer.setValue(dataItemSource.getDescription());
  writer.endNode();

代码示例来源:origin: org.dataconservancy.model/dcs-ui-model-builder-xstream

if (!isEmptyOrNull(dataItemSource.getDescription())) {
  writer.startNode(E_DESCRIPTION);
  writer.setValue(dataItemSource.getDescription());
  writer.endNode();

代码示例来源:origin: org.dataconservancy.dcs/dcs-ui-model-builder-xstream

if (!isEmptyOrNull(dataItemSource.getDescription())) {
  writer.startNode(E_DESCRIPTION);
  writer.setValue(dataItemSource.getDescription());
  writer.endNode();

相关文章