Class AbstractContentAssistVisitor.MappingTypeFilter

java.lang.Object
org.eclipse.persistence.jpa.jpql.tools.AbstractContentAssistVisitor.MappingTypeFilter
All Implemented Interfaces:
Filter<IMapping>
Enclosing class:
AbstractContentAssistVisitor

protected static final class AbstractContentAssistVisitor.MappingTypeFilter extends Object implements Filter<IMapping>
This Filter is responsible to filter out the mappings that can't have their type assignable to the one passed in.
  • Field Details

    • type

      protected final IType type
      The type used to determine if the mapping's type is a valid type.
    • visitor

      protected final AbstractContentAssistVisitor visitor
      Enclosing visitor instance.
  • Method Details

    • accept

      public boolean accept(IMapping value)
      Description copied from interface: Filter
      Determines whether the specified object is "accepted" by the filter. The semantics of "accept" is determined by the contract between the client and the server.
      Specified by:
      accept in interface Filter<IMapping>
      Parameters:
      value - The value to filter
      Returns:
      true if the given value is "accepted" by this filter; false if it was "rejected"