public class ContentResultSetHelper.SearchResultFieldSet extends Object
Modifier and Type | Field and Description |
---|---|
private Map<String,ContentResultSetHelper.SearchResultFieldSetElement> |
_elements |
Constructor and Description |
---|
SearchResultFieldSet()
Creates a set of a result field
|
Modifier and Type | Method and Description |
---|---|
boolean |
addElement(ContentResultSetHelper.SearchResultFieldSetElement element)
Add a new element to this set
|
void |
addElements(List<ContentResultSetHelper.SearchResultFieldSetElement> elements)
Add a list of elements to this set
|
ContentResultSetHelper.SearchResultFieldSetElement |
getElement(String name)
Get a element contains into this set by its name
|
List<ContentResultSetHelper.SearchResultFieldSetElement> |
getElements()
Returns the elements of this set
|
boolean |
hasElement(String name)
Determines if this set contains the given element
|
private Map<String,ContentResultSetHelper.SearchResultFieldSetElement> _elements
public SearchResultFieldSet()
public boolean addElement(ContentResultSetHelper.SearchResultFieldSetElement element)
element
- The element to addpublic void addElements(List<ContentResultSetHelper.SearchResultFieldSetElement> elements)
elements
- The elements to addpublic ContentResultSetHelper.SearchResultFieldSetElement getElement(String name)
name
- The name of the elementnull
if not foundpublic boolean hasElement(String name)
name
- The name of the elementtrue
if existspublic List<ContentResultSetHelper.SearchResultFieldSetElement> getElements()