wt.adapter
Class IBAHelper

java.lang.Object
  extended bywt.adapter.IBAHelper
All Implemented Interfaces:
Externalizable, Serializable

public class IBAHelper
extends Object
implements Externalizable



Supported API: false

Extendable: false

See Also:
Serialized Form

Field Summary
static String ATTRIBUTE_PREFIX
           
private static AttributeHelper attributeHelper
           
private static String CLASSNAME
           
private static boolean ENCODE_ATTRIBUTE_NAMES
           
static long EXTERNALIZATION_VERSION_UID
           
private static String IBARESOURCE
           
protected static long OLD_FORMAT_VERSION_UID
           
private static String RESOURCE
           
(package private) static long serialVersionUID
           
private static boolean VERBOSE
           
 
Constructor Summary
IBAHelper()
           
 
Method Summary
static Object assignValues(Object object, Hashtable values, Locale locale)
          This method will assign the values contained in the Hashtable to the object.
static Object assignValues(Object object, Hashtable values, Locale locale, Properties props)
          This method will assign the values contained in the Hashtable to the object.
static String decodeAttributeName(String attributeName)
          

Supported API: false
static String encodeAttributeName(String attributeName)
          

Supported API: false
static Hashtable parseFields(String[] fieldArray)
          This method will parse the incoming field parameters, both modeled and instance based attributes, and put them into a Hashtable.
 void readExternal(ObjectInput input)
          Reads the non-transient fields of this class from an external source.
private  boolean readOldVersion(ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone)
          Reads the non-transient fields of this class from an external source, which is not the current version.
protected  boolean readVersion(IBAHelper thisObject, ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone)
          Reads the non-transient fields of this class from an external source.
static void setIBAValues(IBAHolder ibaHolder, Hashtable values, Locale locale)
          This method applies the set of attribute values specified in the Hashtable to the specified IBAHolder object.
 void writeExternal(ObjectOutput output)
          Writes the non-transient fields of this class to an external source.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RESOURCE

private static final String RESOURCE
See Also:
Constant Field Values

CLASSNAME

private static final String CLASSNAME

serialVersionUID

static final long serialVersionUID
See Also:
Constant Field Values

EXTERNALIZATION_VERSION_UID

public static final long EXTERNALIZATION_VERSION_UID
See Also:
Constant Field Values

OLD_FORMAT_VERSION_UID

protected static final long OLD_FORMAT_VERSION_UID
See Also:
Constant Field Values

ATTRIBUTE_PREFIX

public static final String ATTRIBUTE_PREFIX
See Also:
Constant Field Values

IBARESOURCE

private static final String IBARESOURCE
See Also:
Constant Field Values

VERBOSE

private static boolean VERBOSE

ENCODE_ATTRIBUTE_NAMES

private static boolean ENCODE_ATTRIBUTE_NAMES

attributeHelper

private static AttributeHelper attributeHelper
Constructor Detail

IBAHelper

public IBAHelper()
Method Detail

writeExternal

public void writeExternal(ObjectOutput output)
                   throws IOException
Writes the non-transient fields of this class to an external source.

Supported API: false

Specified by:
writeExternal in interface Externalizable
Parameters:
output -
Throws:
IOException

readExternal

public void readExternal(ObjectInput input)
                  throws IOException,
                         ClassNotFoundException
Reads the non-transient fields of this class from an external source.

Supported API: false

Specified by:
readExternal in interface Externalizable
Parameters:
input -
Throws:
IOException
ClassNotFoundException

readVersion

protected boolean readVersion(IBAHelper thisObject,
                              ObjectInput input,
                              long readSerialVersionUID,
                              boolean passThrough,
                              boolean superDone)
                       throws IOException,
                              ClassNotFoundException
Reads the non-transient fields of this class from an external source.

Supported API: false

Parameters:
thisObject -
input -
readSerialVersionUID -
passThrough -
superDone -
Returns:
boolean
Throws:
IOException
ClassNotFoundException

readOldVersion

private boolean readOldVersion(ObjectInput input,
                               long readSerialVersionUID,
                               boolean passThrough,
                               boolean superDone)
                        throws IOException,
                               ClassNotFoundException
Reads the non-transient fields of this class from an external source, which is not the current version.

Parameters:
input -
readSerialVersionUID -
passThrough -
superDone -
Returns:
boolean
Throws:
IOException
ClassNotFoundException

parseFields

public static Hashtable parseFields(String[] fieldArray)
This method will parse the incoming field parameters, both modeled and instance based attributes, and put them into a Hashtable.

Supported API: false

Parameters:
fieldArray -
Returns:
Hashtable

assignValues

public static Object assignValues(Object object,
                                  Hashtable values,
                                  Locale locale)
                           throws WTException
This method will assign the values contained in the Hashtable to the object. The key for each entry in the Hashtable should be the name of a modeled attribute or the encoded name of an instance based attribute. This method then splits the instance based attribute values into a seperate Hashtable to apply them seperately. This method uses the wt.adapter.attribute.AttributeHelper to apply the new values for the modeled attributes.

Supported API: false

Parameters:
object -
values -
locale -
Returns:
Object
Throws:
WTException
See Also:
AttributeHelper

assignValues

public static Object assignValues(Object object,
                                  Hashtable values,
                                  Locale locale,
                                  Properties props)
                           throws WTException
This method will assign the values contained in the Hashtable to the object. The key for each entry in the Hashtable should be the name of a modeled attribute or the encoded name of an instance based attribute. This method then splits the instance based attribute values into a seperate Hashtable to apply them seperately. This method uses the wt.adapter.attribute.AttributeHelper to apply the new values for the modeled attributes.

Supported API: false

Parameters:
object -
values -
locale -
props -
Returns:
Object
Throws:
WTException
See Also:
AttributeHelper

setIBAValues

public static void setIBAValues(IBAHolder ibaHolder,
                                Hashtable values,
                                Locale locale)
                         throws WTException
This method applies the set of attribute values specified in the Hashtable to the specified IBAHolder object. If one of the attribute values passed in the Hashtable does not exist on the given IBAHolder it will be added.

Supported API: false

Parameters:
ibaHolder -
values -
locale -
Throws:
WTException

decodeAttributeName

public static String decodeAttributeName(String attributeName)


Supported API: false

Parameters:
attributeName -
Returns:
String

encodeAttributeName

public static String encodeAttributeName(String attributeName)


Supported API: false

Parameters:
attributeName -
Returns:
String