Class DataField
java.lang.Object
org.odpi.openmetadata.frameworks.discovery.properties.PropertyBase
org.odpi.openmetadata.frameworks.discovery.properties.DataField
- All Implemented Interfaces:
Serializable
DataField describes a single data field (column, attribute or property) discovered during the analysis of an asset. It provides an anchor for
annotations that are specific to the field.
- See Also:
-
Field Summary
Fields inherited from class org.odpi.openmetadata.frameworks.discovery.properties.PropertyBase
CURRENT_AUDIT_HEADER_VERSION
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Compare the values of the supplied object with those stored in the current object.Return any additional properties.Return a list of alternative names for the data field.int
Return the number of the annotations currently attached to this data field.Return description of this data field.Return the name of this data field.Return the name of the namespace that this type belongs to.int
Return the position (index) of the data field in the schema.Return the order that the data field instances are arranged in - if any.Return the name of type of this data field.Return the default value for the data field.boolean
Return whether the data field is deprecated or not.boolean
Return whether the field is nullable or not.int
Return the length of the data field.int
Return the number of linked data fields.int
Return the maximum number of instances allowed for this data field.int
Return this minimum number of instances allowed for this data field.int
Return the minimum length of the data.int
Return the number of nested data fields.int
Return the number of significant digits to the right of decimal point.int
Return the number of significant digits before the decimal point (zero means it is an integer).long
Return the incremental version number.Return the descriptive version identifier.int
hashCode()
Create a hash code for this element type.void
setAdditionalProperties
(Map<String, String> additionalProperties) Set up any additional properties.void
setDataFieldAliases
(List<String> dataFieldAliases) Set up a list of alternative names for the data field.void
setDataFieldAnnotations
(int dataFieldAnnotations) Set up the number of the annotations currently attached to this data field.void
setDataFieldDescription
(String dataFieldDescription) Set up the description of this data field.void
setDataFieldName
(String dataFieldName) Set up the name of this data field.void
setDataFieldNamespace
(String dataFieldNamespace) Set up the name of the namespace that this type belongs to.void
setDataFieldPosition
(int dataFieldPosition) Set up the position (index) of the data field in the schema.void
setDataFieldSortOrder
(DataItemSortOrder dataFieldSortOrder) Set up the order that the data field instances are arranged in - if any.void
setDataFieldType
(String dataFieldType) Set up the name of type of this data field.void
setDefaultValue
(String defaultValue) Set up the default value for the data field.void
setIsDeprecated
(boolean deprecated) Set whether the data field is deprecated or not.void
setIsNullable
(boolean nullable) Set up whether the field is nullable or not.void
setLength
(int length) Set up the length of the data field.void
setLinkedDataFields
(int linkedDataFields) Set up the number of linked data fields.void
setMaxCardinality
(int maxCardinality) Set up the maximum number of instances allowed for this data field.void
setMinCardinality
(int minCardinality) Set up the minimum number of instances allowed for this data field.void
setMinimumLength
(int minimumLength) Set up the minimum length of the data.void
setNestedDataFields
(int nestedDataFields) Set up the number of nested data fields.void
setPrecision
(int precision) Set up the number of significant digits to the right of decimal point.void
setSignificantDigits
(int significantDigits) Set up the number of significant digits before the decimal point (zero means it is an integer).void
setVersion
(long version) Set up the incremental version number.void
setVersionIdentifier
(String versionIdentifier) Set up the descriptive version identifier.toString()
Standard toString method.Methods inherited from class org.odpi.openmetadata.frameworks.discovery.properties.PropertyBase
getElementHeader, getExtendedProperties, getHeaderVersion, getTypeName, setElementHeader, setExtendedProperties, setHeaderVersion, setTypeName
-
Constructor Details
-
DataField
public DataField()Default constructor -
DataField
Copy clone constructor- Parameters:
template
- object to copy
-
-
Method Details
-
getDataFieldPosition
public int getDataFieldPosition()Return the position (index) of the data field in the schema.- Returns:
- integer
-
setDataFieldPosition
public void setDataFieldPosition(int dataFieldPosition) Set up the position (index) of the data field in the schema.- Parameters:
dataFieldPosition
- integer
-
getDataFieldName
Return the name of this data field.- Returns:
- string name
-
setDataFieldName
Set up the name of this data field.- Parameters:
dataFieldName
- string name
-
getDataFieldType
Return the name of type of this data field.- Returns:
- string type name
-
setDataFieldType
Set up the name of type of this data field. This can be used when building the schema.- Parameters:
dataFieldType
- string type name
-
getDataFieldDescription
Return description of this data field.- Returns:
- text
-
setDataFieldDescription
Set up the description of this data field.- Parameters:
dataFieldDescription
- text
-
getDataFieldNamespace
Return the name of the namespace that this type belongs to.- Returns:
- string name
-
setDataFieldNamespace
Set up the name of the namespace that this type belongs to.- Parameters:
dataFieldNamespace
- string name
-
getDataFieldAliases
Return a list of alternative names for the data field.- Returns:
- list of names
-
setDataFieldAliases
Set up a list of alternative names for the data field.- Parameters:
dataFieldAliases
- list of names
-
getDataFieldSortOrder
Return the order that the data field instances are arranged in - if any.- Returns:
- DataItemSortOrder enum
-
setDataFieldSortOrder
Set up the order that the data field instances are arranged in - if any.- Parameters:
dataFieldSortOrder
- DataItemSortOrder enum
-
getMinCardinality
public int getMinCardinality()Return this minimum number of instances allowed for this data field.- Returns:
- int
-
setMinCardinality
public void setMinCardinality(int minCardinality) Set up the minimum number of instances allowed for this data field.- Parameters:
minCardinality
- int
-
getMaxCardinality
public int getMaxCardinality()Return the maximum number of instances allowed for this data field.- Returns:
- int (-1 means infinite)
-
setMaxCardinality
public void setMaxCardinality(int maxCardinality) Set up the maximum number of instances allowed for this data field.- Parameters:
maxCardinality
- int (-1 means infinite)
-
getIsNullable
public boolean getIsNullable()Return whether the field is nullable or not.- Returns:
- boolean
-
setIsNullable
public void setIsNullable(boolean nullable) Set up whether the field is nullable or not.- Parameters:
nullable
- boolean
-
getMinimumLength
public int getMinimumLength()Return the minimum length of the data.- Returns:
- int
-
setMinimumLength
public void setMinimumLength(int minimumLength) Set up the minimum length of the data.- Parameters:
minimumLength
- int
-
getLength
public int getLength()Return the length of the data field.- Returns:
- int
-
setLength
public void setLength(int length) Set up the length of the data field.- Parameters:
length
- int
-
getPrecision
public int getPrecision()Return the number of significant digits to the right of decimal point.- Returns:
- int
-
setPrecision
public void setPrecision(int precision) Set up the number of significant digits to the right of decimal point.- Parameters:
precision
- int
-
getSignificantDigits
public int getSignificantDigits()Return the number of significant digits before the decimal point (zero means it is an integer).- Returns:
- int
-
setSignificantDigits
public void setSignificantDigits(int significantDigits) Set up the number of significant digits before the decimal point (zero means it is an integer).- Parameters:
significantDigits
- int
-
getIsDeprecated
public boolean getIsDeprecated()Return whether the data field is deprecated or not. Default is false.- Returns:
- boolean flag
-
setIsDeprecated
public void setIsDeprecated(boolean deprecated) Set whether the data field is deprecated or not. Default is false.- Parameters:
deprecated
- boolean flag
-
getDefaultValue
Return the default value for the data field. Null means no default value set up.- Returns:
- String containing default value
-
setDefaultValue
Set up the default value for the data field. Null means no default value set up.- Parameters:
defaultValue
- String containing default value
-
getVersion
public long getVersion()Return the incremental version number.- Returns:
- long
-
setVersion
public void setVersion(long version) Set up the incremental version number.- Parameters:
version
- long
-
getVersionIdentifier
Return the descriptive version identifier.- Returns:
- string
-
setVersionIdentifier
Set up the descriptive version identifier.- Parameters:
versionIdentifier
- string
-
getAdditionalProperties
Return any additional properties.- Returns:
- map of property name to property value
-
setAdditionalProperties
Set up any additional properties.- Parameters:
additionalProperties
- map of property name to property value
-
getDataFieldAnnotations
public int getDataFieldAnnotations()Return the number of the annotations currently attached to this data field.- Returns:
- integer
-
setDataFieldAnnotations
public void setDataFieldAnnotations(int dataFieldAnnotations) Set up the number of the annotations currently attached to this data field.- Parameters:
dataFieldAnnotations
- integer
-
getNestedDataFields
public int getNestedDataFields()Return the number of nested data fields.- Returns:
- integer
-
setNestedDataFields
public void setNestedDataFields(int nestedDataFields) Set up the number of nested data fields.- Parameters:
nestedDataFields
- integer
-
getLinkedDataFields
public int getLinkedDataFields()Return the number of linked data fields.- Returns:
- integer
-
setLinkedDataFields
public void setLinkedDataFields(int linkedDataFields) Set up the number of linked data fields.- Parameters:
linkedDataFields
- integer
-
toString
Standard toString method. -
equals
Compare the values of the supplied object with those stored in the current object. -
hashCode
public int hashCode()Create a hash code for this element type.
-