Class DfcValueValidator
java.lang.Object
com.emc.documentum.rest.dfc.conversion.DfcValueValidator
Validator for the value used as
IDfValue-
Method Summary
Modifier and TypeMethodDescriptionstatic com.documentum.fc.common.DfExceptionGenerate validation exceptionstatic com.documentum.fc.common.IDfValuetoValidatedBoolean(Object value, boolean isValueTypeResolved) Validate Boolean valuestatic com.documentum.fc.common.IDfValuetoValidatedDouble(Object value, boolean isValueTypeResolved) Validate Double valuestatic com.documentum.fc.common.IDfValuetoValidatedId(Object value, boolean isValueTypeResolved) Validate value which should be ID attributestatic com.documentum.fc.common.IDfValuetoValidatedInteger(Object value, boolean isValueTypeResolved) Validate Integer valuestatic com.documentum.fc.common.IDfValuetoValidatedString(Object value, boolean isValueTypeResolved) Validate String valuestatic com.documentum.fc.common.IDfValuetoValidatedTime(Object value) Validate value which should be Time attribute
-
Method Details
-
toValidatedBoolean
public static com.documentum.fc.common.IDfValue toValidatedBoolean(Object value, boolean isValueTypeResolved) throws com.documentum.fc.common.DfException Validate Boolean value- Parameters:
value- the value to validateisValueTypeResolved-trueif the value type is already resolved.- Returns:
IDfValueinstance based on thevaluewhich passes validation- Throws:
com.documentum.fc.common.DfException- exception during the operation
-
toValidatedInteger
public static com.documentum.fc.common.IDfValue toValidatedInteger(Object value, boolean isValueTypeResolved) throws com.documentum.fc.common.DfException Validate Integer value- Parameters:
value- the value to validateisValueTypeResolved-trueif the value type is already resolved.- Returns:
IDfValueinstance based on thevaluewhich passes validation- Throws:
com.documentum.fc.common.DfException- exception during the operation
-
toValidatedDouble
public static com.documentum.fc.common.IDfValue toValidatedDouble(Object value, boolean isValueTypeResolved) throws com.documentum.fc.common.DfException Validate Double value- Parameters:
value- the value to validateisValueTypeResolved-trueif the value type is already resolved.- Returns:
IDfValueinstance based on thevaluewhich passes validation- Throws:
com.documentum.fc.common.DfException- exception during the operation
-
toValidatedId
public static com.documentum.fc.common.IDfValue toValidatedId(Object value, boolean isValueTypeResolved) throws com.documentum.fc.common.DfException Validate value which should be ID attribute- Parameters:
value- the value to validateisValueTypeResolved-trueif the value type is already resolved.- Returns:
IDfValueinstance based on thevaluewhich passes validation- Throws:
com.documentum.fc.common.DfException- exception during the operation
-
toValidatedString
public static com.documentum.fc.common.IDfValue toValidatedString(Object value, boolean isValueTypeResolved) throws com.documentum.fc.common.DfException Validate String value- Parameters:
value- the value to validateisValueTypeResolved-trueif the value type is already resolved.- Returns:
IDfValueinstance based on thevaluewhich passes validation- Throws:
com.documentum.fc.common.DfException- exception during the operation
-
toValidatedTime
public static com.documentum.fc.common.IDfValue toValidatedTime(Object value) throws com.documentum.fc.common.DfException Validate value which should be Time attribute- Parameters:
value- the value to validate- Returns:
IDfValueinstance based on thevaluewhich passes validation- Throws:
com.documentum.fc.common.DfException- exception during the operation
-
newValidationException
Generate validation exception- Parameters:
arg- error message argument- Returns:
- instance of
DfException
-