|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.arsdigita.search.FilterSpecification
com.arsdigita.search.filters.ObjectTypeFilterSpecification
A filter spec for supplying a list of object types to the object type filter type. There are two flags can alter the semantics of the filter. The first specifies whether the list of an inclusion (white) or exclusion (black) list.
Field Summary | |
static String |
EXCLUSION
|
static String |
TYPES
|
Constructor Summary | |
ObjectTypeFilterSpecification(ObjectType type)
Creates a new filter restricting results to a single object type. |
|
ObjectTypeFilterSpecification(ObjectType[] types)
Creates a new filter restricting results to a set object type. |
|
ObjectTypeFilterSpecification(String typeName)
Creates a new filter restricting results to a single object type. |
|
ObjectTypeFilterSpecification(String[] typeNames)
Creates a new filter restricting results to a set object types. |
Method Summary | |
ObjectType[] |
getTypes()
Returns the set of object types to filter on |
boolean |
isExclusion()
Gets the flag indicating that the type list is an exclusion list rather than an inclusion list. |
void |
setExclusion(boolean exclude)
Sets the flag indicating that the type list is an exclusion list rather than an inclusion list. |
Methods inherited from class com.arsdigita.search.FilterSpecification |
equals, get, getType, hashCode, set |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String TYPES
public static final String EXCLUSION
Constructor Detail |
public ObjectTypeFilterSpecification(String typeName)
typeName
- the object type namepublic ObjectTypeFilterSpecification(String[] typeNames)
public ObjectTypeFilterSpecification(ObjectType type)
type
- the object typepublic ObjectTypeFilterSpecification(ObjectType[] types)
Method Detail |
public ObjectType[] getTypes()
public void setExclusion(boolean exclude)
exclude
- true to mark as an exclusion listpublic boolean isExclusion()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |