public class BioMaterialEventSourceFormatter extends Object implements Formatter<BioMaterialEventSource>
BioMaterialEventSource
items.
It will print the name + used quantity from the source item.Constructor and Description |
---|
BioMaterialEventSourceFormatter()
Create a new formatter.
|
BioMaterialEventSourceFormatter(String nullValue)
Create a new formatter.
|
Modifier and Type | Method and Description |
---|---|
String |
format(BioMaterialEventSource eventSource)
Format a value by converting it to a string.
|
BioMaterialEventSource |
parseString(String value)
Parse a string and return a value of the correct type.
|
private String nullValue
public BioMaterialEventSourceFormatter()
public BioMaterialEventSourceFormatter(String nullValue)
nullValue
- The string to return if a null item is
passed to format(BioMaterialEventSource)
public String format(BioMaterialEventSource eventSource)
Formatter
format
in interface Formatter<BioMaterialEventSource>
eventSource
- The value to formatpublic BioMaterialEventSource parseString(String value)
Formatter
parseString
in interface Formatter<BioMaterialEventSource>
value
- The string to parseUnsupportedOperationException
- Always