Class AttributeValue
java.lang.Object
com.emc.documentum.rest.dfc.conversion.AttributeValue
A utility to handle attribute value
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringformatDate(Date dateValue) Format date.static ObjectgetValue(com.documentum.fc.client.IDfTypedObject dfcObject, com.documentum.fc.common.IDfAttr attribute, boolean convertDate) Get attribute value fromdfcObjectstatic ObjectgetValue(com.documentum.fc.client.IDfTypedObject dfcObject, com.documentum.fc.common.IDfAttr attribute, String objectType, boolean convertDate) Get attribute value fromdfcObjectstatic ObjectgetValue(com.documentum.fc.client.IDfTypedObject dfcObject, String objectType, String attrName, boolean convertDate) Get attribute value fromdfcObject
-
Method Details
-
getValue
public static Object getValue(com.documentum.fc.client.IDfTypedObject dfcObject, com.documentum.fc.common.IDfAttr attribute, boolean convertDate) throws com.documentum.fc.common.DfException Get attribute value fromdfcObject- Parameters:
dfcObject- dfc objectattribute- attribute to get its value fromdfcObjectconvertDate-trueto format date- Returns:
- attribute value
- Throws:
com.documentum.fc.common.DfException- exception during the operation
-
getValue
public static Object getValue(com.documentum.fc.client.IDfTypedObject dfcObject, com.documentum.fc.common.IDfAttr attribute, String objectType, boolean convertDate) throws com.documentum.fc.common.DfException Get attribute value fromdfcObject- Parameters:
dfcObject- dfc objectattribute- attribute to get its value fromdfcObjectobjectType- the data object type to checkconvertDate-trueto format date- Returns:
- attribute value
- Throws:
com.documentum.fc.common.DfException- exception during the operation
-
getValue
public static Object getValue(com.documentum.fc.client.IDfTypedObject dfcObject, String objectType, String attrName, boolean convertDate) throws com.documentum.fc.common.DfException Get attribute value fromdfcObject- Parameters:
dfcObject- dfc objectobjectType- the data object type to checkattrName- attribute name to get the attribute fromdfcObjectconvertDate-trueto format date- Returns:
- attribute value
- Throws:
com.documentum.fc.common.DfException- exception during the operation
-
formatDate
Format date.- Parameters:
dateValue- the date to format- Returns:
- formatted date
-