wt.epm.attributes
Class EPMDefaultAttributeDelegate
java.lang.Object
wt.epm.attributes.EPMDefaultAttributeDelegate
- All Implemented Interfaces:
- EPMAttributeDelegate
- Direct Known Subclasses:
- EPMAttributeDelegateWithWarnings
- public class EPMDefaultAttributeDelegate
- extends Object
- implements EPMAttributeDelegate
Default Attribute Delegate.
The delegate will be used by default during upload and download if no customization is defined in service.properties.
This delegate is designed to handle Pro/E parameters during upload and download.
The delegate will expect the Date type of parameter as string value.
The date format defined by property wt.epm.attributes.dateFormat in wt.properties will be used to convert string value to timestamp and vice-versa.
The default value for date format is "yyyy-MM-dd HH:mm:ss z".
The format should be defined in symbols as defined in java.text.SimpleDateFormat.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RESOURCE
protected static final String RESOURCE
- See Also:
- Constant Field Values
dateFormat
protected static String dateFormat
EPMDefaultAttributeDelegate
public EPMDefaultAttributeDelegate()
convertToNDValue
public EPMNDAttribute convertToNDValue(IBAHolder ibaHolder,
AbstractValueView ibaValue,
String cadParameterName)
throws WTException
- Given the IBA value in Windchill, return EPMNDAttribute representation of same.
If the IBA value is not to be propogated to CAD application then return null.
- Specified by:
convertToNDValue
in interface EPMAttributeDelegate
- Throws:
WTException
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.
- Specified by:
convertToIBAValue
in interface EPMAttributeDelegate
- Throws:
WTException