public class ContentTypeQuery extends Object implements SearchQuery
ContentTypeAware.getType()
method.Constructor and Description |
---|
ContentTypeQuery(Collection<ContentTypeEnum> contentTypes)
Search for content that is one of the provided types
|
ContentTypeQuery(ContentTypeEnum contentType)
Search for a particular type of content
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
SearchQuery |
expand()
Expands this query into a composite query (that composes other queries).
|
Set<ContentTypeEnum> |
getContentTypes()
Get the content types being searched for, as strings.
|
String |
getKey() |
List<String> |
getParameters()
List of parameters as
String s or SearchQuery s. |
int |
hashCode() |
public ContentTypeQuery(ContentTypeEnum contentType)
contentType
- the type string for the content to be searched forpublic ContentTypeQuery(Collection<ContentTypeEnum> contentTypes)
contentTypes
- a list of content types to search forpublic String getKey()
getKey
in interface SearchQuery
public List<String> getParameters()
SearchQuery
String
s or SearchQuery
s.getParameters
in interface SearchQuery
String
s or SearchQuery
s.public Set<ContentTypeEnum> getContentTypes()
Really does the same as getParameters()
but has a more apt name.
public SearchQuery expand()
SearchQuery
expand
in interface Expandable<SearchQuery>
expand
in interface SearchQuery
Copyright © 2003–2016 Atlassian. All rights reserved.