public class Attribute extends Referenceable
| Constructor and Description |
|---|
Attribute() |
| Modifier and Type | Method and Description |
|---|---|
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 |
getAnchorGUID()
Gets anchor guid.
|
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.
|
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() |
boolean |
isDeprecated()
Returns true if the schema element deprecated
|
boolean |
isNullable()
Return whether the field is nullable or not.
|
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 |
setAnchorGUID(String anchorGUID)
Sets anchor guid.
|
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 |
setDeprecated(boolean deprecated)
Set whether the schema element deprecated or not.
|
void |
setDescription(String description)
Set up the stored description property for the schema element.
|
void |
setDisplayName(String name)
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 |
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 |
setNullable(boolean nullable)
Set up whether the field is nullable or not.
|
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 void setDisplayName(String name)
name - String display namepublic String getDescription()
public void setDescription(String description)
description - string descriptionpublic boolean isDeprecated()
public void setDeprecated(boolean deprecated)
deprecated - boolean flagpublic int getPosition()
public void setPosition(int position)
position - int position in schema - 0 means firstpublic int getMinCardinality()
public void setMinCardinality(int minCardinality)
minCardinality - intpublic int getMaxCardinality()
public void setMaxCardinality(int maxCardinality)
maxCardinality - int (-1 means infinite)public boolean getAllowsDuplicateValues()
public void setAllowsDuplicateValues(boolean allowsDuplicateValues)
allowsDuplicateValues - boolean flagpublic boolean getOrderedValues()
public void setOrderedValues(boolean orderedValues)
orderedValues - boolean flagpublic DataItemSortOrder getSortOrder()
public void setSortOrder(DataItemSortOrder sortOrder)
sortOrder - DataItemSortOrder enumpublic int getMinimumLength()
public void setMinimumLength(int minimumLength)
minimumLength - intpublic int getLength()
public void setLength(int length)
length - intpublic int getPrecision()
public void setPrecision(int precision)
precision - intpublic boolean isNullable()
public void setNullable(boolean nullable)
nullable - booleanpublic String getDefaultValueOverride()
public void setDefaultValueOverride(String defaultValueOverride)
defaultValueOverride - String default value overridepublic String getNativeClass()
public void setNativeClass(String nativeClass)
nativeClass - fully qualified Java class namepublic List<String> getAliases()
public void setAliases(List<String> aliases)
aliases - list of namespublic String getDataType()
public void setDataType(String dataType)
dataType - data type namepublic String getDefaultValue()
public void setDefaultValue(String defaultValue)
defaultValue - String containing default valuepublic String getFixedValue()
public void setFixedValue(String fixedValue)
fixedValue - stringpublic String getExternalTypeGUID()
public void setExternalTypeGUID(String externalTypeGUID)
externalTypeGUID - unique identifier (guid) of the external schema typepublic String getValidValuesSetGUID()
public void setValidValuesSetGUID(String validValuesSetGUID)
validValuesSetGUID - unique identifier (guid) of the valid values setpublic String getAnchorGUID()
public void setAnchorGUID(String anchorGUID)
anchorGUID - the anchor guidpublic String toString()
toString in class Referenceablepublic boolean equals(Object o)
equals in class Referenceablepublic int hashCode()
hashCode in class ReferenceableCopyright © 2018–2021 LF AI & Data Foundation. All rights reserved.