Class WikiReferenceParser

    • Constructor Detail

      • WikiReferenceParser

        public WikiReferenceParser()
    • Method Detail

      • getLabel

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

        protected String getLink​(String[] chunks)
        Extracts the link from the array of chunks and returns it.
        Parameters:
        chunks - the array of chunks
        Returns:
        a link extracted from the given array of chunks
      • getParameters

        protected WikiParameters getParameters​(String[] chunks)
        Extracts parameters part of the original reference and returns it as a WikiParameters.
        Parameters:
        chunks - the array of chunks
        Returns:
        the parameters
      • splitToChunks

        protected String[] splitToChunks​(String str)
        Returns the given string split to individual segments
        Parameters:
        str - the string to split
        Returns:
        the given string split to individual segments