Class TypeDef
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
org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.typedefs.TypeDef
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
ClassificationDef,EntityDef,RelationshipDef
The TypeDef is the base class for objects that store the properties of an open metadata type
definition (call ed a TypeDef).
The different categories of Typedefs are listed in TypeDefCategory.
- See Also:
-
Field Summary
Fields inherited from class org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.typedefs.TypeDefElementHeader
CURRENT_TYPE_DEF_HEADER_VERSION -
Method Summary
Modifier and TypeMethodDescriptionabstract TypeDefDelegate the process of cloning to the subclass.booleanValidate that an object is equal depending on their stored values.Return the user name of the person that created this TypeDef.Return the date/time that this TypeDef was created.Return the description of this TypeDef.Return the unique identifier (guid) of the valid value definition that describes this TypeDef.Return the URL to the wiki page that gives more information for this type.Return the list of mappings to external standards.Return the initial status setting for an instance of this type.Return the options for this TypeDef.Return the unique identifier for metadata collection id where this TypeDef came from.Return the list of typeDefAttributes that are either new or changing.Return the super type for the TypeDef (or null if top-level)Return the user name of the person that last updated this TypeDef.Return the date/time that this TypeDef was last updated.Return the list of valid statuses for an instance of this TypeDef.inthashCode()Return a hash code based on the values of this object.voidsetCreatedBy(String createdBy) Set up the user name of the person that created this TypeDef.voidsetCreateTime(Date createTime) Set up the date/time that this TypeDef was created.voidsetDescription(String description) Set up the description of this TypeDef.voidsetDescriptionGUID(String descriptionGUID) Set up the unique identifier (guid) of the valid value definition that describes this TypeDef.voidsetDescriptionWiki(String descriptionWiki) Set up the URL to the wiki page that gives more information for this type.voidsetExternalStandardMappings(List<ExternalStandardMapping> externalStandardMappings) Set up the list of mappings to external standards.voidsetInitialStatus(InstanceStatus initialStatus) Set up the initial status setting for an instance of this type.voidsetOptions(Map<String, String> options) Set up the options for this TypeDef.voidSet up the unique identifier for metadata collection id where this TypeDef came from.voidsetPropertiesDefinition(List<TypeDefAttribute> propertiesDefinition) Set up the list of AttributeDefs that define the valid properties for this type of classification.voidsetSuperType(TypeDefLink superType) Set up supertype for the TypeDef.voidsetUpdatedBy(String updatedBy) Set up the user name of the person that last updated this TypeDef.voidsetUpdateTime(Date updateTime) Set up the date/time that this TypeDef was last updated.voidsetValidInstanceStatusList(List<InstanceStatus> validInstanceStatusList) Set up the list of valid instance statuses supported by this TypeDef.toString()Standard toString method.Methods inherited from class org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.typedefs.TypeDefSummary
getCategory, getVersion, getVersionName, setCategory, setVersion, setVersionNameMethods inherited from class org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.typedefs.TypeDefLink
getGUID, getName, getReplacedByTypeGUID, getReplacedByTypeName, getStatus, setGUID, setName, setReplacedByTypeGUID, setReplacedByTypeName, setStatusMethods inherited from class org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.RepositoryElementHeader
getHeaderVersion, setHeaderVersion
-
Method Details
-
cloneFromSubclass
Delegate the process of cloning to the subclass.- Returns:
- subclass of TypeDef
-
getSuperType
Return the super type for the TypeDef (or null if top-level)- Returns:
- TypeDefLink for the super type
-
setSuperType
Set up supertype for the TypeDef. Only single inheritance is supported. Use null if this type is top-level.- Parameters:
superType- TypeDefLink for the super type
-
getDescription
Return the description of this TypeDef.- Returns:
- String description
-
setDescription
Set up the description of this TypeDef.- Parameters:
description- String
-
getDescriptionGUID
Return the unique identifier (guid) of the valid value definition that describes this TypeDef.- Returns:
- String guid
-
setDescriptionGUID
Set up the unique identifier (guid) of the valid value definition that describes this TypeDef.- Parameters:
descriptionGUID- String guid
-
getDescriptionWiki
Return the URL to the wiki page that gives more information for this type.- Returns:
- url string
-
setDescriptionWiki
Set up the URL to the wiki page that gives more information for this type.- Parameters:
descriptionWiki- url string
-
getOrigin
Return the unique identifier for metadata collection id where this TypeDef came from.- Returns:
- String guid
-
setOrigin
Set up the unique identifier for metadata collection id where this TypeDef came from.- Parameters:
origin- String guid
-
getCreatedBy
Return the user name of the person that created this TypeDef.- Returns:
- String name
-
setCreatedBy
Set up the user name of the person that created this TypeDef.- Parameters:
createdBy- String name
-
getUpdatedBy
Return the user name of the person that last updated this TypeDef.- Returns:
- String name
-
setUpdatedBy
Set up the user name of the person that last updated this TypeDef.- Parameters:
updatedBy- String name
-
getCreateTime
Return the date/time that this TypeDef was created.- Returns:
- Date
-
setCreateTime
Set up the date/time that this TypeDef was created.- Parameters:
createTime- Date
-
getUpdateTime
Return the date/time that this TypeDef was last updated.- Returns:
- Date
-
setUpdateTime
Set up the date/time that this TypeDef was last updated.- Parameters:
updateTime- Date
-
getOptions
Return the options for this TypeDef. These are private properties used by the processors of this TypeDef and ignored by the OMRS.- Returns:
- Map from String to String
-
setOptions
Set up the options for this TypeDef. These are private properties used by the processors of this TypeDef and ignored by the OMRS.- Parameters:
options- Map from String to String
-
getExternalStandardMappings
Return the list of mappings to external standards.- Returns:
- ExternalStandardMappings list
-
setExternalStandardMappings
Set up the list of mappings to external standards.- Parameters:
externalStandardMappings- ExternalStandardMappings list
-
getValidInstanceStatusList
Return the list of valid statuses for an instance of this TypeDef.- Returns:
- list of valid statuses
-
setValidInstanceStatusList
Set up the list of valid instance statuses supported by this TypeDef.- Parameters:
validInstanceStatusList- InstanceStatus Array
-
getInitialStatus
Return the initial status setting for an instance of this type.- Returns:
- InstanceStatus enum
-
setInitialStatus
Set up the initial status setting for an instance of this type.- Parameters:
initialStatus- InstanceStatus enum
-
getPropertiesDefinition
Return the list of typeDefAttributes that are either new or changing.- Returns:
- list of TypeDefAttribute
-
setPropertiesDefinition
Set up the list of AttributeDefs that define the valid properties for this type of classification.- Parameters:
propertiesDefinition- AttributeDefs list
-
toString
Standard toString method.- Overrides:
toStringin classTypeDefSummary- Returns:
- JSON style description of variables.
-
equals
Validate that an object is equal depending on their stored values.- Overrides:
equalsin classTypeDefSummary- Parameters:
objectToCompare- object- Returns:
- boolean result
-
hashCode
public int hashCode()Return a hash code based on the values of this object.- Overrides:
hashCodein classTypeDefSummary- Returns:
- in hash code
-