public class InfoToModelFactory extends Object
Constructor and Description |
---|
InfoToModelFactory() |
Modifier and Type | Method and Description |
---|---|
static Entry |
infoToEntry(PartData info) |
static Entry[] |
infoToEntryForField(Entry entry,
Entry plasmid,
String value,
EntryField field)
Updates the entry based on the field that is specified.
|
protected static Entry |
setPlasmidFields(PlasmidData plasmidData,
Entry entry) |
protected static Entry |
setSeedFields(ArabidopsisSeedData seedData,
Entry entry) |
protected static Entry |
setStrainFields(StrainData strainData,
Entry entry) |
static Entry |
updateEntryField(PartData data,
Entry entry)
sets the corresponding fields in data only if they are not null
|
protected static Entry setPlasmidFields(PlasmidData plasmidData, Entry entry)
protected static Entry setStrainFields(StrainData strainData, Entry entry)
protected static Entry setSeedFields(ArabidopsisSeedData seedData, Entry entry)
public static Entry updateEntryField(PartData data, Entry entry)
data
- PartData object to converted to Entryentry
- if null, a new entry is created otherwise entry is usedpublic static Entry[] infoToEntryForField(Entry entry, Entry plasmid, String value, EntryField field)
entry
- entry to be updatedplasmid
- should be set if updating strain with plasmidvalue
- value to be setfield
- to setCopyright © 2017. All rights reserved.