public class TypeDefAttribute extends TypeDefElementHeader
| Modifier and Type | Field and Description |
|---|---|
protected String |
attributeDescription |
protected String |
attributeDescriptionGUID |
protected String |
attributeName |
protected AttributeTypeDef |
attributeType |
protected AttributeCardinality |
cardinality |
protected String |
defaultValue |
protected List<ExternalStandardMapping> |
externalStandardMappings |
protected boolean |
isIndexable |
protected boolean |
isUnique |
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 o)
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.
|
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.
|
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 |
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 |
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 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 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 o)
Copyright © 2018–2019 ODPi. All rights reserved.