Class TypeDefSummary
- 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.TypeDefLink
-
- org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.typedefs.TypeDefSummary
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
TypeDef
public class TypeDefSummary extends TypeDefLink
The TypeDefSummary holds basic identifying information for a specific TypeDef. It is used in the registration process between repositories.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected TypeDefCategorycategoryprotected longversionprotected StringversionName-
Fields inherited from class org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.typedefs.TypeDefLink
guid, name, replacedByTypeGUID, replacedByTypeName, status
-
Fields inherited from class org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.typedefs.TypeDefElementHeader
CURRENT_TYPE_DEF_HEADER_VERSION
-
-
Constructor Summary
Constructors Constructor Description TypeDefSummary()Default constructorTypeDefSummary(TypeDefSummary template)Copy/clone constructor copies the values from the supplied template.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object objectToCompare)Validate that an object is equal depending on their stored values.TypeDefCategorygetCategory()Return the category of the TypeDef.longgetVersion()Return the version of the TypeDef.StringgetVersionName()Return the version name is more of a human readable form of the version number.inthashCode()Return a hash code based on the values of this object.voidsetCategory(TypeDefCategory category)Set up the category of the TypeDef.voidsetVersion(long version)Set up the version of the TypeDef.voidsetVersionName(String versionName)Set up the version name is more of a human readable form of the version number.StringtoString()Standard toString method.-
Methods inherited from class org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.typedefs.TypeDefLink
getGUID, getName, getReplacedByTypeGUID, getReplacedByTypeName, getStatus, setGUID, setName, setReplacedByTypeGUID, setReplacedByTypeName, setStatus
-
Methods inherited from class org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.RepositoryElementHeader
getHeaderVersion, setHeaderVersion
-
-
-
-
Field Detail
-
version
protected long version
-
versionName
protected String versionName
-
category
protected TypeDefCategory category
-
-
Constructor Detail
-
TypeDefSummary
public TypeDefSummary()
Default constructor
-
TypeDefSummary
public TypeDefSummary(TypeDefSummary template)
Copy/clone constructor copies the values from the supplied template.- Parameters:
template- TypeDefSummary
-
-
Method Detail
-
getCategory
public TypeDefCategory getCategory()
Return the category of the TypeDef.- Returns:
- TypeDefCategory enum
-
setCategory
public void setCategory(TypeDefCategory category)
Set up the category of the TypeDef.- Parameters:
category- TypeDefCategory enum
-
getVersion
public long getVersion()
Return the version of the TypeDef. Versions are created when a TypeDef's properties are changed. If a description is updated, then this does not create a new version.- Returns:
- String version number
-
setVersion
public void setVersion(long version)
Set up the version of the TypeDef. Versions are created when a TypeDef's properties are changed. If a description is updated, then this does not create a new version.- Parameters:
version- long version number
-
getVersionName
public String getVersionName()
Return the version name is more of a human readable form of the version number. It can be used to show whether the change is a minor or major update.- Returns:
- String version name
-
setVersionName
public void setVersionName(String versionName)
Set up the version name is more of a human readable form of the version number. It can be used to show whether the change is a minor or major update.- Parameters:
versionName- String version name
-
toString
public String toString()
Standard toString method.- Overrides:
toStringin classTypeDefLink- Returns:
- JSON style description of variables.
-
equals
public boolean equals(Object objectToCompare)
Validate that an object is equal depending on their stored values.- Overrides:
equalsin classTypeDefLink- Parameters:
objectToCompare- object- Returns:
- boolean result
-
hashCode
public int hashCode()
Return a hash code based on the values of this object.- Overrides:
hashCodein classTypeDefLink- Returns:
- in hash code
-
-