public class EntryUtil extends Object
Constructor and Description |
---|
EntryUtil() |
Modifier and Type | Method and Description |
---|---|
static String |
entryFieldToValue(Entry entry,
EntryField field) |
protected static String |
getCommonFieldValues(Entry entry,
EntryField field) |
static String |
getLinksAsString(Set<Link> links)
String representation of
Link s. |
static String |
getPartNumberPrefix() |
protected static String |
getPlasmidFieldValues(Plasmid plasmid,
EntryField field) |
protected static String |
getSeedFieldValues(ArabidopsisSeed seed,
EntryField field) |
static ArrayList<String> |
getSelectionMarkersAsList(Set<SelectionMarker> markers) |
protected static String |
getStrainFieldValues(Strain strain,
EntryField field) |
static PartData |
setPartDataFromField(PartData partData,
String value,
EntryField field,
boolean isSubType)
Updates the partData based on the field that is specified.
|
static PartData |
setPartDefaults(PartData partData) |
static List<EntryField> |
validates(PartData partData)
Validates the required fields in the Data Transfer Object
|
public static String entryFieldToValue(Entry entry, EntryField field)
public static String getLinksAsString(Set<Link> links)
Link
s.protected static String getCommonFieldValues(Entry entry, EntryField field)
protected static String getStrainFieldValues(Strain strain, EntryField field)
protected static String getPlasmidFieldValues(Plasmid plasmid, EntryField field)
protected static String getSeedFieldValues(ArabidopsisSeed seed, EntryField field)
public static String getPartNumberPrefix()
public static ArrayList<String> getSelectionMarkersAsList(Set<SelectionMarker> markers)
public static List<EntryField> validates(PartData partData)
partData
- DTO whose fields are being validatedpublic static PartData setPartDataFromField(PartData partData, String value, EntryField field, boolean isSubType)
partData
- entry to be updatedvalue
- value to be setfield
- to setisSubType
- whether the field value to set is a subType of the entry to be updatedCopyright © 2017. All rights reserved.