GNDMS 0.6.0
RESTful verison of GNDMS
Public Member Functions | Static Public Member Functions | Private Attributes

de.zib.gndms.common.model.gorfx.types.io.GORFXConverterBase< W, M > Class Reference

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...

Inheritance diagram for de.zib.gndms.common.model.gorfx.types.io.GORFXConverterBase< W, M >:
de.zib.gndms.common.model.gorfx.types.io.OrderConverter< W extends OrderWriter, M extends AbstractOrder > de.zib.gndms.common.model.gorfx.types.io.TaskResultConverter< W extends TaskResultWriter, M extends AbstractTaskFlowResult >

List of all members.

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.
getWriter ()
void setWriter (W writer)
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

writer
 A writer which is used to create a new axis type.
model
 A gndms class instance, which shall be converted to an axis type.

Detailed Description

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.

Author:
try ma ik jo rr a zib
Version:
$Id$

User: mjorra, Date: 22.09.2008, Time: 18:09:02


Member Function Documentation

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.

Returns:
the original model, which shall be converted to an axis type

The documentation for this class was generated from the following file:
 All Classes Namespaces Functions Variables Enumerations