Class MapRegistryHandler

    • Constructor Detail

      • MapRegistryHandler

        public MapRegistryHandler​(Map<String,​AASDescriptor> rootMap)
        Constructor that takes a reference to a map as a base for the registry entries
    • Method Detail

      • contains

        public boolean contains​(IIdentifier id)
        Description copied from interface: IRegistryHandler
        Queries the registry datasource to check, if an entry with the given identifier exists.
        Specified by:
        contains in interface IRegistryHandler
        Parameters:
        id - The asset- or AAS-identifier that will be checked
        Returns:
        True, if an entry with the given identifier exists
      • remove

        public void remove​(IIdentifier id)
        Description copied from interface: IRegistryHandler
        Removes an entry with a given identifier from the registry datasource
        Specified by:
        remove in interface IRegistryHandler
        Parameters:
        id - The asset- or AAS-identifier that will be removed
      • insert

        public void insert​(AASDescriptor descriptor)
        Description copied from interface: IRegistryHandler
        Inserts a new descriptor into the registry datasource.
        Specified by:
        insert in interface IRegistryHandler
        Parameters:
        descriptor - The descriptor that will be inserted.
      • update

        public void update​(AASDescriptor descriptor)
        Description copied from interface: IRegistryHandler
        Updates a given descriptor. It is assumed that an entry with the same AAS id already exists in the registry datasource.
        Specified by:
        update in interface IRegistryHandler
        Parameters:
        descriptor - The descriptor that will be inserted.
      • get

        public AASDescriptor get​(IIdentifier id)
        Description copied from interface: IRegistryHandler
        Queries the registry datasource for a entry with the given identifier.
        Specified by:
        get in interface IRegistryHandler
        Parameters:
        id - The asset- or AAS-identifier for which the descriptor should be retrieved.
        Returns:
        The found descriptor from the registry datasource matching the id.