public class Attribute extends Referenceable
| Constructor and Description |
|---|
Attribute() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
canEqual(Object other) |
boolean |
equals(Object o) |
List<String> |
getAliases()
Return a list of alternative names for the attribute.
|
boolean |
getAllowsDuplicateValues()
Return whether the same value can be used by more than one instance of this attribute.
|
String |
getDataType()
Return the data type for this element.
|
String |
getDefaultValue()
Return the default value for the element.
|
String |
getDefaultValueOverride()
Return any default value for this attribute that would override the default defined in the
schema element for this attribute's type (note only used is type is primitive).
|
String |
getDescription()
Returns the stored description property for the schema element.
|
String |
getDisplayName()
Return the simple name of the schema element.
|
String |
getExternalTypeGUID()
Return the unique identifier of this column's type.
|
String |
getFixedValue()
Return a fixed literal value - an alternative to default value.
|
boolean |
getIsDeprecated()
Returns true if the schema element deprecated
|
boolean |
getIsNullable()
Return whether the field is nullable or not.
|
int |
getLength()
Return the length of the data field.
|
int |
getMaxCardinality()
Return the maximum number of instances allowed for this attribute.
|
int |
getMinCardinality()
Return this minimum number of instances allowed for this attribute.
|
int |
getMinimumLength()
Return the minimum length of the data.
|
String |
getNativeClass()
Return the name of the Java class to use to represent this type.
|
boolean |
getOrderedValues()
Return whether the attribute instances are arranged in an order.
|
int |
getPosition()
Return the position of this schema attribute in its parent schema.
|
int |
getPrecision()
Return the number of significant digits to the right of decimal point.
|
DataItemSortOrder |
getSortOrder()
Return the order that the attribute instances are arranged in - if any.
|
String |
getValidValuesSetGUID()
Return the set of valid values for this column.
|
int |
hashCode() |
void |
setAliases(List<String> aliases)
Set up a list of alternative names for the attribute.
|
void |
setAllowsDuplicateValues(boolean allowsDuplicateValues)
Set up whether the same value can be used by more than one instance of this attribute.
|
void |
setDataType(String dataType)
Set up the data type for this element.
|
void |
setDefaultValue(String defaultValue)
Set up the default value for the element.
|
void |
setDefaultValueOverride(String defaultValueOverride)
Set up any default value for this attribute that would override the default defined in the
schema element for this attribute's type (note only used is type is primitive).
|
void |
setDescription(String description)
Set up the stored description property for the schema element.
|
void |
setDisplayName(String displayName)
Set up the simple name of the schema element.
|
void |
setExternalTypeGUID(String externalTypeGUID)
If the type of this column is represented by an external (standard type) put its value here.
|
void |
setFixedValue(String fixedValue)
If the column contains a fixed literal value, set this value here - an alternative to default value.
|
void |
setIsDeprecated(boolean isDeprecated)
Set whether the schema element deprecated or not.
|
void |
setIsNullable(boolean isNullable)
Set up whether the field is nullable or not.
|
void |
setLength(int length)
Set up the length of the data field.
|
void |
setMaxCardinality(int maxCardinality)
Set up the maximum number of instances allowed for this attribute.
|
void |
setMinCardinality(int minCardinality)
Set up the minimum number of instances allowed for this attribute.
|
void |
setMinimumLength(int minimumLength)
Set up the minimum length of the data.
|
void |
setNativeClass(String nativeClass)
Set up the name of the Java class to use to represent this type.
|
void |
setOrderedValues(boolean orderedValues)
Set up whether the attribute instances are arranged in an order.
|
void |
setPosition(int position)
Set up the position of this schema attribute in its parent schema.
|
void |
setPrecision(int precision)
Set up the number of significant digits to the right of decimal point.
|
void |
setSortOrder(DataItemSortOrder sortOrder)
Set up the order that the attribute instances are arranged in - if any.
|
void |
setValidValuesSetGUID(String validValuesSetGUID)
If the type is controlled by a fixed set of values, set up the unique identifier of the valid values set
that lists the valid values.
|
String |
toString() |
getAdditionalProperties, getQualifiedName, setAdditionalProperties, setQualifiedNamepublic String getDisplayName()
public String getDescription()
public boolean getIsDeprecated()
public int getPosition()
public int getMinCardinality()
public int getMaxCardinality()
public boolean getAllowsDuplicateValues()
public boolean getOrderedValues()
public String getDefaultValueOverride()
public DataItemSortOrder getSortOrder()
public int getMinimumLength()
public int getLength()
public int getPrecision()
public boolean getIsNullable()
public String getNativeClass()
public List<String> getAliases()
public String getDataType()
public String getDefaultValue()
public String getFixedValue()
public String getExternalTypeGUID()
public String getValidValuesSetGUID()
public void setDisplayName(String displayName)
displayName - String display namepublic void setDescription(String description)
description - string descriptionpublic void setIsDeprecated(boolean isDeprecated)
isDeprecated - boolean flagpublic void setPosition(int position)
position - int position in schema - 0 means firstpublic void setMinCardinality(int minCardinality)
minCardinality - intpublic void setMaxCardinality(int maxCardinality)
maxCardinality - int (-1 means infinite)public void setAllowsDuplicateValues(boolean allowsDuplicateValues)
allowsDuplicateValues - boolean flagpublic void setOrderedValues(boolean orderedValues)
orderedValues - boolean flagpublic void setDefaultValueOverride(String defaultValueOverride)
defaultValueOverride - String default value overridepublic void setSortOrder(DataItemSortOrder sortOrder)
sortOrder - DataItemSortOrder enumpublic void setMinimumLength(int minimumLength)
minimumLength - intpublic void setLength(int length)
length - intpublic void setPrecision(int precision)
precision - intpublic void setIsNullable(boolean isNullable)
isNullable - booleanpublic void setNativeClass(String nativeClass)
nativeClass - fully qualified Java class namepublic void setAliases(List<String> aliases)
aliases - list of namespublic void setDataType(String dataType)
dataType - data type namepublic void setDefaultValue(String defaultValue)
defaultValue - String containing default valuepublic void setFixedValue(String fixedValue)
fixedValue - stringpublic void setExternalTypeGUID(String externalTypeGUID)
externalTypeGUID - unique identifier (guid) of the external schema typepublic void setValidValuesSetGUID(String validValuesSetGUID)
validValuesSetGUID - unique identifier (guid) of the valid values setpublic boolean equals(Object o)
equals in class Referenceableprotected boolean canEqual(Object other)
canEqual in class Referenceablepublic int hashCode()
hashCode in class Referenceablepublic String toString()
toString in class ReferenceableCopyright © 2018–2021 LF AI & Data Foundation. All rights reserved.