Class OpenMetadataTypesArchiveAccessor


  • public class OpenMetadataTypesArchiveAccessor
    extends Object
    OpenMetadataTypesArchiveAccessor provides utility methods to help access the content of an open metadata archive.
    • Constructor Detail

      • OpenMetadataTypesArchiveAccessor

        public OpenMetadataTypesArchiveAccessor​(OpenMetadataArchive openMetadataArchive)
        Parse the supplied archive.
        Parameters:
        openMetadataArchive - archive object
    • Method Detail

      • getInstance

        public static OpenMetadataTypesArchiveAccessor 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

        public TypeDef getTypeDefByName​(String typeName)
        Return the type definition for the supplied name.
        Parameters:
        typeName - name of type
        Returns:
        TypeDef object from the archive
      • getTypeDefByGUID

        public TypeDef getTypeDefByGUID​(String typeGUID)
        Return the type definition for the supplied type guid.
        Parameters:
        typeGUID - guid of the type
        Returns:
        TypeDef object from the archive
      • getEntityDefByName

        public EntityDef getEntityDefByName​(String typeName)
        Return the entity type definition for the supplied name.
        Parameters:
        typeName - name of type
        Returns:
        EntityDef object from the archive
      • getEntityDefByGuid

        public EntityDef getEntityDefByGuid​(String typeGuid)
        Return the entity type definition for the supplied type guid.
        Parameters:
        typeGuid - guid of the type
        Returns:
        EntityDef object from the archive
      • getRelationshipDefByName

        public RelationshipDef getRelationshipDefByName​(String typeName)
        Return the relationship type definition for the supplied name.
        Parameters:
        typeName - name of type
        Returns:
        RelationshipDef object from the archive
      • getRelationshipDefByGuid

        public RelationshipDef getRelationshipDefByGuid​(String typeGuid)
        Return the relationship type definition for the supplied type guid.
        Parameters:
        typeGuid - guid of type
        Returns:
        RelationshipDef object from the archive
      • getClassificationDefByName

        public ClassificationDef getClassificationDefByName​(String typeName)
        Return the classification type definition for the supplied name.
        Parameters:
        typeName - name of type
        Returns:
        ClassificationDef object from the archive
      • getEnumDefByName

        public EnumDef getEnumDefByName​(String typeName)
        Return the enumeration type definition for the supplied name.
        Parameters:
        typeName - name of type
        Returns:
        EnumDef object from the archive
      • createTemplateFromTypeDef

        public InstanceType createTemplateFromTypeDef​(TypeDef typeDef)
        Return the instance type definition for the supplied TypeDef
        Parameters:
        typeDef - typeDef source values for the InstanceType
        Returns:
        the an InstanceType (template)