com.legstar.coxb.transform
Interface IHostTransformer

All Known Subinterfaces:
IHostToJavaTransformer, IJavaToHostTransformer
All Known Implementing Classes:
AbstractHostToJavaTransformer, AbstractJavaToHostTransformer, AbstractTransformer

public interface IHostTransformer

Transformers convert complex types to/from raw mainframe byte arrays described by COBOL structures.


Method Summary
 ICobolComplexBinding getBinding()
          Deprecated. replaced by newBinding
 int getByteLength()
          The COBOL complex element maximum length in bytes.
 ICobolBindingVisitorsFactory getCobolBindingVisitorsFactory()
           
 CobolContext getCobolContext()
          Returns the current COBOL parameter set.
 ICobolConverters getCobolConverters()
          This method returns the current set of COBOL converters.
 ICobolComplexBinding newBinding()
           
 void setCobolBindingVisitorsFactory(ICobolBindingVisitorsFactory cobolBindingVisitorsFactory)
           
 void setCobolContext(CobolContext cobolContext)
          Change the COBOL parameter sets of the converters.
 void setCobolConverters(ICobolConverters cobolConverters)
          Caller can pass his own set of converters if he is not satisfied with the default.
 

Method Detail

getCobolConverters

ICobolConverters getCobolConverters()
This method returns the current set of COBOL converters.

Returns:
a set of COBOL converters

setCobolConverters

void setCobolConverters(ICobolConverters cobolConverters)
Caller can pass his own set of converters if he is not satisfied with the default.

Parameters:
cobolConverters - the new set of COBOL converters

getCobolContext

CobolContext getCobolContext()
Returns the current COBOL parameter set.

Returns:
a COBOL parameter set

setCobolContext

void setCobolContext(CobolContext cobolContext)
Change the COBOL parameter sets of the converters.

Parameters:
cobolContext - the new COBOL parameter set

getCobolBindingVisitorsFactory

ICobolBindingVisitorsFactory getCobolBindingVisitorsFactory()
Returns:
the Factory that provides concrete implementations of marshalers/unmarshalers

setCobolBindingVisitorsFactory

void setCobolBindingVisitorsFactory(ICobolBindingVisitorsFactory cobolBindingVisitorsFactory)
Parameters:
cobolBindingVisitorsFactory - the Factory that provides concrete implementations of marshalers/unmarshalers to set

getBinding

ICobolComplexBinding getBinding()
                                throws CobolBindingException
Deprecated. replaced by newBinding

Returns:
the binding corresponding to the host structure type. Such a binding can either be statically produced by com.legstar.coxb.gen.CoxbBindingGenerator, or dynamically built by com.legstar.coxb.impl.reflect.CComplexBinding.
Throws:
CobolBindingException - if binding cannot be returned

newBinding

ICobolComplexBinding newBinding()
                                throws CobolBindingException
Returns:
a new binding corresponding to the host structure type. Such a binding can either be statically produced by com.legstar.coxb.gen.CoxbBindingGenerator, or dynamically built by com.legstar.coxb.impl.reflect.CComplexBinding.
Throws:
CobolBindingException - if binding cannot be returned

getByteLength

int getByteLength()
                  throws CobolBindingException
The COBOL complex element maximum length in bytes.

Returns:
COBOL complex element maximum length in bytes
Throws:
CobolBindingException - if maximum byte length cannot be computed


Copyright © 2015 LegSem. All Rights Reserved.