public class BioPlateNameGenerator extends NameableNameGenerator<BioPlate>
BioPlate
items. The
implementation use the NameableNameGenerator
but appends
the coordinate of the biomaterial if the parent node is a
biomaterial node. Eg. My plate [A2]
. If the parent
node is a bioplate event, it appends the BioPlateEventParticipant.getRole()
to the title.Modifier and Type | Field and Description |
---|---|
private BioPlateEventParticipant |
currentParticipant |
private BioWell |
currentWell |
Constructor and Description |
---|
BioPlateNameGenerator(String namePrefix,
String titlePrefix)
Create a new name generator.
|
Modifier and Type | Method and Description |
---|---|
String |
getNodeTitle(BioPlate item,
Node parentNode)
The base of the title is generated by the superclass.
|
void |
setCurrentBioWell(BioWell well)
Set the current biowell object that should be used when
generating names for bioplates that are reached by navigating via a biomaterial.
|
void |
setCurrentEventParticipant(BioPlateEventParticipant participant)
Set the current bioplate event participant object that should be used when
generating names for bioplates that are part of a bioplate event.
|
getDeniedNodeName, getDeniedNodeTitle, getMissingNodeName, getMissingNodeTitle, getNodeName
private BioPlateEventParticipant currentParticipant
private BioWell currentWell
public String getNodeTitle(BioPlate item, Node parentNode)
getNodeTitle
in interface NodeNameGenerator<BioPlate>
getNodeTitle
in class NameableNameGenerator<BioPlate>
item
- The item that is attached to the node (never null)parentNode
- The parent node of the new nodepublic void setCurrentEventParticipant(BioPlateEventParticipant participant)
public void setCurrentBioWell(BioWell well)