|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.legstar.coxb.transform.AbstractTransformer
public abstract class AbstractTransformer
Transformers provide the foundation for host data transformations. Implementing classes typically provide the binding class and inherit the transformation capabilities.
Constructor Summary | |
---|---|
AbstractTransformer()
Create a transformer using default COBOL parameters. |
|
AbstractTransformer(CobolContext cobolContext)
Create a transformer using a specific COBOL parameters set. |
|
AbstractTransformer(String hostCharset)
Create a transformer using a specific host character set while other COBOL parameters are set by default. |
Method Summary | |
---|---|
ICobolComplexBinding |
getBinding()
Deprecated. replaced by newBinding |
int |
getByteLength()
The COBOL complex element maximum length in bytes. |
ICobolComplexBinding |
getCachedBinding()
|
ICobolBindingVisitorsFactory |
getCobolBindingVisitorsFactory()
|
CobolContext |
getCobolContext()
Returns the current COBOL parameter set. |
ICobolConverters |
getCobolConverters()
This method returns the current set of COBOL converters. |
ICobolComplexBinding |
newBinding()
For backward compatibility, we invoke the old getBinding. |
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractTransformer()
public AbstractTransformer(String hostCharset)
hostCharset
- the host character setpublic AbstractTransformer(CobolContext cobolContext)
cobolContext
- the COBOL parameters set.Method Detail |
---|
public ICobolConverters getCobolConverters()
getCobolConverters
in interface IHostTransformer
public void setCobolConverters(ICobolConverters cobolConverters)
setCobolConverters
in interface IHostTransformer
cobolConverters
- the new set of COBOL converterspublic CobolContext getCobolContext()
getCobolContext
in interface IHostTransformer
public void setCobolContext(CobolContext cobolContext)
setCobolContext
in interface IHostTransformer
cobolContext
- the new COBOL parameter setpublic ICobolBindingVisitorsFactory getCobolBindingVisitorsFactory()
getCobolBindingVisitorsFactory
in interface IHostTransformer
public void setCobolBindingVisitorsFactory(ICobolBindingVisitorsFactory cobolBindingVisitorsFactory)
setCobolBindingVisitorsFactory
in interface IHostTransformer
cobolBindingVisitorsFactory
- the Factory that provides concrete
implementations
of marshalers/unmarshalers to setpublic ICobolComplexBinding getCachedBinding() throws CobolBindingException
CobolBindingException
- if binding cannot be builtpublic ICobolComplexBinding getBinding() throws CobolBindingException
newBinding
getBinding
in interface IHostTransformer
com.legstar.coxb.gen.CoxbBindingGenerator
,
or dynamically built by
com.legstar.coxb.impl.reflect.CComplexBinding
.
CobolBindingException
- if binding cannot be returnedpublic ICobolComplexBinding newBinding() throws CobolBindingException
newBinding
in interface IHostTransformer
com.legstar.coxb.gen.CoxbBindingGenerator
,
or dynamically built by
com.legstar.coxb.impl.reflect.CComplexBinding
.
CobolBindingException
- if binding cannot be returnedpublic int getByteLength() throws CobolBindingException
getByteLength
in interface IHostTransformer
CobolBindingException
- if maximum byte length cannot be computed
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |