Class CollectionDef
java.lang.Object
org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.RepositoryElementHeader
org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.typedefs.TypeDefElementHeader
org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.typedefs.AttributeTypeDef
org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.typedefs.CollectionDef
- All Implemented Interfaces:
Serializable
CollectionDef supports the definition of a collection type. This information about the generic
collection type is managed in the CollectionDefCategory. It is instantiated with specific primitive
types when it is linked to a specific TypeDefAttribute.
- See Also:
-
Field Summary
Fields inherited from class org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.typedefs.AttributeTypeDef
category, description, descriptionGUID, descriptionWiki, guid, name, version, versionName
Fields inherited from class org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.typedefs.TypeDefElementHeader
CURRENT_TYPE_DEF_HEADER_VERSION
-
Constructor Summary
ConstructorDescriptionDefault constructor for Jackson (JSON parsing)CollectionDef
(CollectionDef template) Copy/clone constructor creates a copy of the supplied template.CollectionDef
(CollectionDefCategory collectionDefCategory) Typical constructor initializes the CollectionDef 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<PrimitiveDefCategory> argumentTypes) Set up the list of argument types.void
setCollectionDefCategory
(CollectionDefCategory collectionDefCategory) Set up the elements category.toString()
Standard toString method.Methods inherited from class org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.typedefs.AttributeTypeDef
getCategory, getDescription, getDescriptionGUID, getDescriptionWiki, getGUID, getName, getVersion, getVersionName, setCategory, setDescription, setDescriptionGUID, setDescriptionWiki, setGUID, setName, setVersion, setVersionName
Methods inherited from class org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.RepositoryElementHeader
getHeaderVersion, setHeaderVersion
-
Constructor Details
-
CollectionDef
public CollectionDef()Default constructor for Jackson (JSON parsing) -
CollectionDef
Typical constructor initializes the CollectionDef based on the supplied category.- Parameters:
collectionDefCategory
- CollectionDefCategory Enum
-
CollectionDef
Copy/clone constructor creates a copy of the supplied template.- Parameters:
template
- CollectionDef to copy
-
-
Method Details
-
cloneFromSubclass
Delegate the process of cloning to the subclass.- Specified by:
cloneFromSubclass
in classAttributeTypeDef
- Returns:
- subclass of AttributeTypeDef
-
getCollectionDefCategory
Return the type category for this collection type.- Returns:
- CollectionDefCategory 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 classAttributeTypeDef
- Returns:
- JSON style description of variables.
-
equals
Validate that an object is equal depending on their stored values.- Overrides:
equals
in classAttributeTypeDef
- Parameters:
objectToCompare
- object- Returns:
- boolean result
-
hashCode
public int hashCode()Return a hash code based on the values of this object.- Overrides:
hashCode
in classAttributeTypeDef
- Returns:
- in hash code
-