com.arsdigita.cms.search
Class ContentTypeFilterSpecification

java.lang.Object
  extended bycom.arsdigita.search.FilterSpecification
      extended bycom.arsdigita.cms.search.ContentTypeFilterSpecification

public class ContentTypeFilterSpecification
extends com.arsdigita.search.FilterSpecification

A filter spec for supplying a list of content types to the content type filter type.


Field Summary
static String TYPES
           
 
Constructor Summary
ContentTypeFilterSpecification(ContentType type)
          Creates a new filter restricting results to a single content type.
ContentTypeFilterSpecification(ContentType[] types)
          Creates a new filter restricting results to a set content type.
ContentTypeFilterSpecification(String typeName)
          Creates a new filter restricting results to a single content type.
ContentTypeFilterSpecification(String[] typeNames)
          Creates a new filter restricting results to a set content types.
 
Method Summary
 ContentType[] getTypes()
          Returns the set of object types to filter on
 
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

TYPES

public static final String TYPES
See Also:
Constant Field Values
Constructor Detail

ContentTypeFilterSpecification

public ContentTypeFilterSpecification(String typeName)
Creates a new filter restricting results to a single content type.

Parameters:
typeName - the content type name

ContentTypeFilterSpecification

public ContentTypeFilterSpecification(String[] typeNames)
Creates a new filter restricting results to a set content types.


ContentTypeFilterSpecification

public ContentTypeFilterSpecification(ContentType type)
Creates a new filter restricting results to a single content type.

Parameters:
type - the content type

ContentTypeFilterSpecification

public ContentTypeFilterSpecification(ContentType[] types)
Creates a new filter restricting results to a set content type.

Method Detail

getTypes

public ContentType[] getTypes()
Returns the set of object types to filter on

Returns:
the object type


Copyright (c) 2004 Red Hat, Inc. Corporation. All Rights Reserved. Generated at July 19 2004:2352 UTC