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
SchemaAttributeProperties represents a data field that is part of a complex schema type.
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructorCopy/clone constructor. -
Method Summary
Modifier and TypeMethodDescriptionbooleanCompare the values of the supplied object with those stored in the current object.intReturn the position of this schema attribute in its parent schema.intReturn the maximum number of instances allowed for this attribute.intReturn this minimum number of instances allowed for this attribute.inthashCode()Return a number that represents the contents of this object.voidsetElementPosition(int elementPosition) Set up the position of this schema attribute in its parent schema.voidsetMaxCardinality(int maxCardinality) Set up the maximum number of instances allowed for this attribute.voidsetMinCardinality(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, setValidValuesSetGUIDMethods inherited from class org.odpi.openmetadata.frameworks.openmetadata.properties.schema.SchemaElementProperties
getDescription, getDisplayName, getIsDeprecated, setDescription, setDisplayName, setIsDeprecatedMethods inherited from class org.odpi.openmetadata.frameworks.openmetadata.properties.ReferenceableProperties
getAdditionalProperties, getQualifiedName, getVendorProperties, setAdditionalProperties, setQualifiedName, setVendorPropertiesMethods 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:
getElementPositionin 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:
setElementPositionin 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:
getMinCardinalityin classSchemaAttributeProperties- Returns:
- int
-
setMinCardinality
public void setMinCardinality(int minCardinality) Set up the minimum number of instances allowed for this attribute.- Overrides:
setMinCardinalityin classSchemaAttributeProperties- Parameters:
minCardinality- int
-
getMaxCardinality
public int getMaxCardinality()Return the maximum number of instances allowed for this attribute.- Overrides:
getMaxCardinalityin classSchemaAttributeProperties- Returns:
- int (-1 means infinite)
-
setMaxCardinality
public void setMaxCardinality(int maxCardinality) Set up the maximum number of instances allowed for this attribute.- Overrides:
setMaxCardinalityin classSchemaAttributeProperties- Parameters:
maxCardinality- int (-1 means infinite)
-
toString
Standard toString method.- Overrides:
toStringin 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:
equalsin 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:
hashCodein classSchemaAttributeProperties- Returns:
- int
-