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 java.lang.Object implements AbstractContentAssistVisitor.MappingCollector
ThisAbstractContentAssistVisitor.MappingCollectorreturns the possible mappings (non-collection type or collection type) from a managed type.
-
-
Field Summary
Fields Modifier and Type Field Description protected Filter<IMapping>filterTheFilterused to filter out either the collection type properties or the non- collection type properties.protected ResolverresolverThis resolver is used to retrieve the managed type, which is the parent path of this one.protected java.lang.StringsuffixThe suffix is used to determine if the mapping name needs to be filtered out or not.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddFilteredMappings(IManagedType managedType, java.util.List<IMapping> mappings)protected Filter<IMapping>buildFilter(java.lang.String suffix)protected Filter<IMapping>buildMappingNameFilter(java.lang.String suffix)java.util.Collection<IMapping>buildProposals()Retrieves the possible proposals that can be used to complete a path expression based on the position of the cursor.
-
-
-
Field Detail
-
filter
protected final Filter<IMapping> filter
TheFilterused to filter out either the collection type properties or the non- collection type properties.
-
resolver
protected final Resolver resolver
This resolver is used to retrieve the managed type, which is the parent path of this one.
-
suffix
protected final java.lang.String suffix
The suffix is used to determine if the mapping name needs to be filtered out or not.
-
-
Method Detail
-
addFilteredMappings
protected void addFilteredMappings(IManagedType managedType, java.util.List<IMapping> mappings)
-
buildProposals
public java.util.Collection<IMapping> buildProposals()
Retrieves the possible proposals that can be used to complete a path expression based on the position of the cursor.- Specified by:
buildProposalsin interfaceAbstractContentAssistVisitor.MappingCollector- Returns:
- The possible proposals
-
-