Class DataContainerProperties
java.lang.Object
org.odpi.openmetadata.frameworks.openmetadata.properties.OpenMetadataRootProperties
org.odpi.openmetadata.frameworks.openmetadata.properties.ReferenceableProperties
org.odpi.openmetadata.frameworks.openmetadata.properties.schema.SchemaElementProperties
org.odpi.openmetadata.frameworks.openmetadata.properties.schema.SchemaAttributeProperties
org.odpi.openmetadata.frameworks.openmetadata.properties.schema.display.DataContainerProperties
- Direct Known Subclasses:
DataContainerRequestBody
SchemaAttributeProperties represents a data field that is part of a complex schema type.
-
Constructor Summary
ConstructorDescriptionDefault constructorCopy/clone constructor. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Compare the values of the supplied object with those stored in the current object.int
Return the position of this schema attribute in its parent schema.int
Return the maximum number of instances allowed for this attribute.int
Return this minimum number of instances allowed for this attribute.int
hashCode()
Return a number that represents the contents of this object.void
setElementPosition
(int elementPosition) Set up the position of this schema attribute in its parent schema.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.toString()
Standard toString method.Methods inherited from class org.odpi.openmetadata.frameworks.openmetadata.properties.schema.SchemaAttributeProperties
getAliases, getAllowsDuplicateValues, getDataType, getDefaultValue, getDefaultValueOverride, getExternalTypeGUID, getFixedValue, getIsNullable, getLength, getMinimumLength, getNativeJavaClass, getOrderedValues, getPrecision, getSchemaType, getSignificantDigits, getSortOrder, getValidValuesSetGUID, setAliases, setAllowsDuplicateValues, setDataType, setDefaultValue, setDefaultValueOverride, setExternalTypeGUID, setFixedValue, setIsNullable, setLength, setMinimumLength, setNativeJavaClass, setOrderedValues, setPrecision, setSchemaType, setSignificantDigits, setSortOrder, setValidValuesSetGUID
Methods inherited from class org.odpi.openmetadata.frameworks.openmetadata.properties.schema.SchemaElementProperties
getDescription, getDisplayName, getIsDeprecated, setDescription, setDisplayName, setIsDeprecated
Methods inherited from class org.odpi.openmetadata.frameworks.openmetadata.properties.ReferenceableProperties
getAdditionalProperties, getQualifiedName, getVendorProperties, setAdditionalProperties, setQualifiedName, setVendorProperties
Methods inherited from class org.odpi.openmetadata.frameworks.openmetadata.properties.OpenMetadataRootProperties
getEffectiveFrom, getEffectiveTo, getExtendedProperties, getTypeName, setEffectiveFrom, setEffectiveTo, setExtendedProperties, setTypeName
-
Constructor Details
-
DataContainerProperties
public DataContainerProperties()Default constructor -
DataContainerProperties
Copy/clone constructor.- Parameters:
template
- template schema attribute to copy.
-
-
Method Details
-
getElementPosition
public int getElementPosition()Return the position of this schema attribute in its parent schema.- Overrides:
getElementPosition
in classSchemaAttributeProperties
- Returns:
- int position in schema - 0 means first
-
setElementPosition
public void setElementPosition(int elementPosition) Set up the position of this schema attribute in its parent schema.- Overrides:
setElementPosition
in classSchemaAttributeProperties
- Parameters:
elementPosition
- int position in schema - 0 means first
-
getMinCardinality
public int getMinCardinality()Return this minimum number of instances allowed for this attribute.- Overrides:
getMinCardinality
in classSchemaAttributeProperties
- Returns:
- int
-
setMinCardinality
public void setMinCardinality(int minCardinality) Set up the minimum number of instances allowed for this attribute.- Overrides:
setMinCardinality
in classSchemaAttributeProperties
- Parameters:
minCardinality
- int
-
getMaxCardinality
public int getMaxCardinality()Return the maximum number of instances allowed for this attribute.- Overrides:
getMaxCardinality
in classSchemaAttributeProperties
- Returns:
- int (-1 means infinite)
-
setMaxCardinality
public void setMaxCardinality(int maxCardinality) Set up the maximum number of instances allowed for this attribute.- Overrides:
setMaxCardinality
in classSchemaAttributeProperties
- Parameters:
maxCardinality
- int (-1 means infinite)
-
toString
Standard toString method.- Overrides:
toString
in classSchemaAttributeProperties
- 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:
equals
in classSchemaAttributeProperties
- Parameters:
objectToCompare
- supplied object- Returns:
- boolean result of comparison
-
hashCode
public int hashCode()Return a number that represents the contents of this object.- Overrides:
hashCode
in classSchemaAttributeProperties
- Returns:
- int
-