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
FieldsModifier and TypeFieldDescriptionTheFilterused to filter out either the collection type properties or the non- collection type properties.protected final ResolverThis resolver is used to retrieve the managed type, which is the parent path of this one.protected final StringThe suffix is used to determine if the mapping name needs to be filtered out or not. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddFilteredMappings(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
TheFilterused 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.MappingCollectorRetrieves 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
-