com.ancientprogramming.fixedformat4j.format
Interface FixedFormatManager

All Known Implementing Classes:
FixedFormatManagerImpl

public interface FixedFormatManager

Interface used to interact with fixed format annotations. A FixedFormatManager is associated with one type of fixed format data.

Since:
1.0.0
Author:
Jacob von Eyben - http://www.ancientprogramming.com

Method Summary
<T> java.lang.String
export(java.lang.String data, T instance)
           
<T> java.lang.String
export(T instance)
           
<T> T
load(java.lang.Class<T> clazz, java.lang.String data)
          Create an instance of the fixedFormatClass and load the data string into the object according to the annotations.
 

Method Detail

load

<T> T load(java.lang.Class<T> clazz,
           java.lang.String data)
       throws FixedFormatException
Create an instance of the fixedFormatClass and load the data string into the object according to the annotations.

Parameters:
clazz - the class to instanciate
data - the data to load
Returns:
an object loaded with the fixedformat data
Throws:
FixedFormatException - in case the fixedFormatRecord class cannot be loaded

export

<T> java.lang.String export(T instance)
                        throws FixedFormatException
Throws:
FixedFormatException

export

<T> java.lang.String export(java.lang.String data,
                            T instance)
                        throws FixedFormatException
Throws:
FixedFormatException


Copyright © 2008 ancientprogramming.com. All Rights Reserved.