Class DataContainerProperties
java.lang.Object
org.odpi.openmetadata.accessservices.datamanager.properties.ReferenceableProperties
org.odpi.openmetadata.accessservices.datamanager.properties.SchemaElementProperties
org.odpi.openmetadata.accessservices.datamanager.properties.DataContainerProperties
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
DataContainerRequestBody
SchemaAttributeProperties represents a data field that is part of a complex schema type.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDefault 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.accessservices.datamanager.properties.SchemaElementProperties
getDescription, getDisplayName, getIsDeprecated, setDescription, setDisplayName, setIsDeprecated
Methods inherited from class org.odpi.openmetadata.accessservices.datamanager.properties.ReferenceableProperties
getAdditionalProperties, getEffectiveFrom, getEffectiveTo, getExtendedProperties, getQualifiedName, getTypeName, getVendorProperties, setAdditionalProperties, setEffectiveFrom, setEffectiveTo, setExtendedProperties, setQualifiedName, setTypeName, setVendorProperties
-
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.- 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.- Parameters:
elementPosition
- int position in schema - 0 means first
-
getMinCardinality
public int getMinCardinality()Return this minimum number of instances allowed for this attribute.- Returns:
- int
-
setMinCardinality
public void setMinCardinality(int minCardinality) Set up the minimum number of instances allowed for this attribute.- Parameters:
minCardinality
- int
-
getMaxCardinality
public int getMaxCardinality()Return the maximum number of instances allowed for this attribute.- Returns:
- int (-1 means infinite)
-
setMaxCardinality
public void setMaxCardinality(int maxCardinality) Set up the maximum number of instances allowed for this attribute.- Parameters:
maxCardinality
- int (-1 means infinite)
-
toString
Standard toString method.- Overrides:
toString
in 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:
equals
in classSchemaElementProperties
- 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 classSchemaElementProperties
- Returns:
- int
-