Package org.ametys.cms.search.cocoon
Class ContentResultSetHelper.SearchResultFieldSet
- java.lang.Object
-
- org.ametys.cms.search.cocoon.ContentResultSetHelper.SearchResultFieldSet
-
- Direct Known Subclasses:
ContentResultSetHelper.SearchResultFieldSetElement
- Enclosing class:
- ContentResultSetHelper
public class ContentResultSetHelper.SearchResultFieldSet extends Object
Inner class representing a set of result fields.
-
-
Constructor Summary
Constructors Constructor Description SearchResultFieldSet()
Creates a set of a result field
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
addElement(ContentResultSetHelper.SearchResultFieldSetElement element)
Add a new element to this setvoid
addElements(List<ContentResultSetHelper.SearchResultFieldSetElement> elements)
Add a list of elements to this setContentResultSetHelper.SearchResultFieldSetElement
getElement(String name)
Get a element contains into this set by its nameList<ContentResultSetHelper.SearchResultFieldSetElement>
getElements()
Returns the elements of this setboolean
hasElement(String name)
Determines if this set contains the given element
-
-
-
Constructor Detail
-
SearchResultFieldSet
public SearchResultFieldSet()
Creates a set of a result field
-
-
Method Detail
-
addElement
public boolean addElement(ContentResultSetHelper.SearchResultFieldSetElement element)
Add a new element to this set- Parameters:
element
- The element to add- Returns:
- true if the element was added, false otherwise
-
addElements
public void addElements(List<ContentResultSetHelper.SearchResultFieldSetElement> elements)
Add a list of elements to this set- Parameters:
elements
- The elements to add
-
getElement
public ContentResultSetHelper.SearchResultFieldSetElement getElement(String name)
Get a element contains into this set by its name- Parameters:
name
- The name of the element- Returns:
- the element or
null
if not found
-
hasElement
public boolean hasElement(String name)
Determines if this set contains the given element- Parameters:
name
- The name of the element- Returns:
true
if exists
-
getElements
public List<ContentResultSetHelper.SearchResultFieldSetElement> getElements()
Returns the elements of this set- Returns:
- the element
-
-