|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.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 IHostTransformerpublic void setCobolConverters(ICobolConverters cobolConverters)
setCobolConverters in interface IHostTransformercobolConverters - the new set of COBOL converterspublic CobolContext getCobolContext()
getCobolContext in interface IHostTransformerpublic void setCobolContext(CobolContext cobolContext)
setCobolContext in interface IHostTransformercobolContext - the new COBOL parameter setpublic ICobolBindingVisitorsFactory getCobolBindingVisitorsFactory()
getCobolBindingVisitorsFactory in interface IHostTransformerpublic void setCobolBindingVisitorsFactory(ICobolBindingVisitorsFactory cobolBindingVisitorsFactory)
setCobolBindingVisitorsFactory in interface IHostTransformercobolBindingVisitorsFactory - the Factory that provides concrete
implementations
of marshalers/unmarshalers to set
public ICobolComplexBinding getCachedBinding()
throws CobolBindingException
CobolBindingException - if binding cannot be built
public ICobolComplexBinding getBinding()
throws CobolBindingException
newBinding
getBinding in interface IHostTransformercom.legstar.coxb.gen.CoxbBindingGenerator,
or dynamically built by
com.legstar.coxb.impl.reflect.CComplexBinding.
CobolBindingException - if binding cannot be returned
public ICobolComplexBinding newBinding()
throws CobolBindingException
newBinding in interface IHostTransformercom.legstar.coxb.gen.CoxbBindingGenerator,
or dynamically built by
com.legstar.coxb.impl.reflect.CComplexBinding.
CobolBindingException - if binding cannot be returned
public int getByteLength()
throws CobolBindingException
getByteLength in interface IHostTransformerCobolBindingException - if maximum byte length cannot be computed
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||