Class SchemaAttributeProperties
java.lang.Object
org.odpi.openmetadata.frameworks.openmetadata.properties.EntityProperties
org.odpi.openmetadata.frameworks.openmetadata.properties.OpenMetadataRootProperties
org.odpi.openmetadata.frameworks.openmetadata.properties.ReferenceableProperties
org.odpi.openmetadata.frameworks.openmetadata.properties.AuthoredReferenceableProperties
org.odpi.openmetadata.frameworks.openmetadata.properties.schema.SchemaElementProperties
org.odpi.openmetadata.frameworks.openmetadata.properties.schema.SchemaAttributeProperties
- Direct Known Subclasses:
APIParameterProperties,DataContainerProperties,EventSchemaAttributeProperties,QueryDataFieldProperties,RelationalTableProperties,TabularColumnProperties
SchemaAttributeProperties represents a data field that is part of a complex schema type.
-
Field Summary
Fields inherited from class org.odpi.openmetadata.frameworks.openmetadata.properties.OpenMetadataRootProperties
typeName -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructorCopy/clone constructor. -
Method Summary
Modifier and TypeMethodDescriptionbooleanCompare the values of the supplied object with those stored in the current object.Return a list of alternative names for the attribute.booleanReturn whether the same value can be used by more than one instance of this attribute.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).booleanReturn whether the field is nullable or not.intReturn the length of the data field.intReturn the minimum length of the data.Return the name of the Java class to use to represent this type.booleanReturn whether the attribute instances are arranged in an order.intReturn the number of significant digits to the right of decimal point.Return the order that the attribute instances are arranged in - if any.inthashCode()Return a number that represents the contents of this object.voidsetAliases(List<String> aliases) Set up a list of alternative names for the attribute.voidsetAllowsDuplicateValues(boolean allowsDuplicateValues) Set up whether the same value can be used by more than one instance of this attribute.voidsetDefaultValueOverride(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).voidsetIsNullable(boolean nullable) Set up whether the field is nullable or not.voidsetLength(int length) Set up the length of the data field.voidsetMinimumLength(int minimumLength) Set up the minimum length of the data.voidsetNativeClass(String nativeClass) Set up the name of the Java class to use to represent this type.voidsetOrderedValues(boolean orderedValues) Set up whether the attribute instances are arranged in an order.voidsetPrecision(int precision) Set up the number of significant digits to the right of decimal point.voidsetSortOrder(DataItemSortOrder sortOrder) Set up the order that the attribute instances are arranged in - if any.toString()Standard toString method.Methods inherited from class org.odpi.openmetadata.frameworks.openmetadata.properties.AuthoredReferenceableProperties
getAuthors, getContentStatus, getUserDefinedContentStatus, setAuthors, setContentStatus, setUserDefinedContentStatusMethods inherited from class org.odpi.openmetadata.frameworks.openmetadata.properties.ReferenceableProperties
getAdditionalProperties, getCategory, getDescription, getDisplayName, getIdentifier, getQualifiedName, getURL, getVersionIdentifier, setAdditionalProperties, setCategory, setDescription, setDisplayName, setIdentifier, setQualifiedName, setURL, setVersionIdentifierMethods inherited from class org.odpi.openmetadata.frameworks.openmetadata.properties.OpenMetadataRootProperties
getExtendedProperties, getTypeName, setExtendedProperties, setTypeNameMethods inherited from class org.odpi.openmetadata.frameworks.openmetadata.properties.EntityProperties
getEffectiveFrom, getEffectiveTo, setEffectiveFrom, setEffectiveTo
-
Constructor Details
-
SchemaAttributeProperties
public SchemaAttributeProperties()Default constructor -
SchemaAttributeProperties
Copy/clone constructor.- Parameters:
template- template schema attribute to copy.
-
-
Method Details
-
getAllowsDuplicateValues
public boolean getAllowsDuplicateValues()Return whether the same value can be used by more than one instance of this attribute.- Returns:
- boolean flag
-
setAllowsDuplicateValues
public void setAllowsDuplicateValues(boolean allowsDuplicateValues) Set up whether the same value can be used by more than one instance of this attribute.- Parameters:
allowsDuplicateValues- boolean flag
-
getOrderedValues
public boolean getOrderedValues()Return whether the attribute instances are arranged in an order.- Returns:
- boolean flag
-
setOrderedValues
public void setOrderedValues(boolean orderedValues) Set up whether the attribute instances are arranged in an order.- Parameters:
orderedValues- boolean flag
-
getSortOrder
Return the order that the attribute instances are arranged in - if any.- Returns:
- DataItemSortOrder enum
-
setSortOrder
Set up the order that the attribute instances are arranged in - if any.- Parameters:
sortOrder- DataItemSortOrder enum
-
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
-
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
-
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).- Returns:
- String default value override
-
setDefaultValueOverride
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).- Parameters:
defaultValueOverride- String default value override
-
getNativeClass
Return the name of the Java class to use to represent this type.- Returns:
- fully qualified Java class name
-
setNativeClass
Set up the name of the Java class to use to represent this type.- Parameters:
nativeClass- fully qualified Java class name
-
getAliases
Return a list of alternative names for the attribute.- Returns:
- list of names
-
setAliases
Set up a list of alternative names for the attribute.- Parameters:
aliases- list of names
-
toString
Standard toString method.- Overrides:
toStringin classSchemaElementProperties- Returns:
- print out of variables in a JSON-style
-
equals
Compare the values of the supplied object with those stored in the current object.- Overrides:
equalsin classAuthoredReferenceableProperties- Parameters:
objectToCompare- supplied object- Returns:
- boolean result of comparison
-
hashCode
public int hashCode()Return a number that represents the contents of this object.- Overrides:
hashCodein classAuthoredReferenceableProperties- Returns:
- int
-