com.ptc.epm.commands.util
Class AttributeHelper

java.lang.Object
  extended bycom.ptc.epm.commands.util.AttributeHelper

public class AttributeHelper
extends Object


Nested Class Summary
static class AttributeHelper.Server
           
 
Field Summary
private static String ECADRESOURCE
           
private static String SERVER_CLASS
           
 
Constructor Summary
AttributeHelper()
           
 
Method Summary
static void addValue(IBAHolder holder, AttributeDefDefaultView attrDef, Object value)
           
static Object createAttributeValue(AttributeDefDefaultView attrDef, String value)
           
protected static AbstractValueView createValue(AttributeDefDefaultView attrDef, Object value)
           
static void deleteValues(IBAHolder holder, AttributeDefDefaultView attrDef)
           
static Class getAttrValueClass(AttributeDefDefaultView attrDef)
           
static List getIBANames(Class forClass)
           
protected static String getName(IBAHolder holder)
           
static Object getValue(AbstractValueView attributeValue)
           
static Object getValue(IBAHolder holder, AttributeDefDefaultView attrDef)
           
static void listIBAValues(IBAHolder holder)
           
static AttributeDefDefaultView lookupAttrDef(String attrDefName)
           
static IBAHolder refreshValues(IBAHolder holder)
           
static void setValue(AbstractValueView attributeValue, Object newValue)
           
static void setValue(IBAHolder holder, AttributeDefDefaultView attrDef, Object newValue)
           
static boolean validateAttribute(String attributeName, String attributeValue)
           
static void validateTypedObject(Typed holder)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ECADRESOURCE

private static final String ECADRESOURCE
See Also:
Constant Field Values

SERVER_CLASS

private static final String SERVER_CLASS
Constructor Detail

AttributeHelper

public AttributeHelper()
Method Detail

getValue

public static Object getValue(AbstractValueView attributeValue)
                       throws WTException
Throws:
WTException

setValue

public static void setValue(AbstractValueView attributeValue,
                            Object newValue)
                     throws WTException
Throws:
WTException

createValue

protected static AbstractValueView createValue(AttributeDefDefaultView attrDef,
                                               Object value)
                                        throws WTException
Throws:
WTException

getValue

public static Object getValue(IBAHolder holder,
                              AttributeDefDefaultView attrDef)
                       throws WTException
Throws:
WTException

addValue

public static void addValue(IBAHolder holder,
                            AttributeDefDefaultView attrDef,
                            Object value)
                     throws WTException
Throws:
WTException

deleteValues

public static void deleteValues(IBAHolder holder,
                                AttributeDefDefaultView attrDef)
                         throws WTException
Throws:
WTException

setValue

public static void setValue(IBAHolder holder,
                            AttributeDefDefaultView attrDef,
                            Object newValue)
                     throws WTException
Throws:
WTException

refreshValues

public static IBAHolder refreshValues(IBAHolder holder)
                               throws WTException
Throws:
WTException

lookupAttrDef

public static AttributeDefDefaultView lookupAttrDef(String attrDefName)
                                             throws WTException
Throws:
WTException

getAttrValueClass

public static Class getAttrValueClass(AttributeDefDefaultView attrDef)

getName

protected static String getName(IBAHolder holder)

listIBAValues

public static void listIBAValues(IBAHolder holder)

getIBANames

public static List getIBANames(Class forClass)
                        throws WTException,
                               RemoteException
Throws:
WTException
RemoteException

validateTypedObject

public static void validateTypedObject(Typed holder)
                                throws WTException
Throws:
WTException

createAttributeValue

public static Object createAttributeValue(AttributeDefDefaultView attrDef,
                                          String value)
                                   throws WTException
Throws:
WTException

validateAttribute

public static boolean validateAttribute(String attributeName,
                                        String attributeValue)
                                 throws WTException
Throws:
WTException