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.OpenMetadataTypeDefElementHeader
CURRENT_TYPE_DEF_HEADER_VERSION -
Constructor Summary
ConstructorsConstructorDescriptionDefault 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.booleanVerify that supplied object has the same properties.Return the type category for this primitive type.inthashCode()Return a hash code based on the values of this object.voidsetPrimitiveDefCategory(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:
cloneFromSubclassin 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:
toStringin classOpenMetadataAttributeTypeDef- Returns:
- JSON style description of variables.
-
equals
Verify that supplied object has the same properties.- Overrides:
equalsin classOpenMetadataAttributeTypeDef- Parameters:
objectToCompare- object to test- Returns:
- result
-
hashCode
public int hashCode()Description copied from class:OpenMetadataAttributeTypeDefReturn a hash code based on the values of this object.- Overrides:
hashCodein classOpenMetadataAttributeTypeDef- Returns:
- in hash code
-