Class PrimitiveDef
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.PrimitiveDef
- All Implemented Interfaces:
Serializable
PrimitiveDef supports the definition of a primitive type. This information is managed in the
PrimitiveDefCategory.
- 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 initializes the PrimitiveDef based on the supplied category.PrimitiveDef
(PrimitiveDef template) Copy/clone constructor creates a copy of the supplied template.PrimitiveDef
(PrimitiveDefCategory primitiveDefCategory) Superclass constructor initializes the PrimitiveDef based on the supplied category. -
Method Summary
Modifier and TypeMethodDescriptionDelegate the process of cloning to the subclass.boolean
Verify that supplied object has the same properties.Return the type category for this primitive type.int
hashCode()
Return a hash code based on the values of this object.void
setPrimitiveDefCategory
(PrimitiveDefCategory primitiveDefCategory) Set up the type category for this primitive type.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
-
PrimitiveDef
public PrimitiveDef()Default constructor initializes the PrimitiveDef based on the supplied category. -
PrimitiveDef
Superclass constructor initializes the PrimitiveDef based on the supplied category.- Parameters:
primitiveDefCategory
- PrimitiveDefCategory Enum
-
PrimitiveDef
Copy/clone constructor creates a copy of the supplied template.- Parameters:
template
- PrimitiveDef to copy
-
-
Method Details
-
cloneFromSubclass
Delegate the process of cloning to the subclass.- Specified by:
cloneFromSubclass
in classAttributeTypeDef
- Returns:
- subclass of AttributeTypeDef
-
getPrimitiveDefCategory
Return the type category for this primitive type.- Returns:
- PrimitiveDefCategory Enum
-
setPrimitiveDefCategory
Set up the type category for this primitive type.- Parameters:
primitiveDefCategory
- PrimitiveDefCategory Enum
-
toString
Standard toString method.- Overrides:
toString
in classAttributeTypeDef
- Returns:
- JSON style description of variables.
-
equals
Verify that supplied object has the same properties.- Overrides:
equals
in classAttributeTypeDef
- Parameters:
objectToCompare
- object to test- Returns:
- result
-
hashCode
public int hashCode()Description copied from class:AttributeTypeDef
Return a hash code based on the values of this object.- Overrides:
hashCode
in classAttributeTypeDef
- Returns:
- in hash code
-