com.legstar.coxb.transform
Interface IHostTransformers

All Known Implementing Classes:
AbstractTransformers

public interface IHostTransformers

Classes implementing this interface group transformers for a given complex type.


Method Summary
 IHostToJavaTransformer getHostToJava()
          Return the transformer that turns host data into a java data object.
 IJavaToHostTransformer getJavaToHost()
           
 void setHostToJava(IHostToJavaTransformer hostToJava)
          Sets the transformer that turns host data into a java data object.
 void setJavaToHost(IJavaToHostTransformer javaToHost)
          Sets the transformer that turns a java data object into host data.
 byte[] toHost(Object valueObject)
          Transforms java data object to host data.
 byte[] toHost(Object valueObject, HostTransformStatus status)
          Transforms java data object to host data.
 byte[] toHost(Object valueObject, String hostCharset)
          Transforms java data object to host data with a specific host character set.
 byte[] toHost(Object valueObject, String hostCharset, HostTransformStatus status)
          Transforms java data object to host data with a specific host character set.
 Object toJava(byte[] hostData)
          Transforms host data to java data object.
 Object toJava(byte[] hostData, HostTransformStatus status)
          Transforms host data to java data object.
 Object toJava(byte[] hostData, int offset)
          Transforms host data to java data object.
 Object toJava(byte[] hostData, int offset, HostTransformStatus status)
          Transforms host data to java data object.
 Object toJava(byte[] hostData, int offset, String hostCharset)
          Transforms host data to java data object with a specific host character set.
 Object toJava(byte[] hostData, int offset, String hostCharset, HostTransformStatus status)
          Transforms host data to java data object with a specific host character set.
 Object toJava(byte[] hostData, String hostCharset)
          Transforms host data to java data object with a specific host character set.
 Object toJava(byte[] hostData, String hostCharset, HostTransformStatus status)
          Transforms host data to java data object with a specific host character set.
 

Method Detail

toHost

byte[] toHost(Object valueObject,
              String hostCharset)
              throws HostTransformException
Transforms java data object to host data with a specific host character set.

Parameters:
valueObject - a java value object
hostCharset - the host character set
Returns:
a byte array with host data
Throws:
HostTransformException - if transformation fails

toHost

byte[] toHost(Object valueObject)
              throws HostTransformException
Transforms java data object to host data.

Parameters:
valueObject - a java value object
Returns:
a byte array with host data
Throws:
HostTransformException - if transformation fails

toHost

byte[] toHost(Object valueObject,
              String hostCharset,
              HostTransformStatus status)
              throws HostTransformException
Transforms java data object to host data with a specific host character set.

Parameters:
valueObject - a java value object
hostCharset - the host character set
status - will contain information on the transformation after it is executed
Returns:
a byte array with host data
Throws:
HostTransformException - if transformation fails

toHost

byte[] toHost(Object valueObject,
              HostTransformStatus status)
              throws HostTransformException
Transforms java data object to host data.

Parameters:
valueObject - a java value object
status - will contain information on the transformation after it is executed
Returns:
a byte array with host data
Throws:
HostTransformException - if transformation fails

toJava

Object toJava(byte[] hostData,
              String hostCharset)
              throws HostTransformException
Transforms host data to java data object with a specific host character set.

Parameters:
hostData - a byte array containing host data
hostCharset - the host character set
Returns:
a Java value object
Throws:
HostTransformException - if transformation fails

toJava

Object toJava(byte[] hostData)
              throws HostTransformException
Transforms host data to java data object.

Parameters:
hostData - a byte array containing host data
Returns:
a Java value object
Throws:
HostTransformException - if transformation fails

toJava

Object toJava(byte[] hostData,
              String hostCharset,
              HostTransformStatus status)
              throws HostTransformException
Transforms host data to java data object with a specific host character set.

Parameters:
hostData - a byte array containing host data
hostCharset - the host character set
status - will contain information on the transformation after it is executed
Returns:
a Java value object
Throws:
HostTransformException - if transformation fails

toJava

Object toJava(byte[] hostData,
              HostTransformStatus status)
              throws HostTransformException
Transforms host data to java data object.

Parameters:
hostData - a byte array containing host data
status - will contain information on the transformation after it is executed
Returns:
a Java value object
Throws:
HostTransformException - if transformation fails

toJava

Object toJava(byte[] hostData,
              int offset,
              String hostCharset)
              throws HostTransformException
Transforms host data to java data object with a specific host character set.

Parameters:
hostData - a byte array containing host data
offset - index of first byte to process in hostData
hostCharset - the host character set
Returns:
a Java value object
Throws:
HostTransformException - if transformation fails

toJava

Object toJava(byte[] hostData,
              int offset)
              throws HostTransformException
Transforms host data to java data object.

Parameters:
hostData - a byte array containing host data
offset - index of first byte to process in hostData
Returns:
a Java value object
Throws:
HostTransformException - if transformation fails

toJava

Object toJava(byte[] hostData,
              int offset,
              String hostCharset,
              HostTransformStatus status)
              throws HostTransformException
Transforms host data to java data object with a specific host character set.

Parameters:
hostData - a byte array containing host data
offset - index of first byte to process in hostData
hostCharset - the host character set
status - will contain information on the transformation after it is executed
Returns:
a Java value object
Throws:
HostTransformException - if transformation fails

toJava

Object toJava(byte[] hostData,
              int offset,
              HostTransformStatus status)
              throws HostTransformException
Transforms host data to java data object.

Parameters:
hostData - a byte array containing host data
offset - index of first byte to process in hostData
status - will contain information on the transformation after it is executed
Returns:
a Java value object
Throws:
HostTransformException - if transformation fails

getJavaToHost

IJavaToHostTransformer getJavaToHost()
Returns:
the transformer that turns a java data object into host data

setJavaToHost

void setJavaToHost(IJavaToHostTransformer javaToHost)
Sets the transformer that turns a java data object into host data.

Parameters:
javaToHost - the transformer that turns a java data object into host data to set

getHostToJava

IHostToJavaTransformer getHostToJava()
Return the transformer that turns host data into a java data object.

Returns:
the transformer that turns host data into a java data object

setHostToJava

void setHostToJava(IHostToJavaTransformer hostToJava)
Sets the transformer that turns host data into a java data object.

Parameters:
hostToJava - the transformer that turns host data into a java data object to set


Copyright © 2015 LegSem. All Rights Reserved.