com.ptc.windchill.uwgm.proesrv.attribute
Class AttributeHelper
java.lang.Object
com.ptc.windchill.uwgm.proesrv.attribute.AttributeHelper
- public class AttributeHelper
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
AttributeHelper
private AttributeHelper()
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)