Class AttributeValue
java.lang.Object
com.emc.documentum.rest.dfc.conversion.AttributeValue
A utility to handle attribute value
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
formatDate
(Date dateValue) Format date.static Object
getValue
(com.documentum.fc.client.IDfTypedObject dfcObject, com.documentum.fc.common.IDfAttr attribute, boolean convertDate) Get attribute value fromdfcObject
static Object
getValue
(com.documentum.fc.client.IDfTypedObject dfcObject, com.documentum.fc.common.IDfAttr attribute, String objectType, boolean convertDate) Get attribute value fromdfcObject
static Object
getValue
(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 fromdfcObject
convertDate
-true
to 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 fromdfcObject
objectType
- the data object type to checkconvertDate
-true
to 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 fromdfcObject
convertDate
-true
to 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
-