Remote Systems
v6.4.1

com.ibm.etools.systems.subsystems.impl
Class SubSystemFilterNamingPolicy

java.lang.Object
  extended bycom.ibm.etools.systems.filters.impl.SystemFilterNamingPolicyImpl
      extended bycom.ibm.etools.systems.subsystems.impl.SubSystemFilterNamingPolicy
All Implemented Interfaces:
SystemFilterConstants, SystemFilterNamingPolicy, SystemFilterSavePolicies

public class SubSystemFilterNamingPolicy
extends SystemFilterNamingPolicyImpl
implements SystemFilterNamingPolicy

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
static String copyright
           
 
Fields inherited from class com.ibm.etools.systems.filters.impl.SystemFilterNamingPolicyImpl
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 com.ibm.etools.systems.filters.SystemFilterConstants
DEFAULT_TYPE, SAVEFILE_SUFFIX, TRY_TO_RESTORE_NO, TRY_TO_RESTORE_YES
 
Fields inherited from interface com.ibm.etools.systems.filters.SystemFilterSavePolicies
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 com.ibm.etools.systems.filters.impl.SystemFilterNamingPolicyImpl
getNamingPolicy
 
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
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 SystemFilterNamingPolicy
Overrides:
getManagerSaveFileName in class SystemFilterNamingPolicyImpl

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 SystemFilterNamingPolicy
Overrides:
getReferenceManagerSaveFileName in class SystemFilterNamingPolicyImpl

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 SystemFilterNamingPolicy
Overrides:
getFilterPoolSaveFileName in class SystemFilterNamingPolicyImpl

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 SystemFilterNamingPolicy
Overrides:
getFilterPoolSaveFileNamePrefix in class SystemFilterNamingPolicyImpl

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 SystemFilterNamingPolicy
Overrides:
getFilterPoolFolderName in class SystemFilterNamingPolicyImpl

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 SystemFilterNamingPolicy
Overrides:
getFilterPoolFolderNamePrefix in class SystemFilterNamingPolicyImpl

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 SystemFilterNamingPolicy
Overrides:
getFilterSaveFileName in class SystemFilterNamingPolicyImpl

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 SystemFilterNamingPolicy
Overrides:
getFilterSaveFileNamePrefix in class SystemFilterNamingPolicyImpl

Remote Systems
v6.4.1

Copyright © 2005 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.