Package com.emc.documentum.rest.model
Class AttributeInfo
java.lang.Object
com.emc.documentum.rest.model.AttributeInfo
- Direct Known Subclasses:
AttributeLifecycleInfo
Attribute info of
TypeObject
, it is meta data of attribute.
This class is not thread safe.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addAttrDependencies
(String dependency) Add attribute dependencyvoid
addConstraint
(ValueConstraint constraint) void
addDefaultValue
(DefaultValue defaultValue) Deprecated.void
addMappingTable
(String value, String display, String desc) void
Add value assistance definition itemGet attribute lengthGet attribute nameCheck if the attribute is repeating attributeGet attribute typegetCreateAttrLifecycle
(String lifecycle) getCreateAttrLifecycle
(String lifecycle, String state) Check if the attribute is hiddenCheck if the attribute is requiredCheck if attribute is searchableGet label textGet nullable of attributeCheck if attribute is read-onlygetVaDef()
void
void
setAttrLength
(Integer attrLength) Set attribute lengthvoid
setAttrLifecycles
(Map<String, Map<String, AttributeLifecycleInfo>> attrLifecycles) void
setAttrName
(String attrName) Set attribute namevoid
setAttrRepeating
(Boolean attrRepeating) Set attribute repeating markvoid
setAttrType
(String attrType) Set attribute typevoid
setCategory
(String category) void
setCommentText
(String commentText) void
setConstraints
(List<ValueConstraint> constraints) void
setDefaultExpression
(String defaultExpression) void
setDefaultLiteral
(String defaultLiteral) void
setDefaultValueList
(List<DefaultValue> defaultValueList) void
setDependencies
(List<String> dependencies) void
setDisplayHint
(Integer displayHint) void
setHelpText
(String helpText) void
setIgnoreConstraints
(Boolean ignoreConstraints) void
setIgnoreImmutable
(Boolean ignoreImmutable) void
setIsHidden
(Boolean isHidden) Change hiddenness of the attributevoid
setIsRequired
(Boolean isRequired) Make the attribute required or notvoid
setIsSearchable
(Boolean isSearchable) Change seachable of attributevoid
setLabelText
(String labelText) Set label textvoid
setMappingTables
(List<MappingTable> mappingTables) void
setNotNull
(Boolean notNull) Change nullable of attributevoid
setNotNullEnforce
(Enforce notNullEnforce) void
setNotNullMessage
(String notNullMessage) void
setReadOnly
(Boolean readOnly) Make the attribute read-only or notvoid
setVaDef
(List<ConditionalValueAssist> vaDef)
-
Constructor Details
-
AttributeInfo
public AttributeInfo()
-
-
Method Details
-
getAttrName
Get attribute name- Returns:
- attribute name
-
setAttrName
Set attribute name- Parameters:
attrName
- attribute name
-
getAttrRepeating
Check if the attribute is repeating attribute- Returns:
true
if it is repeating attribute
-
setAttrRepeating
Set attribute repeating mark- Parameters:
attrRepeating
- whether the attr is repeating
-
getAttrType
Get attribute type- Returns:
- attribute type
-
setAttrType
Set attribute type- Parameters:
attrType
- attribute type
-
getAttrLength
Get attribute length- Returns:
- attribute length
-
setAttrLength
Set attribute length- Parameters:
attrLength
- attribute length
-
getLabelText
Get label text- Returns:
- label text
-
setLabelText
Set label text- Parameters:
labelText
- label text
-
getIsHidden
Check if the attribute is hidden- Returns:
true
if the attribute is hidden one
-
setIsHidden
Change hiddenness of the attribute- Parameters:
isHidden
- hidden option
-
getIsRequired
Check if the attribute is required- Returns:
true
if attribute is required
-
setIsRequired
Make the attribute required or not- Parameters:
isRequired
- required option
-
getNotNull
Get nullable of attribute- Returns:
- nullable of attribute
-
setNotNull
Change nullable of attribute- Parameters:
notNull
- nullable option
-
getNotNullEnforce
-
setNotNullEnforce
-
getNotNullMessage
-
setNotNullMessage
-
getReadOnly
Check if attribute is read-only- Returns:
true
if attribute is read-only
-
setReadOnly
Make the attribute read-only or not- Parameters:
readOnly
- read-only option
-
getIsSearchable
Check if attribute is searchable- Returns:
true
if the attribute is searchable
-
setIsSearchable
Change seachable of attribute- Parameters:
isSearchable
- searchable option
-
addValueAssistanceDefinitionItem
Add value assistance definition item- Parameters:
item
- value assistance definition item
-
setVaDef
-
addAttrDependencies
Add attribute dependency- Parameters:
dependency
- the dependency attribute
-
setDependencies
-
getDependencies
-
getVaDef
-
addDefaultValue
Deprecated.This is a workaround because single and multiple default value are represented as attribute and elements respectively in XML representation.- Parameters:
defaultValue
- default value to add
-
getDefaultLiteral
-
setDefaultLiteral
-
getDefaultExpression
-
setDefaultExpression
-
getDefaultValueList
-
setDefaultValueList
-
getAttrLifecycles
-
setAttrLifecycles
-
getCreateAttrLifecycle
-
getCreateAttrLifecycle
-
getDisplayHint
-
setDisplayHint
-
getMappingTables
-
setMappingTables
-
addMappingTable
-
getIgnoreConstraints
-
setIgnoreConstraints
-
getConstraints
-
setConstraints
-
addConstraint
-
getHelpText
-
setHelpText
-
getCommentText
-
setCommentText
-
getCategory
-
setCategory
-
getIgnoreImmutable
-
setIgnoreImmutable
-
removeDuplicateAttributeLifecycleInfo
public void removeDuplicateAttributeLifecycleInfo()
-