Package com.emc.documentum.rest.model
Class DefaultValue
java.lang.Object
com.emc.documentum.rest.model.DefaultValue
Default value for
AttributeInfo
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
static final int
static final int
-
Constructor Summary
ConstructorDescriptionDefaultValue
(String expressionText, boolean literal) Deprecated.deprecated, and this method only for internal useDefaultValue
(String id, String expressionText, int expressionType) ConstructorDefaultValue
(String id, String expressionText, int expressionType, boolean builtIn) Constructor -
Method Summary
Modifier and TypeMethodDescriptionvoid
appendExpressionText
(String moreExpression) Append expressionGet expression textint
Get expression typegetId()
Get default value idboolean
Check if default value is built-in expressionConvert expression to real objecttoString()
-
Field Details
-
TYPE_BOOLEAN
public static final int TYPE_BOOLEAN- See Also:
-
TYPE_INTEGER
public static final int TYPE_INTEGER- See Also:
-
TYPE_STRING
public static final int TYPE_STRING- See Also:
-
TYPE_ID
public static final int TYPE_ID- See Also:
-
TYPE_DATE
public static final int TYPE_DATE- See Also:
-
TYPE_DOUBLE
public static final int TYPE_DOUBLE- See Also:
-
-
Constructor Details
-
DefaultValue
Constructor- Parameters:
id
- default value idexpressionText
- default value expression textexpressionType
- default value expression type
-
DefaultValue
Constructor- Parameters:
id
- default value idexpressionText
- default value expression textexpressionType
- default value expression typebuiltIn
- built-in expression or not
-
DefaultValue
Deprecated.deprecated, and this method only for internal use- Parameters:
expressionText
- default value expression textliteral
- whether set default literal or expression
-
-
Method Details
-
getId
Get default value id- Returns:
- default value id
-
getExpressionText
Get expression text- Returns:
- expression text
-
isExpression
public boolean isExpression()Check if default value is built-in expression- Returns:
true
if it is built-in expression
-
getExpressionType
public int getExpressionType()Get expression type- Returns:
- expression type
-
appendExpressionText
Append expression- Parameters:
moreExpression
- expression to append
-
toString
-
toObjectWithType
Convert expression to real object- Returns:
- the expression type
-