Class XWikiReferenceParser

    • Constructor Detail

      • XWikiReferenceParser

        public XWikiReferenceParser()
    • Method Detail

      • getLabel

        protected String getLabel​(String[] chunks)
        Description copied from class: WikiReferenceParser
        Extracts the label from the array of chunks and returns it.
        Overrides:
        getLabel in class WikiReferenceParser
        Parameters:
        chunks - the array of chunks
        Returns:
        a label extracted from the given array of chunks
      • getLink

        protected String getLink​(String[] chunks)
        Description copied from class: WikiReferenceParser
        Extracts the link from the array of chunks and returns it.
        Overrides:
        getLink in class WikiReferenceParser
        Parameters:
        chunks - the array of chunks
        Returns:
        a link extracted from the given array of chunks
      • splitToChunks

        protected String[] splitToChunks​(String str)
        Description copied from class: WikiReferenceParser
        Returns the given string split to individual segments
        Overrides:
        splitToChunks in class WikiReferenceParser
        Parameters:
        str - the string to split
        Returns:
        the given string split to individual segments