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
Modifier and TypeFieldDescriptionprotected String
protected Date
protected String
protected String
protected String
protected List<ExternalStandardMapping>
protected InstanceStatus
protected String
protected List<TypeDefAttribute>
protected TypeDefLink
protected String
protected Date
protected List<InstanceStatus>
Fields inherited from class org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.typedefs.TypeDefSummary
category, version, versionName
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
ModifierConstructorDescriptionprotected
TypeDef()
Default constructorprotected
Copy/clone constructor copies the values from the supplied template.protected
TypeDef
(TypeDefCategory category) Minimal constructor is passed the category of the typedef being constructed. -
Method Summary
Modifier and TypeMethodDescriptionabstract TypeDef
Delegate the process of cloning to the subclass.boolean
Validate 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.int
hashCode()
Return a hash code based on the values of this object.void
setCreatedBy
(String createdBy) Set up the user name of the person that created this TypeDef.void
setCreateTime
(Date createTime) Set up the date/time that this TypeDef was created.void
setDescription
(String description) Set up the description of this TypeDef.void
setDescriptionGUID
(String descriptionGUID) Set up the unique identifier (guid) of the valid value definition that describes this TypeDef.void
setDescriptionWiki
(String descriptionWiki) Set up the URL to the wiki page that gives more information for this type.void
setExternalStandardMappings
(List<ExternalStandardMapping> externalStandardMappings) Set up the list of mappings to external standards.void
setInitialStatus
(InstanceStatus initialStatus) Set up the initial status setting for an instance of this type.void
setOptions
(Map<String, String> options) Set up the options for this TypeDef.void
Set up the unique identifier for metadata collection id where this TypeDef came from.void
setPropertiesDefinition
(List<TypeDefAttribute> propertiesDefinition) Set up the list of AttributeDefs that define the valid properties for this type of classification.void
setSuperType
(TypeDefLink superType) Set up supertype for the TypeDef.void
setUpdatedBy
(String updatedBy) Set up the user name of the person that last updated this TypeDef.void
setUpdateTime
(Date updateTime) Set up the date/time that this TypeDef was last updated.void
setValidInstanceStatusList
(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, setVersionName
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 Details
-
superType
-
description
-
descriptionGUID
-
descriptionWiki
-
origin
-
createdBy
-
updatedBy
-
createTime
-
updateTime
-
options
-
externalStandardMappings
-
validInstanceStatusList
-
initialStatus
-
propertiesDefinition
-
-
Constructor Details
-
TypeDef
protected TypeDef()Default constructor -
TypeDef
Minimal constructor is passed the category of the typedef being constructed. The rest of the properties are null.- Parameters:
category
- TypeDefCategory enum
-
TypeDef
Copy/clone constructor copies the values from the supplied template.- Parameters:
template
- TypeDef
-
-
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:
toString
in classTypeDefSummary
- Returns:
- JSON style description of variables.
-
equals
Validate that an object is equal depending on their stored values.- Overrides:
equals
in classTypeDefSummary
- Parameters:
objectToCompare
- object- Returns:
- boolean result
-
hashCode
public int hashCode()Return a hash code based on the values of this object.- Overrides:
hashCode
in classTypeDefSummary
- Returns:
- in hash code
-