Rational Developer for Power Systems Software
V7.6

com.ibm.etools.iseries.rse.ui
Class QSYSRemoteFileMatcher

java.lang.Object
  extended by SystemRemoteObjectMatcher
      extended by com.ibm.etools.iseries.rse.ui.QSYSRemoteFileMatcher

public class QSYSRemoteFileMatcher
extends SystemRemoteObjectMatcher

This class encapsulates all the criteria required to identify a match on a remote iSeries system QSYS file object. You must decide whether it is source or data files or both. To get files that don't have members, use ISeriesRemoteObjectMatcher.

Use the static method getFileTypeMatcher(int fileType) to get an default instance that matches on any file of any name of the required type.

You only need to instantiate this class if you want to match on a file of a particular name or attribute.

See Also:
com.ibm.etools.systems.core.ui.view.ISystemRemoteElement

Field Summary
static String copyright
           
static int DTAFILES
           
static QSYSRemoteFileMatcher instAnyFiles
           
static QSYSRemoteFileMatcher instDtaFiles
           
static QSYSRemoteFileMatcher instSrcFiles
           
static int SRCFILES
           
 
Constructor Summary
QSYSRemoteFileMatcher(String nameFilter, String attribute)
          Constructor.
 
Method Summary
static QSYSRemoteFileMatcher getFileTypeMatcher()
          Return an instance that will match on any data or src file of any name
static QSYSRemoteFileMatcher getFileTypeMatcher(boolean srcFilesOnly)
          Return an instance that will match either on any file, or only on src files
static QSYSRemoteFileMatcher getFileTypeMatcher(int fileType)
          Return an instance that will match on any file of any name, of the given type
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

copyright

public static final String copyright
See Also:
Constant Field Values

instDtaFiles

public static QSYSRemoteFileMatcher instDtaFiles

instSrcFiles

public static QSYSRemoteFileMatcher instSrcFiles

instAnyFiles

public static QSYSRemoteFileMatcher instAnyFiles

SRCFILES

public static final int SRCFILES
See Also:
Constant Field Values

DTAFILES

public static final int DTAFILES
See Also:
Constant Field Values
Constructor Detail

QSYSRemoteFileMatcher

public QSYSRemoteFileMatcher(String nameFilter,
                             String attribute)
Constructor. You only need to instantiate yourself if you want to match on an object of a particular name or attribute (eg, "DSPF36").

Otherwise, call #getObjectTypeMatcher(boolean includeFiles).

Parameters:
includeFiles - pass true to match on all non-library object types including files, or pass false to exclude files.
Method Detail

getFileTypeMatcher

public static QSYSRemoteFileMatcher getFileTypeMatcher(int fileType)
Return an instance that will match on any file of any name, of the given type

Parameters:
fileType - Specify one of SRCFILES, DTAFILES

getFileTypeMatcher

public static QSYSRemoteFileMatcher getFileTypeMatcher()
Return an instance that will match on any data or src file of any name


getFileTypeMatcher

public static QSYSRemoteFileMatcher getFileTypeMatcher(boolean srcFilesOnly)
Return an instance that will match either on any file, or only on src files


Rational Developer for Power Systems Software
V7.6

Copyright 2011 IBM Corp. All Rights Reserved.

Note: This documentation is for part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.