Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle TopLink
11g Release 1 (11.1.1)

E28847-01


org.eclipse.persistence.jpa.internal.jpql
Class ContentAssistVisitor.MappingTypeFilter

java.lang.Object
  extended by org.eclipse.persistence.jpa.internal.jpql.ContentAssistVisitor.MappingTypeFilter

All Implemented Interfaces:
Filter<IMapping>
Enclosing class:
ContentAssistVisitor

private class ContentAssistVisitor.MappingTypeFilter
extends java.lang.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 Summary
private  IType type
          The type used to determine if the mapping's type is a valid type.

 

Constructor Summary
ContentAssistVisitor.MappingTypeFilter(IType type)
          Creates a new MappingTypeFilter.

 

Method Summary
 boolean accept(IMapping value)
          Determines whether the specified object is "accepted" by the filter.

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Field Detail

type

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

Constructor Detail

ContentAssistVisitor.MappingTypeFilter

ContentAssistVisitor.MappingTypeFilter(IType type)
Creates a new MappingTypeFilter.
Parameters:
type - The type used to determine if the mapping's type is a valid type

Method Detail

accept

public boolean accept(IMapping value)
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".

Skip navigation links

Copyright © 1998, 2012, Oracle. All Rights Reserved.