RSE
Release 1.0

org.eclipse.rse.core.subsystems
Class SubSystemFilterNamingPolicy

java.lang.Object
  extended byorg.eclipse.rse.core.filters.SystemFilterNamingPolicy
      extended byorg.eclipse.rse.core.subsystems.SubSystemFilterNamingPolicy
All Implemented Interfaces:
IRSEFilterNamingPolicy, ISystemFilterConstants, ISystemFilterSavePolicies

public class SubSystemFilterNamingPolicy
extends SystemFilterNamingPolicy
implements IRSEFilterNamingPolicy

A filter naming policy is responsible for returning the save file names for a given filter framework object. This policy implements our naming policy for the filter files in the remote systems project.


Field Summary
 
Fields inherited from class org.eclipse.rse.core.filters.SystemFilterNamingPolicy
DEFAULT_FILENAME_PREFIX_FILTER, DEFAULT_FILENAME_PREFIX_FILTERPOOL, DEFAULT_FILENAME_PREFIX_FILTERPOOLMANAGER, DEFAULT_FILENAME_PREFIX_FILTERPOOLREFERENCEMANAGER, DEFAULT_FOLDERNAME_PREFIX_FILTERPOOL, filterFileNamePrefix, managerFileNamePrefix, poolFileNamePrefix, poolFolderNamePrefix, poolFolderNameSuffix, referenceManagerFileNamePrefix
 
Fields inherited from interface org.eclipse.rse.core.filters.ISystemFilterConstants
DEFAULT_TYPE, SAVEFILE_SUFFIX, TRY_TO_RESTORE_NO, TRY_TO_RESTORE_YES
 
Fields inherited from interface org.eclipse.rse.core.filters.ISystemFilterSavePolicies
SAVE_POLICY_NONE, SAVE_POLICY_ONE_FILE_PER_FILTER, SAVE_POLICY_ONE_FILE_PER_MANAGER, SAVE_POLICY_ONE_FILE_PER_POOL_SAME_FOLDER, SAVE_POLICY_ONE_FILEANDFOLDER_PER_POOL
 
Constructor Summary
SubSystemFilterNamingPolicy()
          Constructor for SubSystemFilterNamingPolicy
 
Method Summary
 String getFilterPoolFolderName(String poolName)
          Get the folder name for the given SystemFilterPool object.
 String getFilterPoolFolderNamePrefix()
          Get the folder name prefix for all pool folders.
 String getFilterPoolSaveFileName(String poolName)
          Get the unqualified save file name for the given SystemFilterPool object.
 String getFilterPoolSaveFileNamePrefix()
          Get the file name prefix for all pool files.
 String getFilterSaveFileName(String filterName)
          Get the unqualified save file name for the given SystemFilter object.
 String getFilterSaveFileNamePrefix()
          Get the file name prefix for all filter files.
 String getManagerSaveFileName(String managerName)
          Get the unqualified save file name for the given SystemFilterPoolManager object.
 String getReferenceManagerSaveFileName(String managerName)
          Get the unqualified save file name for the given SystemFilterPoolReferenceManager object.
 
Methods inherited from class org.eclipse.rse.core.filters.SystemFilterNamingPolicy
getNamingPolicy
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SubSystemFilterNamingPolicy

public SubSystemFilterNamingPolicy()
Constructor for SubSystemFilterNamingPolicy

Method Detail

getManagerSaveFileName

public String getManagerSaveFileName(String managerName)
Get the unqualified save file name for the given SystemFilterPoolManager object. Do NOT include the extension, as .xmi will be added.

Returns "filterPools_"+managerName by default.

Specified by:
getManagerSaveFileName in interface IRSEFilterNamingPolicy
Overrides:
getManagerSaveFileName in class SystemFilterNamingPolicy

getReferenceManagerSaveFileName

public String getReferenceManagerSaveFileName(String managerName)
Get the unqualified save file name for the given SystemFilterPoolReferenceManager object. Do NOT include the extension, as .xmi will be added.

Returns "filterPoolRefs_"+managerName by default.

Specified by:
getReferenceManagerSaveFileName in interface IRSEFilterNamingPolicy
Overrides:
getReferenceManagerSaveFileName in class SystemFilterNamingPolicy

getFilterPoolSaveFileName

public String getFilterPoolSaveFileName(String poolName)
Get the unqualified save file name for the given SystemFilterPool object. Do NOT include the extension, as .xmi will be added.

Returns getFilterPoolSaveFileNamePrefix()+poolName by default.

Specified by:
getFilterPoolSaveFileName in interface IRSEFilterNamingPolicy
Overrides:
getFilterPoolSaveFileName in class SystemFilterNamingPolicy

getFilterPoolSaveFileNamePrefix

public String getFilterPoolSaveFileNamePrefix()
Get the file name prefix for all pool files. Used to deduce the saved pools by examining the file system

By default returns "filterPool_"

Specified by:
getFilterPoolSaveFileNamePrefix in interface IRSEFilterNamingPolicy
Overrides:
getFilterPoolSaveFileNamePrefix in class SystemFilterNamingPolicy

getFilterPoolFolderName

public String getFilterPoolFolderName(String poolName)
Get the folder name for the given SystemFilterPool object.

Returns getFilterPoolFolderNamePrefix()+poolName by default.

Specified by:
getFilterPoolFolderName in interface IRSEFilterNamingPolicy
Overrides:
getFilterPoolFolderName in class SystemFilterNamingPolicy

getFilterPoolFolderNamePrefix

public String getFilterPoolFolderNamePrefix()
Get the folder name prefix for all pool folders. Used to deduce the saved pools by examining the file system

By default returns "FilterPool_"

Specified by:
getFilterPoolFolderNamePrefix in interface IRSEFilterNamingPolicy
Overrides:
getFilterPoolFolderNamePrefix in class SystemFilterNamingPolicy

getFilterSaveFileName

public String getFilterSaveFileName(String filterName)
Get the unqualified save file name for the given SystemFilter object. Do NOT include the extension, as .xmi will be added.

Returns getFilterSaveFileNamePrefix()+filterName by default.

Specified by:
getFilterSaveFileName in interface IRSEFilterNamingPolicy
Overrides:
getFilterSaveFileName in class SystemFilterNamingPolicy

getFilterSaveFileNamePrefix

public String getFilterSaveFileNamePrefix()
Get the file name prefix for all filter files. Used to deduce the saved filters by examining the file system

Returns "Filter_" by default.

Specified by:
getFilterSaveFileNamePrefix in interface IRSEFilterNamingPolicy
Overrides:
getFilterSaveFileNamePrefix in class SystemFilterNamingPolicy

RSE
Release 1.0

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