Class PrimitiveDef
- java.lang.Object
-
- 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
public class PrimitiveDef extends AttributeTypeDef
PrimitiveDef supports the definition of a primitive type. This information is managed in the PrimitiveDefCategory.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.typedefs.AttributeTypeDef
category, description, descriptionGUID, 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
Constructors Constructor Description PrimitiveDef()Default 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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AttributeTypeDefcloneFromSubclass()Delegate the process of cloning to the subclass.booleanequals(Object objectToCompare)Verify that supplied object has the same properties.PrimitiveDefCategorygetPrimitiveDefCategory()Return the type category for this primitive type.inthashCode()Return a hash code based on the values of this object.voidsetPrimitiveDefCategory(PrimitiveDefCategory primitiveDefCategory)Set up the type category for this primitive type.StringtoString()Standard toString method.-
Methods inherited from class org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.typedefs.AttributeTypeDef
getCategory, getDescription, getDescriptionGUID, getGUID, getName, getVersion, getVersionName, setCategory, setDescription, setDescriptionGUID, setGUID, setName, setVersion, setVersionName
-
Methods inherited from class org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.typedefs.TypeDefElementHeader
getHeaderVersion, setHeaderVersion
-
-
-
-
Constructor Detail
-
PrimitiveDef
public PrimitiveDef()
Default constructor initializes the PrimitiveDef based on the supplied category.
-
PrimitiveDef
public PrimitiveDef(PrimitiveDefCategory primitiveDefCategory)
Superclass constructor initializes the PrimitiveDef based on the supplied category.- Parameters:
primitiveDefCategory- PrimitiveDefCategory Enum
-
PrimitiveDef
public PrimitiveDef(PrimitiveDef template)
Copy/clone constructor creates a copy of the supplied template.- Parameters:
template- PrimitiveDef to copy
-
-
Method Detail
-
cloneFromSubclass
public AttributeTypeDef cloneFromSubclass()
Delegate the process of cloning to the subclass.- Specified by:
cloneFromSubclassin classAttributeTypeDef- Returns:
- subclass of AttributeTypeDef
-
getPrimitiveDefCategory
public PrimitiveDefCategory getPrimitiveDefCategory()
Return the type category for this primitive type.- Returns:
- PrimitiveDefCategory Enum
-
setPrimitiveDefCategory
public void setPrimitiveDefCategory(PrimitiveDefCategory primitiveDefCategory)
Set up the type category for this primitive type.- Parameters:
primitiveDefCategory- PrimitiveDefCategory Enum
-
toString
public String toString()
Standard toString method.- Overrides:
toStringin classAttributeTypeDef- Returns:
- JSON style description of variables.
-
equals
public boolean equals(Object objectToCompare)
Verify that supplied object has the same properties.- Overrides:
equalsin classAttributeTypeDef- Parameters:
objectToCompare- object to test- Returns:
- result
-
hashCode
public int hashCode()
Description copied from class:AttributeTypeDefReturn a hash code based on the values of this object.- Overrides:
hashCodein classAttributeTypeDef- Returns:
- in hash code
-
-