wt.epm.attributes
Class EPMAttributeDelegateWithWarnings

java.lang.Object
  extended bywt.epm.attributes.EPMDefaultAttributeDelegate
      extended bywt.epm.attributes.EPMAttributeDelegateWithWarnings
All Implemented Interfaces:
EPMAttributeDelegate

public class EPMAttributeDelegateWithWarnings
extends EPMDefaultAttributeDelegate

Implementation of EPMAttributeDelegate that does not throw exception on data type mismatch between parameter and IBA. The mismatch is only recorded as warning message that is displayed in event console. This delegate only over-rides convertToIBAValue method from EPMDefaultAttributeDelegate.


Field Summary
 
Fields inherited from class wt.epm.attributes.EPMDefaultAttributeDelegate
dateFormat, RESOURCE
 
Fields inherited from interface wt.epm.attributes.EPMAttributeDelegate
DEFAULT_DATE_FORMAT
 
Constructor Summary
EPMAttributeDelegateWithWarnings()
           
 
Method Summary
 AbstractValueView convertToIBAValue(IBAHolder ibaHolder, EPMNDAttribute inputParam, AttributeDefDefaultView attrDefView)
          Given the EPMNDAttribute from CAD Application, return the IBA Value for same.
 
Methods inherited from class wt.epm.attributes.EPMDefaultAttributeDelegate
convertToNDValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EPMAttributeDelegateWithWarnings

public EPMAttributeDelegateWithWarnings()
Method Detail

convertToIBAValue

public AbstractValueView convertToIBAValue(IBAHolder ibaHolder,
                                           EPMNDAttribute inputParam,
                                           AttributeDefDefaultView attrDefView)
                                    throws WTException
Given the EPMNDAttribute from CAD Application, return the IBA Value for same. Return null if the attribute is to be ignored and not added to the IBAHolder. Adds warning to Event Console if data types do not match or string value cannot be parsed to date value if mapped to Timestamp IBA.

Specified by:
convertToIBAValue in interface EPMAttributeDelegate
Overrides:
convertToIBAValue in class EPMDefaultAttributeDelegate
Throws:
WTException