Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 

RSE
Release 3.0

org.eclipse.rse.core.filters
Interface ISystemFilterContainer

All Superinterfaces:
IRSEPersistableContainer
All Known Subinterfaces:
ISystemFilter, ISystemFilterPool

public interface ISystemFilterContainer
extends IRSEPersistableContainer

Filter containers are any objects that contain filters. This includes filter pools and filters themselves.


Field Summary
 
Fields inherited from interface org.eclipse.rse.core.model. IRSEPersistableContainer
NO_CHILDREN
 
Method Summary
 boolean addSystemFilter ( ISystemFilter filter)
          Adds given filter to the list without populating the filter strings.
 boolean areStringsCaseSensitive ()
           
  ISystemFilter createSystemFilter ( String aliasName, String[] filterStrings)
          Adds a new system filter to this container (SystemFilterPool or SystemFilter) and populates it with the filter strings created from the strings provided.
 void deleteSystemFilter ( ISystemFilter filter)
          Removes a given filter from the list.
  ISystemFilter getSystemFilter ( String filterName)
           
 int getSystemFilterCount ()
           
  String[] getSystemFilterNames ()
          Get the names of existing filters in this container.
  ISystemFilterPool getSystemFilterPool ()
           
  ISystemFilterPoolManager getSystemFilterPoolManager ()
           
 int getSystemFilterPosition ( ISystemFilter filter)
           
  ISystemFilter[] getSystemFilters ()
           
 void moveSystemFilter (int pos, ISystemFilter filter)
          Move a given filter to a given zero-based location.
 void renameSystemFilter ( ISystemFilter filter, String newName)
          Renames a given filter in the list.
 void updateSystemFilter ( ISystemFilter filter, String newName, String[] newStrings)
          Updates a given filter.
 
Methods inherited from interface org.eclipse.rse.core.model. IRSEPersistableContainer
commit, getPersistableChildren, getPersistableParent, isDirty, isTainted, setDirty, setTainted, setWasRestored, wasRestored
 

Method Detail

getSystemFilterPoolManager


ISystemFilterPoolManager getSystemFilterPoolManager()
Returns:
the filter pool manager managing this collection of filter pools and their filters.

areStringsCaseSensitive

boolean areStringsCaseSensitive()
Returns:
The value of the StringsCaseSensitive attribute Are filters in this filter container case sensitive? If not set locally, queries the parent filter pool manager's attribute.

createSystemFilter


ISystemFilter createSystemFilter(
String aliasName,
                                 
String[] filterStrings)
Adds a new system filter to this container (SystemFilterPool or SystemFilter) and populates it with the filter strings created from the strings provided. Does nothing if this filter already exists in this container.

Parameters:
aliasName - The name to give the new filter. Must be unique for this pool.
filterStrings - The list of String objects that represent the filter strings.
Since:
org.eclipse.rse.core 3.0

addSystemFilter

boolean addSystemFilter(
ISystemFilter filter)
Adds given filter to the list without populating the filter strings.

Parameters:
filter - SystemFilter object to add
Returns:
true if added, false if a filter with this aliasname already existed.

getSystemFilterNames


String[] getSystemFilterNames()
Get the names of existing filters in this container. Typically used by name validators for New and Rename actions to verify new name is unique.

Returns:
String array of the names of existing filters in this container.
Since:
org.eclipse.rse.core 3.0

getSystemFilters


ISystemFilter[] getSystemFilters()
Returns:
an array of the ISystemFilter objects contained in this filter container.

getSystemFilter


ISystemFilter getSystemFilter(
String filterName)
Returns:
a system filter given its name. Will return null if no filter by this name is found.

getSystemFilterPool


ISystemFilterPool getSystemFilterPool()
Returns:
the parent pool of this container. If this is itself a pool, returns "this". For a nested filter, returns the pool that is the ultimate parent of this filter.

getSystemFilterCount

int getSystemFilterCount()
Returns:
how many filters are directly defined in this filter container.

deleteSystemFilter

void deleteSystemFilter(
ISystemFilter filter)
Removes a given filter from the list. Will do nothing if the specified filter is not in this filter container.

Parameters:
filter - SystemFilter object to remove

renameSystemFilter

void renameSystemFilter(
ISystemFilter filter,
                        
String newName)
Renames a given filter in the list. The new name is assumed to be valid. Will perform the rename whether or not the filter is contained in this container.

Parameters:
filter - SystemFilter object to rename
newName - New name to assign it.

getSystemFilterPosition

int getSystemFilterPosition(
ISystemFilter filter)
Returns:
a given filter's zero-based location. Will return -1 if the filter is not present in this container.

moveSystemFilter

void moveSystemFilter(int pos,
                      
ISystemFilter filter)
Move a given filter to a given zero-based location. Does nothing if the filter is not in this container.

Parameters:
pos - the new position of the filter.
filter - the filter to move.

updateSystemFilter

void updateSystemFilter(
ISystemFilter filter,
                        
String newName,
                        
String[] newStrings)
Updates a given filter. The filter need not be present in this container but will operate on any filter.

Parameters:
filter - SystemFilter object to update
newName - New name to assign it. Assumes unique checking already done.
newStrings - New strings to assign it. Replaces current strings.

RSE
Release 3.0

Copyright (c) IBM Corporation and others 2000, 2008. All Rights Reserved.

 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire