com.ibm.btt.base.ws
Class WSMapperConverter
java.lang.Object
com.ibm.btt.base.FormatElement
com.ibm.btt.base.KeyedCollectionFormat
com.ibm.btt.base.RecordFormat
com.ibm.btt.base.DataMapperFormat
com.ibm.btt.base.DataMapperConverterFormat
com.ibm.btt.base.ws.WSMapperConverter
- All Implemented Interfaces:
- Cacheable, java.io.Externalizable, java.io.Serializable
@ATTR(value={"isPrimitive#String#IMPLIED","javaClass#String#IMPLIED"})
public class WSMapperConverter
- extends DataMapperConverterFormat
- See Also:
- Serialized Form
Methods inherited from class com.ibm.btt.base.KeyedCollectionFormat |
add, addElementAt, addFirst, at, checkIndexes, format, format, getDataElementEmpty, getElements, getEnumeration, reinitialize, removeAll, removeAt, setElements, size, unformat, unformat |
Methods inherited from class com.ibm.btt.base.FormatElement |
exceptionInfo, externalizer, getDataElementName, getExternalizer, getName, getTagName, isCacheable, isConstant, isItConstant, isNull, readExternal, readExternal, readObject, removeExternal, rootDecorated, setDataElementName, setExternalizer, setName, setSize, toTags, writeExternal, writeExternal |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
IS_PRIMITIVE
public static final java.lang.String IS_PRIMITIVE
- See Also:
- Constant Field Values
JAVA_CLASS
public static final java.lang.String JAVA_CLASS
- See Also:
- Constant Field Values
FROM
public static final java.lang.String FROM
- See Also:
- Constant Field Values
TO
public static final java.lang.String TO
- See Also:
- Constant Field Values
APPEND
public static final java.lang.String APPEND
- See Also:
- Constant Field Values
ASTERISK
public static final java.lang.String ASTERISK
- See Also:
- Constant Field Values
WSMapperConverter
public WSMapperConverter()
getSubAppend
public java.lang.String getSubAppend()
isPrimitive
public boolean isPrimitive()
setPrimitive
public void setPrimitive(boolean isPrimitive)
getJavaClass
public java.lang.String getJavaClass()
setJavaClass
public void setJavaClass(java.lang.String javaClass)
getSubFrom
protected java.lang.String getSubFrom()
getSubTo
protected java.lang.String getSubTo()
getSubConversioType
protected java.lang.String getSubConversioType()
getConvertManager
protected SimpleElementManager getConvertManager()
initializeFrom
public java.lang.Object initializeFrom(Tag aTag)
throws java.io.IOException
- Initializes an WSMapperConverter object with the aTag attributes. The tag
contains the attributes for the primitive and java class.
- Overrides:
initializeFrom
in class DataMapperConverterFormat
- Parameters:
aTag
- A Tag that contains the name and attributes of the object to
be created
- Returns:
- Object - An instance of WSMapperConverter
- Throws:
java.io.IOException
DSEException
initializeFromSubTag
protected void initializeFromSubTag(Tag subTag)
mapContextToObject
public java.lang.Object mapContextToObject(Context ctx)
throws DSEInvalidRequestException,
DSEInvalidArgumentException,
DSEInvalidClassException
- Transform the data from Context to Object.
The objects are stored in the context, and the format defines the rules
of how to transform the data from context to object.
- Parameters:
ctx
- The context from where the data is stored
- Returns:
- The Object instance which contains the value mapped from context
- Throws:
DSEInvalidRequestException
DSEInvalidArgumentException
DSEInvalidClassException
mapObjectToContext
public void mapObjectToContext(java.lang.Object obj,
Context ctx)
throws DSEInvalidRequestException,
DSEInvalidArgumentException,
DSEInvalidClassException
- Transform the data from Object to Context.
The objects are stored in the object, and the format defines the rules of
how to transform the data from object to context.
- Parameters:
obj
- The Object instance which contains the value received from web
servicectx
- The context from where the data will be stored
- Throws:
DSEInvalidRequestException
DSEInvalidArgumentException
DSEInvalidClassException
(c) Copyright IBM Corporation 1998, 2011