|
Foundation |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.services.information.search.ObjectNameFilter
public class ObjectNameFilter
The ObjectNameFilter class is used to filter or search for objects by their Name attribute. For instance, applications can search for only those objects that have the word "SAS" contained within their name. This class supports searching for this value within an object's description as well.
Field Summary | |
---|---|
protected java.lang.String |
_filterDescription
|
protected boolean |
_includeDescription
|
protected java.lang.String |
_name
|
protected SearchOperator |
_searchOperator
|
protected static java.lang.String |
METADATA_DESC
|
protected static java.lang.String |
METADATA_NAME
|
Constructor Summary | |
---|---|
ObjectNameFilter(java.lang.String name,
boolean includeDescription)
Constructs a new name filter that allows objects to be searched on by their name |
|
ObjectNameFilter(java.lang.String name,
boolean includeDescription,
SearchOperator searchOperator)
Constructs a new name filter that allows objects to be searched on by their name |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
|
static SearchOperator |
getDefaultOperator()
Returns the default operator, CONTAINS, used for all name searches. |
FilterComponent |
getFilterComponent()
Returns the filter component used for processing this search criteria |
java.lang.String |
getFilterDescription()
Returns the description of this filter. |
java.lang.String |
getFilterType()
Returns the localized name of this filter. |
java.lang.String |
getName()
Returns the name being searched for |
SearchOperator |
getSearchOperator()
Returns the operator being used in this search |
boolean |
isIncludingDescription()
Returns true if searching within the description field |
Field Detail |
---|
protected static final java.lang.String METADATA_NAME
protected static final java.lang.String METADATA_DESC
protected java.lang.String _name
protected boolean _includeDescription
protected SearchOperator _searchOperator
protected java.lang.String _filterDescription
Constructor Detail |
---|
public ObjectNameFilter(java.lang.String name, boolean includeDescription)
name
- the name to search onincludeDescription
- if true, the search will look through the objects' descriptions
as wellpublic ObjectNameFilter(java.lang.String name, boolean includeDescription, SearchOperator searchOperator)
name
- the name to search onincludeDescription
- if true, the search will look through the objects' descriptionssearchOperator
- will be the SearchOperator enum with values for "Contains", "Equals" or "Starts with"
as wellMethod Detail |
---|
public static SearchOperator getDefaultOperator()
public java.lang.String getFilterType()
SearchFilter
getFilterType
in interface SearchFilter
public java.lang.String getFilterDescription()
SearchFilter
getFilterDescription
in interface SearchFilter
public java.lang.String getName()
public boolean isIncludingDescription()
public SearchOperator getSearchOperator()
public FilterComponent getFilterComponent()
SearchFilter
getFilterComponent
in interface SearchFilter
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
|
Foundation |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |