com.ptc.windchill.uwgm.proesrv.attribute
Class AttributeHelper

java.lang.Object
  extended bycom.ptc.windchill.uwgm.proesrv.attribute.AttributeHelper

public class AttributeHelper
extends Object


Field Summary
static Object EDIT_IBAS
           
private static HashMap ibaMap
           
private static Log log
           
private static Properties mapping
           
private static HashMap paramMap
           
private static HashMap proeUnits
           
private static String PROPERTIES_FILE
           
(package private) static boolean UNITS_ENABLED
           
 
Constructor Summary
private AttributeHelper()
           
 
Method Summary
static int convertToProEValueType(int epmValueType, boolean isJ03)
           
(package private) static HashMap createProeUnitsMap()
           
static WTKeyedMap getAttributeInfo(WTCollection ibaHolders)
          Prepare IBA information in the String form to send to the Client Connector.
static String getDesignatedParamName(String ibaName)
           
(package private) static Double getEquivalentProeValue(UnitValueDefaultView attributeValue, Hashtable unitConversionMap)
           
static String getIBAName(String ibaName)
           
static HashMap getParamDefValue(Collection parameters)
           
private static String[] getParamInfo(AbstractValueView aVal, boolean isJ03)
           
private static String getPropPath()
           
static Hashtable getUnitConversionMap(HashMap incomingParams)
           
(package private) static boolean isUnitsEnbled()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

UNITS_ENABLED

static boolean UNITS_ENABLED

EDIT_IBAS

public static final Object EDIT_IBAS

PROPERTIES_FILE

private static final String PROPERTIES_FILE
See Also:
Constant Field Values

paramMap

private static HashMap paramMap

ibaMap

private static HashMap ibaMap

mapping

private static Properties mapping

proeUnits

private static final HashMap proeUnits

log

private static Log log
Constructor Detail

AttributeHelper

private AttributeHelper()
Method Detail

getPropPath

private static String getPropPath()

createProeUnitsMap

static HashMap createProeUnitsMap()

isUnitsEnbled

static boolean isUnitsEnbled()

getUnitConversionMap

public static Hashtable getUnitConversionMap(HashMap incomingParams)

getEquivalentProeValue

static Double getEquivalentProeValue(UnitValueDefaultView attributeValue,
                                     Hashtable unitConversionMap)
                              throws WTException
Throws:
WTException

getParamDefValue

public static HashMap getParamDefValue(Collection parameters)
                                throws WTException
Throws:
WTException

getDesignatedParamName

public static String getDesignatedParamName(String ibaName)

getIBAName

public static String getIBAName(String ibaName)

getAttributeInfo

public static WTKeyedMap getAttributeInfo(WTCollection ibaHolders)
                                   throws WTException,
                                          RemoteException
Prepare IBA information in the String form to send to the Client Connector. For a collection of IBAHolders produce a resulting map with IBAHolder object as a key and a Map [attr.name -> attr.value] as a value. NB! All attribute values are being converted to String. If a particular IBAHolder from the input collection does not really have any attributes, it may be skipped from the resulting Map.

Parameters:
ibaHolders - WTCollection of IBAHolder objects
Returns:
WTKeyedMap where a key is IBAHolder, a value is List of String[3]: [1] is a paramName, [2] is a param type from EPMNDConst, [3] is a value
Throws:
WTException - when appropriate
NullPointerException - if input collection is null
ClassCastException - if an object in the input collection is not an IBAHolder
RemoteException

getParamInfo

private static String[] getParamInfo(AbstractValueView aVal,
                                     boolean isJ03)

convertToProEValueType

public static int convertToProEValueType(int epmValueType,
                                         boolean isJ03)