Package org.goplanit.converter
Class Converter<T>
- java.lang.Object
-
- org.goplanit.converter.ConverterBase
-
- org.goplanit.converter.Converter<T>
-
- Type Parameters:
T- planit entity to convert
- Direct Known Subclasses:
NetworkConverter,ZoningConverter
public abstract class Converter<T> extends ConverterBase
Convert PLANit entities parsed by a reader from one format and persisted with a writer to another- Author:
- markr
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedConverter(ConverterReader<T> reader, ConverterWriter<T> writer)constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidconvert()Convert the reader's parsed content by passing it on to the writer.-
Methods inherited from class org.goplanit.converter.ConverterBase
getReader, getWriter
-
-
-
-
Constructor Detail
-
Converter
protected Converter(ConverterReader<T> reader, ConverterWriter<T> writer)
constructor- Parameters:
reader- to use for parsingwriter- to use for persisting
-
-
Method Detail
-
convert
public void convert() throws PlanItExceptionConvert the reader's parsed content by passing it on to the writer. It is assumed both reader and writer are fully configured when this method is called- Specified by:
convertin classConverterBase- Throws:
PlanItException- thrown if error
-
-