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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAttrDependencies(String dependency) Add attribute dependencyvoidaddConstraint(ValueConstraint constraint) voidaddDefaultValue(DefaultValue defaultValue) Deprecated.voidaddMappingTable(String value, String display, String desc) voidAdd 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()voidvoidsetAttrLength(Integer attrLength) Set attribute lengthvoidsetAttrLifecycles(Map<String, Map<String, AttributeLifecycleInfo>> attrLifecycles) voidsetAttrName(String attrName) Set attribute namevoidsetAttrRepeating(Boolean attrRepeating) Set attribute repeating markvoidsetAttrType(String attrType) Set attribute typevoidsetCategory(String category) voidsetCommentText(String commentText) voidsetConstraints(List<ValueConstraint> constraints) voidsetDefaultExpression(String defaultExpression) voidsetDefaultLiteral(String defaultLiteral) voidsetDefaultValueList(List<DefaultValue> defaultValueList) voidsetDependencies(List<String> dependencies) voidsetDisplayHint(Integer displayHint) voidsetHelpText(String helpText) voidsetIgnoreConstraints(Boolean ignoreConstraints) voidsetIgnoreImmutable(Boolean ignoreImmutable) voidsetIsHidden(Boolean isHidden) Change hiddenness of the attributevoidsetIsRequired(Boolean isRequired) Make the attribute required or notvoidsetIsSearchable(Boolean isSearchable) Change seachable of attributevoidsetLabelText(String labelText) Set label textvoidsetMappingTables(List<MappingTable> mappingTables) voidsetNotNull(Boolean notNull) Change nullable of attributevoidsetNotNullEnforce(Enforce notNullEnforce) voidsetNotNullMessage(String notNullMessage) voidsetReadOnly(Boolean readOnly) Make the attribute read-only or notvoidsetVaDef(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:
trueif 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:
trueif the attribute is hidden one
-
setIsHidden
Change hiddenness of the attribute- Parameters:
isHidden- hidden option
-
getIsRequired
Check if the attribute is required- Returns:
trueif 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:
trueif attribute is read-only
-
setReadOnly
Make the attribute read-only or not- Parameters:
readOnly- read-only option
-
getIsSearchable
Check if attribute is searchable- Returns:
trueif 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()
-