public class GroupSearchContent extends Object
Modifier and Type | Field and Description |
---|---|
private List<Content> |
_contents |
private String |
_fieldPath |
private String |
_groupName |
private List<GroupSearchContent> |
_subList |
Constructor and Description |
---|
GroupSearchContent()
Create a new empty group, only used for root
|
GroupSearchContent(String fieldPath,
String groupName)
Create a group, named after a metadataPath/name
|
Modifier and Type | Method and Description |
---|---|
void |
addContent(Content content)
Add a content in this group
|
void |
addContents(List<Content> contents)
Add contents in this group
|
void |
addToSubList(GroupSearchContent subList)
Add a sub group in this group
|
List<Content> |
getContents()
Get the list of contents in this group
|
String |
getGroupFieldPath()
Get the metadataPath that was used to create this group
|
String |
getGroupName()
Get the value of the metadata (as a String) used to create this group
|
List<GroupSearchContent> |
getSubList()
Get the sub groups in this group
|
private List<GroupSearchContent> _subList
private String _groupName
private String _fieldPath
public GroupSearchContent()
public GroupSearchContent(String fieldPath, String groupName)
fieldPath
- path of the field used to create this group and siblingsgroupName
- value of the field for this grouppublic void addToSubList(GroupSearchContent subList)
subList
- sub-grouppublic void addContents(List<Content> contents)
contents
- contents to addpublic void addContent(Content content)
content
- content to addpublic List<GroupSearchContent> getSubList()
public List<Content> getContents()
public String getGroupName()
public String getGroupFieldPath()