Class GroupSearchContent

    • Constructor Detail

      • GroupSearchContent

        public GroupSearchContent()
        Create a new empty group, only used for root
      • GroupSearchContent

        public GroupSearchContent​(String fieldPath,
                                  String groupName)
        Create a group, named after a metadataPath/name
        Parameters:
        fieldPath - path of the field used to create this group and siblings
        groupName - value of the field for this group
    • Method Detail

      • addContents

        public void addContents​(List<Content> contents)
        Add contents in this group
        Parameters:
        contents - contents to add
      • addContent

        public void addContent​(Content content)
        Add a content in this group
        Parameters:
        content - content to add
      • getContents

        public List<ContentgetContents()
        Get the list of contents in this group
        Returns:
        list of contents in this group
      • getGroupName

        public String getGroupName()
        Get the value of the metadata (as a String) used to create this group
        Returns:
        Metadata value as a string
      • getGroupFieldPath

        public String getGroupFieldPath()
        Get the metadataPath that was used to create this group
        Returns:
        metadataPath