Class ResolvedNameReference

  • All Implemented Interfaces:
    NameReference

    public class ResolvedNameReference
    extends AbstractNameReference
    Reference that is resolved since the beginning - it calls any action immediately.

    The reason for this class is that we do not want duplicate code paths in the SpreadSheet Loader (or other database loader)

    • one path for the case when the named entities are found in the current space system
    • one path for the case when they are not found and will be resolved later.
    • Method Detail

      • tryResolve

        public boolean tryResolve​(NameDescription nd)
        Description copied from interface: NameReference
        Execute all the actions (if not already executed) and return true if the reference has been resolved.
        Returns:
        true if the reference has been resolved
      • addResolvedAction

        public NameReference addResolvedAction​(NameReference.ResolvedAction action)
        Description copied from interface: NameReference
        Adds an action to the list to be executed when the reference is resolved and returns this. If the reference is already resolved, execute the action immediately.
        Returns:
        this
      • isResolved

        public boolean isResolved()