com.sas.services.information.metadata
Class KeywordFilter
java.lang.Object
|
+--com.sas.services.information.Filter
|
+--com.sas.services.information.metadata.KeywordFilter
- All Implemented Interfaces:
- FilterInterface,
- Direct Known Subclasses:
- ChannelFilter, ContentFilter, PackageFilter, RemarksFilter, StoredProcessFilter
- public class KeywordFilter
- extends Filter
This class extends the Filter class by adding the ability to search
by keyword.
- Since:
- 1.0
- See Also:
- Serialized Form
| Methods inherited from class com.sas.services.information.Filter |
component2Select, getDAVBase, getDAVBasicSearchString, getDAVScope, getDAVSQLString, getDAVType, getFilterString, getLdapBase, getLdapScope, getLdapString, getLDAPType, getName, getOMRFlags, getOMROption, getOMRRepository, getOMRTemplate, getOMRType, getType, getXPathString, setDAVBase, setDAVScope, setFilterComponent, setLdapBase, setLdapScope, setName, setOMRFlags, setOMROption, setOMRRepository, setOMRTemplate, setType, toString |
_keywords
protected ArrayList _keywords
- The list of keywords to search for.
KeywordFilter
public KeywordFilter()
- Default constructor
KeywordFilter
public KeywordFilter(String key,
int relation,
String value)
- Construct a new filter with a provided condition.
- Parameters:
key - The key to compare.relation - The relationship between the key and value
(usually FilterComponent.EQUALS).value - The value for comparison.
addKeyword
public void addKeyword(String keyword)
- Add a keyword to the list to look for.
- Parameters:
keyword - the keyword to add to the list.
removeKeyword
public void removeKeyword(String keyword)
- Remove a keyword from the list to look for.
- Parameters:
keyword - The keyword to remove from the list.
getKeywordSelectString
protected String getKeywordSelectString()
- Get the XMLSelect string with just the keywords part.
This is a convenience for the subclasses that are building
more complicated searches.
- Returns:
- The keywords portion of an XMLSelect string.
getXMLSelectString
public String getXMLSelectString()
- Get the whole XMLSelect string for this filter.
- Overrides:
getXMLSelectString in class Filter
- Returns:
- The XMLSelect string.
Copyright © 2006 SAS Institute Inc. All Rights Reserved.
javadoc generated Fri, 10 Feb 2006 17:28:57