it.imolinfo.jbi4cics.messageformat.commarea
Class CommareaBeanMappingDescriptor

java.lang.Object
  extended by it.imolinfo.jbi4cics.messageformat.commarea.CommareaBeanMappingDescriptor
All Implemented Interfaces:
MappingDescriptor

public class CommareaBeanMappingDescriptor
extends java.lang.Object
implements MappingDescriptor

Questa classe fondamentalmente wrappa una mappa fra i nomi dei field nella commarea e i nomi delle properies di un java bean.

Author:
raffaele

Constructor Summary
CommareaBeanMappingDescriptor()
          Creates a new instance of this class.
 
Method Summary
 void addFieldMapping(java.lang.String propertyName, java.lang.Integer fieldIndex, FieldDescriptor fieldDescriptor)
          Not implementaed.
 void addFieldMapping(java.lang.String propertyName, java.lang.String fieldName, FieldDescriptor fieldDescriptor)
          Add a mapping definition to the mapping descriptor.
 boolean equals(java.lang.Object obj)
           
 java.lang.Class getBeanClass()
          Returns the bean class.
 int getBufferedLength()
           
 java.util.Map<java.lang.String,FieldDescriptor> getFieldMap()
           
 int hashCode()
           
 void setBeanClass(java.lang.Class beanClass)
          Sets the bean class.
 void setCodePage(java.lang.String codePage)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CommareaBeanMappingDescriptor

public CommareaBeanMappingDescriptor()
Creates a new instance of this class.

Method Detail

getBeanClass

public java.lang.Class getBeanClass()
Returns the bean class.

Specified by:
getBeanClass in interface MappingDescriptor
Returns:
the bean class.

setBeanClass

public void setBeanClass(java.lang.Class beanClass)
Sets the bean class.

Specified by:
setBeanClass in interface MappingDescriptor
Parameters:
beanClass - the bean class to set.

addFieldMapping

public void addFieldMapping(java.lang.String propertyName,
                            java.lang.String fieldName,
                            FieldDescriptor fieldDescriptor)
                     throws FormatException
Description copied from interface: MappingDescriptor
Add a mapping definition to the mapping descriptor.

Specified by:
addFieldMapping in interface MappingDescriptor
Parameters:
propertyName - The name of the property of the resulting bean or XML
fieldName - The name of the original field
fieldDescriptor - The data description of original field
Throws:
FormatException - The format exception

addFieldMapping

public void addFieldMapping(java.lang.String propertyName,
                            java.lang.Integer fieldIndex,
                            FieldDescriptor fieldDescriptor)
                     throws FormatException
Not implementaed.

Specified by:
addFieldMapping in interface MappingDescriptor
Parameters:
propertyName - name of the property of the resulting bean or XML
fieldIndex - index of original field, useful when original name is not available and order id relevant
fieldDescriptor - data description of original field
Throws:
FormatException - ever.

getBufferedLength

public int getBufferedLength()
                      throws FormatException
Throws:
FormatException

getFieldMap

public java.util.Map<java.lang.String,FieldDescriptor> getFieldMap()
Specified by:
getFieldMap in interface MappingDescriptor
Returns:
a map mado of

setCodePage

public void setCodePage(java.lang.String codePage)
Specified by:
setCodePage in interface MappingDescriptor
Parameters:
codePage - The code page

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object


Copyright © 2005-2008 Imola Informatica. All Rights Reserved.