public class TypeDefAttribute extends TypeDefElementHeader
| Modifier and Type | Field and Description |
|---|---|
protected String |
attributeDescription |
protected String |
attributeDescriptionGUID |
protected String |
attributeName |
protected TypeDefAttributeStatus |
attributeStatus |
protected AttributeTypeDef |
attributeType |
protected AttributeCardinality |
cardinality |
protected String |
defaultValue |
protected List<ExternalStandardMapping> |
externalStandardMappings |
protected boolean |
isIndexable |
protected boolean |
isUnique |
protected String |
replacedByAttribute |
protected int |
valuesMaxCount |
protected int |
valuesMinCount |
CURRENT_TYPE_DEF_HEADER_VERSION| Constructor and Description |
|---|
TypeDefAttribute()
Default constructor creates an empty TypeDefAttribute.
|
TypeDefAttribute(TypeDefAttribute template)
Copy/clone constructor initialized with the values from the supplied template.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object objectToCompare)
Verify that supplied object has the same properties.
|
AttributeCardinality |
getAttributeCardinality()
Return the cardinality of this attribute.
|
String |
getAttributeDescription()
Return the short description of the attribute.
|
String |
getAttributeDescriptionGUID()
Return the unique id of the glossary term that describes this attribute (or null if
no attribute defined).
|
String |
getAttributeName()
Return the name of this attribute.
|
TypeDefAttributeStatus |
getAttributeStatus()
Return the status of this attribute.
|
AttributeTypeDef |
getAttributeType()
Return the name of the type for the value in this attribute.
|
String |
getDefaultValue()
Return the default value for this attribute.
|
List<ExternalStandardMapping> |
getExternalStandardMappings()
Return the list of mappings to external standards.
|
String |
getReplacedByAttribute()
If the attribute has been renamed, this contains the name of the new attribute.
|
int |
getValuesMaxCount()
Return the maximum number of values for this attribute (relevant for Arrays, Sets and Maps).
|
int |
getValuesMinCount()
Return the minimum number of values for this attribute (relevant for Arrays, Sets and Maps).
|
int |
hashCode()
Int for hash map
|
boolean |
isIndexable()
Return whether this attribute should be included in the metadata collection's search index.
|
boolean |
isUnique()
Return whether the value for this attribute is unique across the specific instances of Struct, Classification,
Entity or Relationship types that this attribute included in.
|
void |
setAttributeCardinality(AttributeCardinality attributeCardinality)
Set up the cardinality for this attribute.
|
void |
setAttributeDescription(String attributeDescription)
Set up the short description of the attribute.
|
void |
setAttributeDescriptionGUID(String attributeDescriptionGUID)
Set up the unique id of the glossary term that describes this attribute (or null if
no attribute defined).
|
void |
setAttributeName(String attributeName)
Set up the name of this attribute.
|
void |
setAttributeStatus(TypeDefAttributeStatus attributeStatus)
Set up the status of this attribute.
|
void |
setAttributeType(AttributeTypeDef attributeType)
Set up the name of the type for the value in this attribute.
|
void |
setDefaultValue(String defaultValue)
Set up the default value for this attribute.
|
void |
setExternalStandardMappings(List<ExternalStandardMapping> externalStandardMappings)
Set up the list of mappings to external standards.
|
void |
setIndexable(boolean indexable)
Set up the isIndexable flag.
|
void |
setReplacedByAttribute(String replacedByAttribute)
If the attribute has been renamed, this contains the name of the new attribute.
|
void |
setUnique(boolean unique)
Set up the isUnique flag.
|
void |
setValuesMaxCount(int valuesMaxCount)
Set up the maximum number of values for this attribute (relevant for Arrays, Sets and Maps).
|
void |
setValuesMinCount(int valuesMinCount)
Set up the minimum number of values for this attribute (relevant for Arrays, Sets and Maps).
|
String |
toString()
Standard toString method.
|
getHeaderVersion, setHeaderVersionprotected String attributeName
protected AttributeTypeDef attributeType
protected TypeDefAttributeStatus attributeStatus
protected String replacedByAttribute
protected String attributeDescription
protected String attributeDescriptionGUID
protected AttributeCardinality cardinality
protected int valuesMinCount
protected int valuesMaxCount
protected boolean isIndexable
protected boolean isUnique
protected String defaultValue
protected List<ExternalStandardMapping> externalStandardMappings
public TypeDefAttribute()
public TypeDefAttribute(TypeDefAttribute template)
template - TypeDefAttribute to copypublic String getAttributeName()
public void setAttributeName(String attributeName)
attributeName - String namepublic AttributeTypeDef getAttributeType()
public void setAttributeType(AttributeTypeDef attributeType)
attributeType - AttributeTypeDefpublic TypeDefAttributeStatus getAttributeStatus()
public void setAttributeStatus(TypeDefAttributeStatus attributeStatus)
attributeStatus - status (null means ACTIVE)public String getReplacedByAttribute()
public void setReplacedByAttribute(String replacedByAttribute)
replacedByAttribute - new attribute namepublic String getAttributeDescription()
public void setAttributeDescription(String attributeDescription)
attributeDescription - String descriptionpublic String getAttributeDescriptionGUID()
public void setAttributeDescriptionGUID(String attributeDescriptionGUID)
attributeDescriptionGUID - String guidpublic AttributeCardinality getAttributeCardinality()
public void setAttributeCardinality(AttributeCardinality attributeCardinality)
attributeCardinality - enum valuepublic int getValuesMinCount()
public void setValuesMinCount(int valuesMinCount)
valuesMinCount - int minimum countpublic int getValuesMaxCount()
public void setValuesMaxCount(int valuesMaxCount)
valuesMaxCount - int maximum countpublic boolean isUnique()
public void setUnique(boolean unique)
unique - boolean isUnique flagpublic boolean isIndexable()
public void setIndexable(boolean indexable)
indexable - boolean isIndexable flagpublic String getDefaultValue()
public void setDefaultValue(String defaultValue)
defaultValue - Stringpublic List<ExternalStandardMapping> getExternalStandardMappings()
public void setExternalStandardMappings(List<ExternalStandardMapping> externalStandardMappings)
externalStandardMappings - ExternalStandardMappings listpublic String toString()
public boolean equals(Object objectToCompare)
Copyright © 2018–2021 LF AI & Data Foundation. All rights reserved.