GNDMS 0.6.0
RESTful verison of GNDMS
|
A GORFXConverterBase uses a writer to convert a gndms class to a desired type, which can be the corresponding axis type, a conversion to a Properties instance, or it will be written to Stdout. More...
Public Member Functions | |
GORFXConverterBase (W writer, M model) | |
abstract void | convert () |
Performs the writing by calling the getters of the model and the corresponding write* methods of the writer. | |
W | getWriter () |
void | setWriter (W writer) |
M | getModel () |
Returns the original model, which shall be converted to an axis type. | |
void | setModel (M model) |
Static Public Member Functions | |
static String | NotNullString (String s) |
static List< String > | NotNullStringList (List< String > list) |
Private Attributes | |
W | writer |
A writer which is used to create a new axis type. | |
M | model |
A gndms class instance, which shall be converted to an axis type. |
A GORFXConverterBase uses a writer to convert a gndms class to a desired type, which can be the corresponding axis type, a conversion to a Properties instance, or it will be written to Stdout.
The template parameter W specifies the writer and M the model, so a gndms class.
User: mjorra, Date: 22.09.2008, Time: 18:09:02
abstract void de.zib.gndms.common.model.gorfx.types.io.GORFXConverterBase< W, M >.convert | ( | ) | [pure virtual] |
Performs the writing by calling the getters of the model and the corresponding write* methods of the writer.
Note: implementations of this method are required to ensure that model and writer are provided and to call the open and done method of the writer.
Implemented in de.zib.gndms.common.model.gorfx.types.io.OrderConverter< W extends OrderWriter, M extends AbstractOrder >.
M de.zib.gndms.common.model.gorfx.types.io.GORFXConverterBase< W, M >.getModel | ( | ) |
Returns the original model, which shall be converted to an axis type.