java.lang.Object
com.foursoft.harness.navext.runtime.IdLookupProvider<I>
Type Parameters:
I - Type of the superclass if elements that are identifiable (have an id).

public class IdLookupProvider<I> extends Object
Provides the possibility to lookup elements by their technical (xml) id. The IdLookupProvider is normally created during the unmarshalling process by an ExtendedUnmarshaller.
Author:
becker
  • Constructor Details

    • IdLookupProvider

      public IdLookupProvider(Map<String,I> idLookup)
  • Method Details

    • findById

      public <T extends I> Optional<T> findById(Class<T> clazz, String id)
    • merge

      public IdLookupProvider<I> merge(IdLookupProvider<I> toMerge)
      Merges this IdLookupProvider with toMerge and returns this. Duplicate id mappings are removed, the mappings in toMerge are kept.
      Parameters:
      toMerge - the id provider to merge
      Returns:
      this for fluent API