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
Modifier and TypeFieldDescriptionprotected String
protected String
protected String
protected OpenMetadataTypeDefAttributeStatus
protected OpenMetadataAttributeTypeDef
protected OpenMetadataAttributeCardinality
protected String
protected List<ExternalStandardTypeMapping>
protected boolean
protected boolean
protected String
protected int
protected int
Fields inherited from class org.odpi.openmetadata.frameworks.governanceaction.properties.OpenMetadataTypeDefElementHeader
CURRENT_TYPE_DEF_HEADER_VERSION
-
Constructor Summary
ConstructorDescriptionDefault constructor creates an empty OpenMetadataTypeDefAttribute.Copy/clone constructor initialized with the values from the supplied template. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Verify 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.int
Return the maximum number of values for this attribute (relevant for Arrays, Sets and Maps).int
Return the minimum number of values for this attribute (relevant for Arrays, Sets and Maps).int
hashCode()
Int for hash mapboolean
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
(OpenMetadataAttributeCardinality 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
(OpenMetadataTypeDefAttributeStatus attributeStatus) Set up the status of this attribute.void
setAttributeType
(OpenMetadataAttributeTypeDef 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<ExternalStandardTypeMapping> externalStandardTypeMappings) 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).toString()
Standard toString method.
-
Field Details
-
attributeName
-
attributeType
-
attributeStatus
-
replacedByAttribute
-
attributeDescription
-
attributeDescriptionGUID
-
cardinality
-
valuesMinCount
protected int valuesMinCount -
valuesMaxCount
protected int valuesMaxCount -
isIndexable
protected boolean isIndexable -
isUnique
protected boolean isUnique -
defaultValue
-
externalStandardTypeMappings
-
-
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
-