本文整理了Java中org.dataconservancy.ui.model.DataItem.setDescription()
方法的一些代码示例,展示了DataItem.setDescription()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。DataItem.setDescription()
方法的具体详情如下:
包路径:org.dataconservancy.ui.model.DataItem
类名称:DataItem
方法名:setDescription
[英]Sets the description of the dataset.
[中]设置数据集的描述。
代码示例来源:origin: org.dataconservancy.dcs/dcs-ui-model-builder-xstream
final String value = reader.getValue();
if (!isEmptyOrNull(value)) {
dataItemObject.setDescription(value.trim());
代码示例来源:origin: org.dataconservancy.model/dcs-ui-model-builder-xstream
final String value = reader.getValue();
if (!isEmptyOrNull(value)) {
dataItemObject.setDescription(value.trim());
代码示例来源:origin: org.dataconservancy.dcs/dcs-ui-model-builder-xstream
final String value = reader.getValue();
if (!isEmptyOrNull(value)) {
dataItemObject.setDescription(value.trim());
代码示例来源:origin: org.dataconservancy.model/dcs-ui-model-builder-xstream
final String value = reader.getValue();
if (!isEmptyOrNull(value)) {
dataItemObject.setDescription(value.trim());
代码示例来源:origin: org.dataconservancy.frontend/dcs-ui-test-support-model
dataItemOne.setDescription("data item one description");
dataItemOne.setId("id:dataItemOne");
dataItemOne.setDepositDate(new DateTime(2012, 4, 24, 0, 0));
dataItemTwo.setDescription("data item two description");
dataItemTwo.setId("id:dataItemTwo");
dataItemTwo.setParentId(collectionWithData.getId());
代码示例来源:origin: org.dataconservancy.ui/dcs-ui-test-support-model
dataItemOne.setDescription("data item one description");
dataItemOne.setId("id:dataItemOne");
dataItemOne.setDepositDate(new DateTime(2012, 4, 24, 0, 0));
dataItemTwo.setDescription("data item two description");
dataItemTwo.setId("id:dataItemTwo");
dataItemTwo.setParentId(collectionWithData.getId());
代码示例来源:origin: org.dataconservancy.packaging/dcs-pkg-ingest-services
/**
* Take an attribute set representing a data item and populate fields in the corresponding
* business object
*/
private void hydrateDataItem(AttributeSet as, IngestWorkflowState state, Map<String,BusinessObject> objects, Map<String,String> parents,
String localId, DataItem di) throws StatefulIngestServiceException {
di.setName(get_value(as, Metadata.DATA_ITEM_TITLE));
di.setDescription(get_value(as, Metadata.DATA_ITEM_DESCRIPTION));
di.setAlternateIds(get_values(as, Metadata.DATA_ITEM_IDENTIFIER));
di.setCitableLocator(get_values(as, Metadata.DATA_ITEM_CITABLE_LOCATOR));
di.setCreatedDate(get_datetime(as, Metadata.DATA_ITEM_CREATED, true));
di.setCreators(get_contact_info(as, Metadata.DATA_ITEM_CREATOR));
di.setContactInfos(get_contact_info(as, Metadata.DATA_ITEM_CONTACT_INFO));
di.setDepositorId(state.getIngestUserId());
di.setContentModel(get_values(as, Metadata.DATA_ITEM_CONTENT_MODEL));
di.setModifiedDate(get_datetime(as, Metadata.DATA_ITEM_MODIFIED, true));
di.setParentId(get_parent_business_id(localId, parents, objects));
}
内容来源于网络,如有侵权,请联系作者删除!