Eclipse Platform
Release 3.6

org.eclipse.core.resources.filtermatchers
Class AbstractFileInfoMatcher

java.lang.Object
  extended by org.eclipse.core.resources.filtermatchers.AbstractFileInfoMatcher
Direct Known Subclasses:
CompoundFileInfoMatcher

public abstract class AbstractFileInfoMatcher
extends Object

The abstract base class for all file info matchers. Instances of this class are provided using the org.eclipse.core.resources.filterMatchers extension point.

Since:
3.6

Constructor Summary
AbstractFileInfoMatcher()
           
 
Method Summary
abstract  void initialize(IProject project, Object arguments)
          Sets initialization data for this matcher.
abstract  boolean matches(IContainer parent, IFileInfo fileInfo)
          Tests the given FileInfo
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractFileInfoMatcher

public AbstractFileInfoMatcher()
Method Detail

matches

public abstract boolean matches(IContainer parent,
                                IFileInfo fileInfo)
                         throws CoreException
Tests the given FileInfo

Parameters:
parent - the parent container
fileInfo - the FileInfo object to test
Returns:
true if the given FileInfo matches, and false otherwise.
Throws:
CoreException - the implementor should throw a CoreException if, in the case that the parent or fileInfo doesn't exist in the workspace or in the file system, the return value can't be determined.

initialize

public abstract void initialize(IProject project,
                                Object arguments)
                         throws CoreException
Sets initialization data for this matcher.

Parameters:
project -
arguments -
Throws:
CoreException - if initialization failed

Eclipse Platform
Release 3.6

Guidelines for using Eclipse APIs.

Copyright (c) Eclipse contributors and others 2000, 2010. All rights reserved.