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
public class DataContainerProperties extends SchemaElementProperties
SchemaAttributeProperties represents a data field that is part of a complex schema type.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DataContainerProperties()
Default constructorDataContainerProperties(DataContainerProperties template)
Copy/clone constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object objectToCompare)
Compare the values of the supplied object with those stored in the current object.int
getElementPosition()
Return the position of this schema attribute in its parent schema.int
getMaxCardinality()
Return the maximum number of instances allowed for this attribute.int
getMinCardinality()
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.String
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 Detail
-
DataContainerProperties
public DataContainerProperties()
Default constructor
-
DataContainerProperties
public DataContainerProperties(DataContainerProperties template)
Copy/clone constructor.- Parameters:
template
- template schema attribute to copy.
-
-
Method Detail
-
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
public String toString()
Standard toString method.- Overrides:
toString
in classSchemaElementProperties
- Returns:
- print out of variables in a JSON-style
-
equals
public boolean equals(Object objectToCompare)
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
-
-