Class VersionInfo

  • All Implemented Interfaces:
    Serializable

    public final class VersionInfo
    extends Object
    implements Serializable
    This class contains the info created for a version. It will be used to consolidate the version.
    See Also:
    Serialized Form
    • Constructor Detail

      • VersionInfo

        public VersionInfo()
    • Method Detail

      • getVersionOID

        public ObjectID getVersionOID()
        Get the objectID of the main versioned object
        Returns:
        versionOID
      • setVersionOID

        public void setVersionOID​(ObjectID newOID)
        Set the objectID of the main versioned object
        Parameters:
        newOID - OID to be set
      • addVersionedObject

        public void addVersionedObject​(ObjectID newOID,
                                       ObjectID originalOID)
        Add a new pair versionOID-originalOID to the mapping
        Parameters:
        newOID - The OID of the version
        originalOID - The original OID corresponding to versionOID
      • setVersionsMapping

        public void setVersionsMapping​(Map<ObjectID,​ObjectID> versionToOriginal)
        Set the versionOID-originalOID mapping
        Parameters:
        versionToOriginal - A map containing a set of versionOIDs and their correspondence to original OIDs
      • getVersionsMapping

        public Map<ObjectID,​ObjectID> getVersionsMapping()
        Get the versionOID-originalOID mapping
        Returns:
        The mapping of the versionInfo
      • setOriginalMD

        public void setOriginalMD​(Map<ObjectID,​MetaDataInfo> newOriginalMD)
        Set the objectID-metadata mapping
        Parameters:
        newOriginalMD - A map containing the metadata of each ObjectID
      • getOriginalMD

        public Map<ObjectID,​MetaDataInfo> getOriginalMD()
        Get the objectID-metadata mapping
        Returns:
        A map containing the metadata of each ObjectID
      • setLocID

        public void setLocID​(ExecutionEnvironmentID theLocID)
        Parameters:
        theLocID - the locID to set