wt.iba.value
Class IBAValueUtility

java.lang.Object
  extended bywt.iba.value.IBAValueUtility

public class IBAValueUtility
extends Object

This is a utility class designed to retrieve all the instance-based and modeled attributes for a specified IBAHolder object. There is also a utility method to retrieve a localized display string for a given instance-based attribute value. Debug statements for this class can be turned on by setting wt.iba.value.IBAValueUtility.verbose=true in wt.properties.


Field Summary
private  String[][] attributeValues
           
private  int attributeValuesIndex
           
private  AbstractValueView[] avv
           
private  DefaultAttributeContainer ibaContainer
           
private  IBAHolder ibaHolder
           
private static String measurementSystem
           
private  String[] propertyNames
           
private  int propertyNamesIndex
           
private static boolean VERBOSE
           
 
Constructor Summary
IBAValueUtility(IBAHolder ibah)
           
IBAValueUtility(IBAHolder ibah, List skipList)
          Constructor that creates the IBAValueUtility object with the specified IBAHolder and a default Locale.
IBAValueUtility(IBAHolder ibah, List skipList, Locale locale)
           
IBAValueUtility(IBAHolder ibah, Locale locale)
          Constructor that creates the IBAValueUtility object with the specified IBAHolder and Locale.
 
Method Summary
private  void debug(String message)
          Helper method to print debug messages to the system console.
 String[][] getAttributeValues()
          This method returns an array[][] of all the instance-based and modeled attributes for the IBAHolder object specified.
static String getLocalizedIBAValueDisplayString(AbstractValueView abstractValueView, Locale locale)
          This method will retrieve the localized string value for the specified AbstractValueView and Locale.
static String toString(IBAHolder ibaholder)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

VERBOSE

private static boolean VERBOSE

measurementSystem

private static String measurementSystem

ibaHolder

private IBAHolder ibaHolder

ibaContainer

private DefaultAttributeContainer ibaContainer

avv

private AbstractValueView[] avv

propertyNames

private String[] propertyNames

attributeValues

private String[][] attributeValues

attributeValuesIndex

private int attributeValuesIndex

propertyNamesIndex

private int propertyNamesIndex
Constructor Detail

IBAValueUtility

public IBAValueUtility(IBAHolder ibah,
                       Locale locale)
Constructor that creates the IBAValueUtility object with the specified IBAHolder and Locale. Retrieves and stores all the instance-based and modeled attribute values internally for the specified IBAHolder.

Supported API:false

Parameters:
ibah - The IBAHolder object referenced by IBAValueUtility.
locale - The Locale that should be utilized by IBAValueUtility.

IBAValueUtility

public IBAValueUtility(IBAHolder ibah,
                       List skipList,
                       Locale locale)

IBAValueUtility

public IBAValueUtility(IBAHolder ibah,
                       List skipList)
Constructor that creates the IBAValueUtility object with the specified IBAHolder and a default Locale. Retrieves and stores all the instance-based and modeled attribute values internally for the specified IBAHolder.

Supported API:false

Parameters:
ibah - The IBAHolder object referenced by IBAValueUtility.

IBAValueUtility

public IBAValueUtility(IBAHolder ibah)
Method Detail

toString

public static String toString(IBAHolder ibaholder)

getAttributeValues

public String[][] getAttributeValues()
This method returns an array[][] of all the instance-based and modeled attributes for the IBAHolder object specified.

Supported API:false

Returns:
An Array[][] of all the instance-based and modeled attributes.

getLocalizedIBAValueDisplayString

public static String getLocalizedIBAValueDisplayString(AbstractValueView abstractValueView,
                                                       Locale locale)
                                                throws WTException
This method will retrieve the localized string value for the specified AbstractValueView and Locale.

Supported API:false

Returns:
A localized String representing the specified AbstractValueView object.
Throws:
WTException

debug

private void debug(String message)
Helper method to print debug messages to the system console.

Supported API:false