Class OpenMetadataPrimitiveDef
java.lang.Object
org.odpi.openmetadata.frameworks.governanceaction.properties.OpenMetadataTypeDefElementHeader
org.odpi.openmetadata.frameworks.governanceaction.properties.OpenMetadataAttributeTypeDef
org.odpi.openmetadata.frameworks.governanceaction.properties.OpenMetadataPrimitiveDef
OpenMetadataPrimitiveDef supports the definition of a primitive type. This information is managed in the
OpenMetadataPrimitiveDefCategory.
-
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 initializes the OpenMetadataPrimitiveDef based on the supplied category.Copy/clone constructor creates a copy of the supplied template.OpenMetadataPrimitiveDef
(OpenMetadataPrimitiveDefCategory primitiveDefCategory) Superclass constructor initializes the OpenMetadataPrimitiveDef 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
(OpenMetadataPrimitiveDefCategory primitiveDefCategory) Set up the type category for this primitive type.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
-
OpenMetadataPrimitiveDef
public OpenMetadataPrimitiveDef()Default constructor initializes the OpenMetadataPrimitiveDef based on the supplied category. -
OpenMetadataPrimitiveDef
Superclass constructor initializes the OpenMetadataPrimitiveDef based on the supplied category.- Parameters:
primitiveDefCategory
- OpenMetadataPrimitiveDefCategory Enum
-
OpenMetadataPrimitiveDef
Copy/clone constructor creates a copy of the supplied template.- Parameters:
template
- OpenMetadataPrimitiveDef to copy
-
-
Method Details
-
cloneFromSubclass
Delegate the process of cloning to the subclass.- Specified by:
cloneFromSubclass
in classOpenMetadataAttributeTypeDef
- Returns:
- subclass of OpenMetadataAttributeTypeDef
-
getPrimitiveDefCategory
Return the type category for this primitive type.- Returns:
- OpenMetadataPrimitiveDefCategory Enum
-
setPrimitiveDefCategory
Set up the type category for this primitive type.- Parameters:
primitiveDefCategory
- OpenMetadataPrimitiveDefCategory Enum
-
toString
Standard toString method.- Overrides:
toString
in classOpenMetadataAttributeTypeDef
- Returns:
- JSON style description of variables.
-
equals
Verify that supplied object has the same properties.- Overrides:
equals
in classOpenMetadataAttributeTypeDef
- Parameters:
objectToCompare
- object to test- Returns:
- result
-
hashCode
public int hashCode()Description copied from class:OpenMetadataAttributeTypeDef
Return a hash code based on the values of this object.- Overrides:
hashCode
in classOpenMetadataAttributeTypeDef
- Returns:
- in hash code
-