|
Remote Systems v6.4.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectEObjectImpl
com.ibm.etools.systems.references.impl.SystemReferencedObjectImpl
com.ibm.etools.systems.filters.impl.SystemFilterImpl
com.ibm.etools.systems.filters.impl.SystemFilterSimpleImpl
A lightweight override of the full-fledged persistable implementation of SystemFilter. This class replaces the heavy-weight MOF implementations with simple non-MOF implementations.
This flavour of SystemFilter implementation is for those cases where a simple in-memory SystemFilter is needed temporarily, perhaps to populate a GUI widget say, and the filter does not need to be savable/restorable. As a result there is no mof, and no need for a parent SystemFilterPool or SystemFilterPoolManager. The class is small, simple and directly instantiable.
This simple implementation does not support:
Field Summary | |
---|---|
protected HashMap |
cachedContents
|
static String |
copyright
|
protected boolean |
isStale
|
Fields inherited from class com.ibm.etools.systems.references.impl.SystemReferencedObjectImpl |
---|
helper |
Constructor Summary | |
---|---|
SystemFilterSimpleImpl(String name)
Constructor for SystemFilterSimpleImpl |
Method Summary | |
---|---|
SystemFilterString |
addFilterString(String newString)
Append a new filter string to this filter's list. |
SystemFilterString |
addFilterString(String newString,
int position)
Insert a new filter string to this filter's list, at the given zero-based position. |
boolean |
areStringsCaseSensitive()
Are filter strings in this filter case sensitive? |
void |
clone(SystemFilter targetFilter)
Clones a given filter to the given target filter. |
Object[] |
getChildren()
Return the children of this filter. |
Object[] |
getContents(ISystemContentsType contentsType)
Returns all the contents of the object (combining results of all filters |
String |
getFilterString()
Get the single filter string. |
int |
getFilterStringCount()
Return how many filter strings are defined in this filter. |
String[] |
getFilterStrings()
Return filter strings as an array of String objects. |
Vector |
getFilterStringsVector()
Return filter strings as a Vector of String objects |
String |
getName()
Get the filter's name |
EList |
getNestedFilters()
Overridden to return null |
Object |
getParent()
Get the parent as set in setParent(Object) |
SystemFilter |
getParentFilter()
Overridden to return null |
SystemFilterPoolManagerProvider |
getProvider()
Overridden to return null |
int |
getRelativeOrder()
Overridden to return -1 |
IFile |
getSaveFile()
Overridden to return null |
String |
getSaveFileName()
Overridden to return null |
EList |
getStrings()
Overridden to return null |
SystemFilter |
getSystemFilter(String aliasName)
Overridden to return null |
int |
getSystemFilterCount()
Overridden to return 0 |
Vector |
getSystemFilterNames()
Overridden to return null |
SystemFilterPoolManager |
getSystemFilterPoolManager()
Overridden to return null |
SystemFilter[] |
getSystemFilters()
Overridden to return null |
SystemFilterString[] |
getSystemFilterStrings()
Get this filter's filter string objects as an array. |
Vector |
getSystemFiltersVector()
Overridden to return null |
String |
getType()
Get the filter's type |
boolean |
hasChildren()
Returns true if this filter has any filter strings |
boolean |
hasContents(ISystemContentsType contentsType)
Returns whether the object has contents of a particular type. |
protected void |
invalidateCache()
Clear internal cache so it will be rebuilt on next request. |
boolean |
isDefault()
Overridden to return false |
boolean |
isNested()
Return true if this filter is a nested filter or not. |
boolean |
isPromptable()
Is this a special filter that prompts the user when it is expanded? |
boolean |
isStale()
Indicates whether the cached object is stale |
boolean |
isStringsCaseSensitive()
Are filter strings in this filter case sensitive? |
boolean |
isTransient()
Return true if this a transient or simple filter that is only created temporary "on the fly" and not intended to be saved or part of the filter framework. |
void |
markStale(boolean isStale)
Marks the object as stale or not |
void |
moveSystemFilterString(int pos,
SystemFilterString filterString)
Move a given filter string to a given zero-based location. |
SystemFilterString |
removeFilterString(int position)
Remove a filter string from this filter's list, given its zero-based position |
SystemFilterString |
removeFilterString(String oldString)
Delete a filter string from this filter's list. |
boolean |
removeFilterString(SystemFilterString filterString)
Remove a filter string from this filter's list, given its SystemFilterString object. |
void |
save()
Overridden to do nothing |
void |
setContents(ISystemContentsType type,
Object[] cachedContents)
Cache contents of a certain type. |
void |
setDefault(boolean value)
Overridden to do nothing |
void |
setFilterString(String filterString)
Set the single filter string |
void |
setFilterStrings(String[] newStrings)
Set all the filter strings for this filter. |
void |
setFilterStrings(Vector newStrings)
Set all the filter strings for this filter. |
void |
setName(String name)
Set the filter's name |
void |
setParent(Object parent)
Set the parent. |
void |
setParentFilter(SystemFilter l)
Overridden to do nothing |
void |
setPromptable(boolean promptable)
Is this a special filter that prompts the user when it is expanded? |
void |
setRelativeOrder(int value)
Overridden to do nothing |
void |
setStringsCaseSensitive(boolean value)
Specify if filter strings in this filter are case sensitive. |
void |
setSupportsNestedFilters(boolean value)
Overridden to do nothing |
void |
setType(String type)
Set the filter's type |
boolean |
supportsNestedFilters()
Does this support nested filters? |
void |
updateFilterString(SystemFilterString filterString,
String newValue)
Update a new filter string's string value. |
Methods inherited from class com.ibm.etools.systems.references.impl.SystemReferencedObjectImpl |
---|
addReference, getReferenceCount, getReferencingObjects, removeAllReferences, removeReference |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.ibm.etools.systems.references.ISystemReferencedObject |
---|
addReference, getReferenceCount, getReferencingObjects, removeAllReferences, removeReference |
Field Detail |
public static final String copyright
protected boolean isStale
protected HashMap cachedContents
Constructor Detail |
public SystemFilterSimpleImpl(String name)
Method Detail |
protected void invalidateCache()
SystemFilterImpl
invalidateCache
in class SystemFilterImpl
public boolean isTransient()
We always return true
isTransient
in interface SystemFilter
isTransient
in class SystemFilterImpl
SystemFilterSimpleImpl
public void clone(SystemFilter targetFilter)
clone
in interface SystemFilter
clone
in class SystemFilterImpl
targetFilter
- new filter into which we copy all our datapublic void setFilterString(String filterString)
public String getFilterString()
public void setParent(Object parent)
public Object getParent()
public void setName(String name)
setName
in interface SystemFilter
setName
in class SystemFilterImpl
public String getName()
getName
in interface SystemFilter
getName
in class SystemFilterImpl
public void setType(String type)
setType
in interface SystemFilter
setType
in class SystemFilterImpl
public String getType()
getType
in interface SystemFilter
getType
in class SystemFilterImpl
public void setStringsCaseSensitive(boolean value)
setStringsCaseSensitive
in interface SystemFilter
setStringsCaseSensitive
in class SystemFilterImpl
value
- The new value of the StringsCaseSensitive attributepublic boolean isStringsCaseSensitive()
isStringsCaseSensitive
in interface SystemFilter
isStringsCaseSensitive
in class SystemFilterImpl
public boolean areStringsCaseSensitive()
areStringsCaseSensitive
in interface SystemFilterContainer
areStringsCaseSensitive
in class SystemFilterImpl
public void setPromptable(boolean promptable)
setPromptable
in interface SystemFilter
setPromptable
in class SystemFilterImpl
public boolean isPromptable()
isPromptable
in interface SystemFilter
isPromptable
in class SystemFilterImpl
public String[] getFilterStrings()
getFilterStrings
in interface SystemFilter
getFilterStrings
in class SystemFilterImpl
public Vector getFilterStringsVector()
getFilterStringsVector
in interface SystemFilter
getFilterStringsVector
in class SystemFilterImpl
public int getFilterStringCount()
getFilterStringCount
in interface SystemFilter
getFilterStringCount
in class SystemFilterImpl
public void setFilterStrings(Vector newStrings)
setFilterStrings
in interface SystemFilter
setFilterStrings
in class SystemFilterImpl
newStrings
- Vector of String objectspublic void setFilterStrings(String[] newStrings)
setFilterStrings
in interface SystemFilter
setFilterStrings
in class SystemFilterImpl
newStrings
- array of String objectspublic SystemFilterString addFilterString(String newString)
addFilterString
in interface SystemFilter
addFilterString
in class SystemFilterImpl
public SystemFilterString addFilterString(String newString, int position)
addFilterString
in interface SystemFilter
addFilterString
in class SystemFilterImpl
public SystemFilterString removeFilterString(String oldString)
removeFilterString
in interface SystemFilter
removeFilterString
in class SystemFilterImpl
public SystemFilterString removeFilterString(int position)
removeFilterString
in interface SystemFilter
removeFilterString
in class SystemFilterImpl
public Object[] getChildren()
getChildren
in class SystemFilterImpl
public boolean hasChildren()
hasChildren
in class SystemFilterImpl
public SystemFilterString[] getSystemFilterStrings()
getSystemFilterStrings
in interface SystemFilter
getSystemFilterStrings
in class SystemFilterImpl
public void setSupportsNestedFilters(boolean value)
setSupportsNestedFilters
in interface SystemFilter
setSupportsNestedFilters
in class SystemFilterImpl
public boolean supportsNestedFilters()
supportsNestedFilters
in class SystemFilterImpl
public boolean isNested()
isNested
in interface SystemFilter
isNested
in class SystemFilterImpl
public void updateFilterString(SystemFilterString filterString, String newValue)
updateFilterString
in interface SystemFilter
updateFilterString
in class SystemFilterImpl
public boolean removeFilterString(SystemFilterString filterString)
removeFilterString
in interface SystemFilter
removeFilterString
in class SystemFilterImpl
public void moveSystemFilterString(int pos, SystemFilterString filterString)
moveSystemFilterString
in interface SystemFilter
moveSystemFilterString
in class SystemFilterImpl
public void setRelativeOrder(int value)
setRelativeOrder
in interface SystemFilter
setRelativeOrder
in class SystemFilterImpl
public int getRelativeOrder()
getRelativeOrder
in interface SystemFilter
getRelativeOrder
in class SystemFilterImpl
public void setDefault(boolean value)
setDefault
in interface SystemFilter
setDefault
in class SystemFilterImpl
public boolean isDefault()
isDefault
in interface SystemFilter
isDefault
in class SystemFilterImpl
public void setParentFilter(SystemFilter l)
setParentFilter
in interface SystemFilter
setParentFilter
in class SystemFilterImpl
public SystemFilter getParentFilter()
getParentFilter
in interface SystemFilter
getParentFilter
in class SystemFilterImpl
public Vector getSystemFilterNames()
getSystemFilterNames
in interface SystemFilterContainer
getSystemFilterNames
in class SystemFilterImpl
public EList getNestedFilters()
getNestedFilters
in interface SystemFilter
getNestedFilters
in class SystemFilterImpl
public Vector getSystemFiltersVector()
getSystemFiltersVector
in interface SystemFilterContainer
getSystemFiltersVector
in class SystemFilterImpl
public SystemFilter[] getSystemFilters()
getSystemFilters
in interface SystemFilterContainer
getSystemFilters
in class SystemFilterImpl
public int getSystemFilterCount()
getSystemFilterCount
in interface SystemFilterContainer
getSystemFilterCount
in class SystemFilterImpl
public EList getStrings()
getStrings
in interface SystemFilter
getStrings
in class SystemFilterImpl
public SystemFilter getSystemFilter(String aliasName)
getSystemFilter
in interface SystemFilterContainer
getSystemFilter
in class SystemFilterImpl
aliasName
- unique aliasName (case insensitive) to search on.
public SystemFilterPoolManagerProvider getProvider()
getProvider
in interface SystemFilter
getProvider
in class SystemFilterImpl
public SystemFilterPoolManager getSystemFilterPoolManager()
getSystemFilterPoolManager
in interface SystemFilterContainer
getSystemFilterPoolManager
in class SystemFilterImpl
public IFile getSaveFile()
getSaveFile
in interface SystemFilter
getSaveFile
in class SystemFilterImpl
public String getSaveFileName()
getSaveFileName
in interface SystemFilter
getSaveFileName
in class SystemFilterImpl
public void save() throws Exception
save
in interface SystemFilter
save
in class SystemFilterImpl
Exception
public void setContents(ISystemContentsType type, Object[] cachedContents)
type
- the contents type.cachedContents
- the contents to cache.public Object[] getContents(ISystemContentsType contentsType)
ISystemContainer
getContents
in interface ISystemContainer
contentsType
- type of contents
ISystemContainer.getContents(com.ibm.etools.systems.model.ISystemContentsType)
public boolean hasContents(ISystemContentsType contentsType)
ISystemContainer
hasContents
in interface ISystemContainer
contentsType
- type of contents
true
if the object has contents, false
otherwise.ISystemContainer.hasContents(com.ibm.etools.systems.model.ISystemContentsType)
public boolean isStale()
ISystemContainer
isStale
in interface ISystemContainer
ISystemContainer.isStale()
public void markStale(boolean isStale)
ISystemContainer
markStale
in interface ISystemContainer
isStale
- whether the object is to be marked stale or notISystemContainer.markStale(boolean)
|
Remote Systems v6.4.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |