Class OpenMetadataArchive

  • All Implemented Interfaces:
    java.io.Serializable

    public class OpenMetadataArchive
    extends OpenMetadataArchiveElementHeader
    OpenMetadataArchive defines the structure of the properties in an open metadata archive. There are 3 sections:
    • ArchiveProperties: provides details of the source and contents of the archive.
    • TypeStore: a list of new AttributeTypeDefs, new TypeDefs and patches to existing TypeDefs.
    • InstanceStore: a list of new metadata instances (Entities, Relationships and Classifications).
    See Also:
    Serialized Form
    • Constructor Detail

      • OpenMetadataArchive

        public OpenMetadataArchive()
        Default constructor relies on the initialization of variables in their type declaration.
      • OpenMetadataArchive

        public OpenMetadataArchive​(OpenMetadataArchive template)
        Copy/clone constructor
        Parameters:
        template - object to copy
    • Method Detail

      • getArchiveProperties

        public OpenMetadataArchiveProperties getArchiveProperties()
        Return details of the archive.
        Returns:
        OpenMetadataArchiveProperties object
      • setArchiveProperties

        public void setArchiveProperties​(OpenMetadataArchiveProperties archiveProperties)
        Set the archive properties for a new archive.
        Parameters:
        archiveProperties - the descriptive properties of the archive
      • getArchiveTypeStore

        public OpenMetadataArchiveTypeStore getArchiveTypeStore()
        Return the TypeStore for this archive. The TypeStore contains TypeDefs and TypeDef patches.
        Returns:
        OpenMetadataArchiveTypeStore object
      • setArchiveTypeStore

        public void setArchiveTypeStore​(OpenMetadataArchiveTypeStore archiveTypeStore)
        Set up the TypeStore for this archive. The TypeStore contains TypeDefs and TypeDef patches.
        Parameters:
        archiveTypeStore - OpenMetadataArchiveTypeStore object
      • getArchiveInstanceStore

        public OpenMetadataArchiveInstanceStore getArchiveInstanceStore()
        Return the InstanceStore for this archive. The InstanceStore contains entity and relationship metadata instances.
        Returns:
        OpenMetadataArchiveInstanceStore object
      • setArchiveInstanceStore

        public void setArchiveInstanceStore​(OpenMetadataArchiveInstanceStore archiveInstanceStore)
        Set up the InstanceStore for this archive. The InstanceStore contains entity and relationship metadata instances.
        Parameters:
        archiveInstanceStore - OpenMetadataArchiveInstanceStore object
      • toString

        public java.lang.String toString()
        Standard toString method.
        Overrides:
        toString in class java.lang.Object
        Returns:
        JSON style description of variables.
      • equals

        public boolean equals​(java.lang.Object objectToCompare)
        Validate that an object is equal depending on their stored values.
        Overrides:
        equals in class java.lang.Object
        Parameters:
        objectToCompare - object
        Returns:
        boolean result
      • hashCode

        public int hashCode()
        Return a hash code based on the values of this object.
        Overrides:
        hashCode in class java.lang.Object
        Returns:
        in hash code