Class OpenMetadataTypeDefAttribute
java.lang.Object
org.odpi.openmetadata.frameworks.governanceaction.properties.OpenMetadataTypeDefElementHeader
org.odpi.openmetadata.frameworks.governanceaction.properties.OpenMetadataTypeDefAttribute
OpenMetadataTypeDefAttribute stores the properties used to describe a attribute within a Classification,
Entity or Relationship. The attribute may itself be of types Enum, Collection or Primitive Types.
-
Field Summary
Fields inherited from class org.odpi.openmetadata.frameworks.governanceaction.properties.OpenMetadataTypeDefElementHeader
CURRENT_TYPE_DEF_HEADER_VERSION -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor creates an empty OpenMetadataTypeDefAttribute.Copy/clone constructor initialized with the values from the supplied template. -
Method Summary
Modifier and TypeMethodDescriptionbooleanVerify that supplied object has the same properties.Return the cardinality of this attribute.Return the short description of the attribute.Return the unique id of the glossary term that describes this attribute (or null if no attribute defined).Return the name of this attribute.Return the status of this attribute.Return the name of the type for the value in this attribute.Return the default value for this attribute.Return the list of mappings to external standards.If the attribute has been renamed, this contains the name of the new attribute.intReturn the maximum number of values for this attribute (relevant for Arrays, Sets and Maps).intReturn the minimum number of values for this attribute (relevant for Arrays, Sets and Maps).inthashCode()Int for hash mapbooleanReturn whether this attribute should be included in the metadata collection's search index.booleanisUnique()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.voidsetAttributeCardinality(OpenMetadataAttributeCardinality attributeCardinality) Set up the cardinality for this attribute.voidsetAttributeDescription(String attributeDescription) Set up the short description of the attribute.voidsetAttributeDescriptionGUID(String attributeDescriptionGUID) Set up the unique id of the glossary term that describes this attribute (or null if no attribute defined).voidsetAttributeName(String attributeName) Set up the name of this attribute.voidsetAttributeStatus(OpenMetadataTypeDefAttributeStatus attributeStatus) Set up the status of this attribute.voidsetAttributeType(OpenMetadataAttributeTypeDef attributeType) Set up the name of the type for the value in this attribute.voidsetDefaultValue(String defaultValue) Set up the default value for this attribute.voidsetExternalStandardMappings(List<ExternalStandardTypeMapping> externalStandardTypeMappings) Set up the list of mappings to external standards.voidsetIndexable(boolean indexable) Set up the isIndexable flag.voidsetReplacedByAttribute(String replacedByAttribute) If the attribute has been renamed, this contains the name of the new attribute.voidsetUnique(boolean unique) Set up the isUnique flag.voidsetValuesMaxCount(int valuesMaxCount) Set up the maximum number of values for this attribute (relevant for Arrays, Sets and Maps).voidsetValuesMinCount(int valuesMinCount) Set up the minimum number of values for this attribute (relevant for Arrays, Sets and Maps).toString()Standard toString method.
-
Constructor Details
-
OpenMetadataTypeDefAttribute
public OpenMetadataTypeDefAttribute()Default constructor creates an empty OpenMetadataTypeDefAttribute. -
OpenMetadataTypeDefAttribute
Copy/clone constructor initialized with the values from the supplied template.- Parameters:
template- OpenMetadataTypeDefAttribute to copy
-
-
Method Details
-
getAttributeName
Return the name of this attribute.- Returns:
- String name
-
setAttributeName
Set up the name of this attribute.- Parameters:
attributeName- String name
-
getAttributeType
Return the name of the type for the value in this attribute.- Returns:
- OpenMetadataAttributeTypeDef definition of attribute type
-
setAttributeType
Set up the name of the type for the value in this attribute.- Parameters:
attributeType- OpenMetadataAttributeTypeDef
-
getAttributeStatus
Return the status of this attribute.- Returns:
- status (null means ACTIVE)
-
setAttributeStatus
Set up the status of this attribute.- Parameters:
attributeStatus- status (null means ACTIVE)
-
getReplacedByAttribute
If the attribute has been renamed, this contains the name of the new attribute.- Returns:
- new attribute name
-
setReplacedByAttribute
If the attribute has been renamed, this contains the name of the new attribute.- Parameters:
replacedByAttribute- new attribute name
-
getAttributeDescription
Return the short description of the attribute.- Returns:
- String description
-
setAttributeDescription
Set up the short description of the attribute.- Parameters:
attributeDescription- String description
-
getAttributeDescriptionGUID
Return the unique id of the glossary term that describes this attribute (or null if no attribute defined).- Returns:
- String guid
-
setAttributeDescriptionGUID
Set up the unique id of the glossary term that describes this attribute (or null if no attribute defined).- Parameters:
attributeDescriptionGUID- String guid
-
getAttributeCardinality
Return the cardinality of this attribute.- Returns:
- OpenMetadataAttributeCardinality Enum.
-
setAttributeCardinality
Set up the cardinality for this attribute.- Parameters:
attributeCardinality- enum value
-
getValuesMinCount
public int getValuesMinCount()Return the minimum number of values for this attribute (relevant for Arrays, Sets and Maps).- Returns:
- int minimum count
-
setValuesMinCount
public void setValuesMinCount(int valuesMinCount) Set up the minimum number of values for this attribute (relevant for Arrays, Sets and Maps).- Parameters:
valuesMinCount- int minimum count
-
getValuesMaxCount
public int getValuesMaxCount()Return the maximum number of values for this attribute (relevant for Arrays, Sets and Maps).- Returns:
- int maximum count
-
setValuesMaxCount
public void setValuesMaxCount(int valuesMaxCount) Set up the maximum number of values for this attribute (relevant for Arrays, Sets and Maps).- Parameters:
valuesMaxCount- int maximum count
-
isUnique
public 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.- Returns:
- boolean isUnique flag
-
setUnique
public void setUnique(boolean unique) Set up the isUnique flag. This indicates whether the value for this attribute is unique across the specific instances of Struct, Classification, Entity or Relationship types that this attribute included in.- Parameters:
unique- boolean isUnique flag
-
isIndexable
public boolean isIndexable()Return whether this attribute should be included in the metadata collection's search index.- Returns:
- boolean isIndexable flag
-
setIndexable
public void setIndexable(boolean indexable) Set up the isIndexable flag. This indicates whether this attribute should be included in the metadata collection's search index.- Parameters:
indexable- boolean isIndexable flag
-
getDefaultValue
Return the default value for this attribute.- Returns:
- String default value
-
setDefaultValue
Set up the default value for this attribute.- Parameters:
defaultValue- String
-
getExternalStandardMappings
Return the list of mappings to external standards.- Returns:
- ExternalStandardMappings list
-
setExternalStandardMappings
public void setExternalStandardMappings(List<ExternalStandardTypeMapping> externalStandardTypeMappings) Set up the list of mappings to external standards.- Parameters:
externalStandardTypeMappings- ExternalStandardMappings list
-
toString
Standard toString method. -
equals
Verify that supplied object has the same properties. -
hashCode
public int hashCode()Int for hash map
-