Class OpenMetadataCollectionDef
java.lang.Object
org.odpi.openmetadata.frameworks.governanceaction.properties.OpenMetadataTypeDefElementHeader
org.odpi.openmetadata.frameworks.governanceaction.properties.OpenMetadataAttributeTypeDef
org.odpi.openmetadata.frameworks.governanceaction.properties.OpenMetadataCollectionDef
OpenMetadataCollectionDef supports the definition of a collection type. This information about the generic
collection type is managed in the OpenMetadataCollectionDefCategory. It is instantiated with specific primitive
types when it is linked to a specific OpenMetadataTypeDefAttribute.
-
Field Summary
Fields inherited from class org.odpi.openmetadata.frameworks.governanceaction.properties.OpenMetadataAttributeTypeDef
category, description, descriptionGUID, guid, name, version, versionName
Fields inherited from class org.odpi.openmetadata.frameworks.governanceaction.properties.OpenMetadataTypeDefElementHeader
CURRENT_TYPE_DEF_HEADER_VERSION
-
Constructor Summary
ConstructorDescriptionDefault constructor for Jackson (JSON parsing)Copy/clone constructor creates a copy of the supplied template.OpenMetadataCollectionDef
(OpenMetadataCollectionDefCategory collectionDefCategory) Typical constructor initializes the OpenMetadataCollectionDef based on the supplied category. -
Method Summary
Modifier and TypeMethodDescriptionDelegate the process of cloning to the subclass.boolean
Validate that an object is equal depending on their stored values.int
Return the number of arguments needed to set up the collection type name.Return the list of argument types set up for this collection.Return the type category for this collection type.int
hashCode()
Return a hash code based on the values of this object.void
setArgumentCount
(int argumentCount) Set upi the number of arguments needed to set upi the collection type name.void
setArgumentTypes
(List<OpenMetadataPrimitiveDefCategory> argumentTypes) Set up the list of argument types.void
setCollectionDefCategory
(OpenMetadataCollectionDefCategory collectionDefCategory) Set up the elements category.toString()
Standard toString method.Methods inherited from class org.odpi.openmetadata.frameworks.governanceaction.properties.OpenMetadataAttributeTypeDef
getCategory, getDescription, getDescriptionGUID, getGUID, getName, getVersion, getVersionName, setCategory, setDescription, setDescriptionGUID, setGUID, setName, setVersion, setVersionName
-
Constructor Details
-
OpenMetadataCollectionDef
public OpenMetadataCollectionDef()Default constructor for Jackson (JSON parsing) -
OpenMetadataCollectionDef
Typical constructor initializes the OpenMetadataCollectionDef based on the supplied category.- Parameters:
collectionDefCategory
- OpenMetadataCollectionDefCategory Enum
-
OpenMetadataCollectionDef
Copy/clone constructor creates a copy of the supplied template.- Parameters:
template
- OpenMetadataCollectionDef to copy
-
-
Method Details
-
cloneFromSubclass
Delegate the process of cloning to the subclass.- Specified by:
cloneFromSubclass
in classOpenMetadataAttributeTypeDef
- Returns:
- subclass of OpenMetadataAttributeTypeDef
-
getCollectionDefCategory
Return the type category for this collection type.- Returns:
- OpenMetadataCollectionDefCategory Enum
-
setCollectionDefCategory
Set up the elements category.- Parameters:
collectionDefCategory
- value to use
-
getArgumentCount
public int getArgumentCount()Return the number of arguments needed to set up the collection type name.- Returns:
- int count
-
setArgumentCount
public void setArgumentCount(int argumentCount) Set upi the number of arguments needed to set upi the collection type name.- Parameters:
argumentCount
- int count
-
getArgumentTypes
Return the list of argument types set up for this collection.- Returns:
- list of argument type
-
setArgumentTypes
Set up the list of argument types.- Parameters:
argumentTypes
- list of argument types
-
toString
Standard toString method.- Overrides:
toString
in classOpenMetadataAttributeTypeDef
- Returns:
- JSON style description of variables.
-
equals
Validate that an object is equal depending on their stored values.- Overrides:
equals
in classOpenMetadataAttributeTypeDef
- Parameters:
objectToCompare
- object- Returns:
- boolean result
-
hashCode
public int hashCode()Return a hash code based on the values of this object.- Overrides:
hashCode
in classOpenMetadataAttributeTypeDef
- Returns:
- in hash code
-