Class InstanceType
java.lang.Object
org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.RepositoryElementHeader
org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceElementHeader
org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceType
- All Implemented Interfaces:
Serializable
InstanceType contains information from the instance's TypeDef that are useful for processing the instance.
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor relies on initialization of variables in the declaration.InstanceType
(InstanceType template) Copy/clone constructorInstanceType
(TypeDefCategory typeDefCategory, String typeDefGUID, String typeDefName, long typeDefVersion) Typical constructor that set all the properties at once. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Validate if the supplied object equals this object.Return the category of this instance.Return the unique identifier for the type of this instance.Return the name of this instance's type.long
Return the version number of this instance's TypeDef.int
hashCode()
Return a hash code based on the values of this object.void
setTypeDefCategory
(TypeDefCategory typeDefCategory) Set up the category of this instance.void
setTypeDefGUID
(String typeDefGUID) Set up the unique identifier for the type of this instance.void
setTypeDefName
(String typeDefName) Set up the name of this instance's type.void
setTypeDefVersion
(long typeDefVersion) Set up the version for the TypeDef.toString()
Standard toString method.Methods inherited from class org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.RepositoryElementHeader
getHeaderVersion, setHeaderVersion
-
Field Details
-
CURRENT_INSTANCE_TYPE_HEADER_VERSION
public static final long CURRENT_INSTANCE_TYPE_HEADER_VERSION- See Also:
-
-
Constructor Details
-
InstanceType
public InstanceType()Default constructor relies on initialization of variables in the declaration. -
InstanceType
public InstanceType(TypeDefCategory typeDefCategory, String typeDefGUID, String typeDefName, long typeDefVersion) Typical constructor that set all the properties at once.- Parameters:
typeDefCategory
- the category of the typetypeDefGUID
- unique identifier of the typetypeDefName
- unique name of the typetypeDefVersion
- version number of the type
-
InstanceType
Copy/clone constructor- Parameters:
template
- instance type to copy
-
-
Method Details
-
getTypeDefCategory
Return the category of this instance. This defines the category of the TypeDef that determines its properties.- Returns:
- TypeDefCategory enum
-
setTypeDefCategory
Set up the category of this instance. This defines the category of the TypeDef that determines its properties.- Parameters:
typeDefCategory
- enum
-
getTypeDefGUID
Return the unique identifier for the type of this instance.- Returns:
- String unique identifier
-
setTypeDefGUID
Set up the unique identifier for the type of this instance.- Parameters:
typeDefGUID
- String unique identifier
-
getTypeDefName
Return the name of this instance's type.- Returns:
- String type name
-
setTypeDefName
Set up the name of this instance's type.- Parameters:
typeDefName
- String type name
-
getTypeDefVersion
public long getTypeDefVersion()Return the version number of this instance's TypeDef.- Returns:
- long version number
-
setTypeDefVersion
public void setTypeDefVersion(long typeDefVersion) Set up the version for the TypeDef.- Parameters:
typeDefVersion
- long version number
-
toString
Standard toString method. -
equals
Validate if the supplied object equals this object.- Overrides:
equals
in classRepositoryElementHeader
- Parameters:
objectToCompare
- test object- Returns:
- boolean evaluation
-
hashCode
public int hashCode()Return a hash code based on the values of this object.- Overrides:
hashCode
in classRepositoryElementHeader
- Returns:
- in hash code
-