Class AbstractContentAssistVisitor.FilteringMappingCollector
java.lang.Object
org.eclipse.persistence.jpa.jpql.tools.AbstractContentAssistVisitor.FilteringMappingCollector
- All Implemented Interfaces:
AbstractContentAssistVisitor.MappingCollector
- Enclosing class:
AbstractContentAssistVisitor
protected static final class AbstractContentAssistVisitor.FilteringMappingCollector
extends Object
implements AbstractContentAssistVisitor.MappingCollector
This
AbstractContentAssistVisitor.MappingCollector
returns the possible mappings (non-collection type or
collection type) from a managed type.-
Field Summary
Modifier and TypeFieldDescriptionTheFilter
used to filter out either the collection type properties or the non- collection type properties.protected final Resolver
This resolver is used to retrieve the managed type, which is the parent path of this one.protected final String
The suffix is used to determine if the mapping name needs to be filtered out or not. -
Method Summary
Modifier and TypeMethodDescriptionprotected void
addFilteredMappings
(IManagedType managedType, List<IMapping> mappings) buildFilter
(String suffix) buildMappingNameFilter
(String suffix) Retrieves the possible proposals that can be used to complete a path expression based on the position of the cursor.
-
Field Details
-
filter
TheFilter
used to filter out either the collection type properties or the non- collection type properties. -
resolver
This resolver is used to retrieve the managed type, which is the parent path of this one. -
suffix
The suffix is used to determine if the mapping name needs to be filtered out or not.
-
-
Method Details
-
addFilteredMappings
-
buildFilter
-
buildMappingNameFilter
-
buildProposals
Description copied from interface:AbstractContentAssistVisitor.MappingCollector
Retrieves the possible proposals that can be used to complete a path expression based on the position of the cursor.- Specified by:
buildProposals
in interfaceAbstractContentAssistVisitor.MappingCollector
- Returns:
- The possible proposals
-