Package org.odpi.openmetadata.opentypes
Class OpenMetadataTypesArchiveAccessor
java.lang.Object
org.odpi.openmetadata.opentypes.OpenMetadataTypesArchiveAccessor
OpenMetadataTypesArchiveAccessor provides utility methods to help access the content of an open metadata archive.
-
Constructor Summary
ConstructorDescriptionOpenMetadataTypesArchiveAccessor
(OpenMetadataArchive openMetadataArchive) Parse the supplied archive. -
Method Summary
Modifier and TypeMethodDescriptioncreateTemplateFromTypeDef
(TypeDef typeDef) Return the instance type definition for the supplied TypeDefgetClassificationDefByName
(String typeName) Return the classification type definition for the supplied name.getEntityDefByGuid
(String typeGuid) Return the entity type definition for the supplied type guid.getEntityDefByName
(String typeName) Return the entity type definition for the supplied name.getEnumDefByName
(String typeName) Return the enumeration type definition for the supplied name.Return a special singleton for the open metadata types archive (note not thread safe).getRelationshipDefByGuid
(String typeGuid) Return the relationship type definition for the supplied type guid.getRelationshipDefByName
(String typeName) Return the relationship type definition for the supplied name.getTypeDefByGUID
(String typeGUID) Return the type definition for the supplied type guid.getTypeDefByName
(String typeName) Return the type definition for the supplied name.
-
Constructor Details
-
OpenMetadataTypesArchiveAccessor
Parse the supplied archive.- Parameters:
openMetadataArchive
- archive object
-
-
Method Details
-
getInstance
Return a special singleton for the open metadata types archive (note not thread safe).- Returns:
- OpenMetadataTypesArchiveAccessor instance loaded with the open metadata types
-
getTypeDefByName
Return the type definition for the supplied name.- Parameters:
typeName
- name of type- Returns:
- TypeDef object from the archive
-
getTypeDefByGUID
Return the type definition for the supplied type guid.- Parameters:
typeGUID
- guid of the type- Returns:
- TypeDef object from the archive
-
getEntityDefByName
Return the entity type definition for the supplied name.- Parameters:
typeName
- name of type- Returns:
- EntityDef object from the archive
-
getEntityDefByGuid
Return the entity type definition for the supplied type guid.- Parameters:
typeGuid
- guid of the type- Returns:
- EntityDef object from the archive
-
getRelationshipDefByName
Return the relationship type definition for the supplied name.- Parameters:
typeName
- name of type- Returns:
- RelationshipDef object from the archive
-
getRelationshipDefByGuid
Return the relationship type definition for the supplied type guid.- Parameters:
typeGuid
- guid of type- Returns:
- RelationshipDef object from the archive
-
getClassificationDefByName
Return the classification type definition for the supplied name.- Parameters:
typeName
- name of type- Returns:
- ClassificationDef object from the archive
-
getEnumDefByName
Return the enumeration type definition for the supplied name.- Parameters:
typeName
- name of type- Returns:
- EnumDef object from the archive
-
createTemplateFromTypeDef
Return the instance type definition for the supplied TypeDef- Parameters:
typeDef
- typeDef source values for the InstanceType- Returns:
- the an InstanceType (template)
-