use of org.codice.alliance.nsili.common.GIAS.Domain in project alliance by codice.
the class NsiliAttributesGenerator method getNsilTaskAttributes.
public static List<AttributeInformation> getNsilTaskAttributes() {
String prefix = NsiliConstants.NSIL_TASK + ".";
Domain domain;
List<AttributeInformation> attributes = new ArrayList<>();
domain = new Domain();
domain.t(255);
attributes.add(new AttributeInformation(prefix + NsiliConstants.COMMENTS, AttributeType.TEXT, domain, "", "", RequirementMode.OPTIONAL, "Status of the task", false, true));
domain = new Domain();
domain.l(getTaskStatusOptions());
attributes.add(new AttributeInformation(prefix + NsiliConstants.STATUS, AttributeType.TEXT, domain, "", "", RequirementMode.MANDATORY, "Status of the task", false, true));
return attributes;
}
use of org.codice.alliance.nsili.common.GIAS.Domain in project alliance by codice.
the class NsiliAttributesGenerator method getNsilIntrepAttributes.
public static List<AttributeInformation> getNsilIntrepAttributes() {
String prefix = NsiliConstants.NSIL_INTREP + ".";
Domain domain;
List<AttributeInformation> attributes = new ArrayList<>();
domain = new Domain();
domain.l(getSituationTypeOptions());
attributes.add(new AttributeInformation(prefix + NsiliConstants.SITUATION_TYPE, AttributeType.TEXT, domain, "", "", RequirementMode.MANDATORY, "Represents the type of situation.", false, true));
return attributes;
}
use of org.codice.alliance.nsili.common.GIAS.Domain in project alliance by codice.
the class NsiliAttributesGenerator method getNsilPartAttributes.
public static List<AttributeInformation> getNsilPartAttributes() {
String prefix = NsiliConstants.NSIL_PART + ".";
Domain domain;
List<AttributeInformation> attributes = new ArrayList<>();
domain = new Domain();
domain.t(0);
attributes.add(new AttributeInformation(prefix + NsiliConstants.PART_IDENTIFIER, AttributeType.TEXT, domain, "", "", RequirementMode.MANDATORY, "String describing the part of the containing Product.", false, true));
return attributes;
}
use of org.codice.alliance.nsili.common.GIAS.Domain in project alliance by codice.
the class NsiliSourceTest method getAttributeInformationMap.
private HashMap<String, List<AttributeInformation>> getAttributeInformationMap() {
HashMap<String, List<AttributeInformation>> map = new HashMap<>();
List<AttributeInformation> list = new ArrayList<>();
Domain domain = new Domain();
domain.t(200);
AttributeInformation attributeInformation = new AttributeInformation(GMTI, AttributeType.TEXT, domain, NsiliFilterDelegate.EMPTY_STRING, NsiliFilterDelegate.EMPTY_STRING, RequirementMode.OPTIONAL, NsiliFilterDelegate.EMPTY_STRING, false, true);
list.add(attributeInformation);
map.put(NsiliConstants.NSIL_ALL_VIEW, list);
return map;
}
use of org.codice.alliance.nsili.common.GIAS.Domain in project alliance by codice.
the class NsiliAttributesGenerator method getNsilRelatedFileAttributes.
public static List<AttributeInformation> getNsilRelatedFileAttributes() {
String prefix = NsiliConstants.NSIL_RELATED_FILE + ".";
Domain domain;
List<AttributeInformation> attributes = new ArrayList<>();
domain = new Domain();
domain.t(200);
attributes.add(new AttributeInformation(prefix + NsiliConstants.CREATOR, AttributeType.TEXT, domain, "", "", RequirementMode.MANDATORY, "An entity primarily responsible for making the content of the related file. Creator is responsible for the intellectual or creative content of the resource.", true, true));
domain = new Domain();
domain.d(DATE_RANGE);
attributes.add(new AttributeInformation(prefix + NsiliConstants.DATE_TIME_DECLARED, AttributeType.UCOS_ABS_TIME, domain, "", "", RequirementMode.MANDATORY, "Date and time on which the related file was declared, filed or stored (the date the content of the related file was compiled).", true, true));
domain = new Domain();
domain.fr(MAX_STANAG_4559_RANGE);
attributes.add(new AttributeInformation(prefix + NsiliConstants.EXTENT, AttributeType.FLOATING_POINT, domain, "", "", RequirementMode.OPTIONAL, "(Estimated) size of the file, expressed in megabytes. The transfer size is > 0.0.", true, false));
domain = new Domain();
domain.t(0);
attributes.add(new AttributeInformation(prefix + NsiliConstants.FILE_TYPE, AttributeType.TEXT, domain, "", "", RequirementMode.OPTIONAL, "The related file type.", false, false));
domain = new Domain();
domain.t(0);
attributes.add(new AttributeInformation(prefix + NsiliConstants.URL, AttributeType.TEXT, domain, "", "", RequirementMode.OPTIONAL, "An unambiguous reference (in form of an URL) to the related file.", false, false));
domain = new Domain();
domain.bv(true);
attributes.add(new AttributeInformation(prefix + NsiliConstants.IS_FILE_LOCAL, AttributeType.BOOLEAN_DATA, domain, "", "", RequirementMode.OPTIONAL, "Indicates whether the related file is available locally in the library, or resides in a remote library.", true, false));
return attributes;
}
Aggregations