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