Class Element


  • public class Element
    extends Object
    Author:
    lichtenwald This class will encapsulate a set of Tokens which are assembled in an ArrayList
    • Method Detail

      • toString

        public String toString()
        This method is used to output the components of the element to String
        Overrides:
        toString in class Object
        Returns:
        output String which will contain the token components
      • getPosTag

        public String getPosTag()
        This method is used to return the tag of the Element which simply will be a String which contains all tags of the tokens of the current element.
        Returns:
        tag String which will contain all of the tags of the tokens of the current element.
      • setEllipsisLabel

        public void setEllipsisLabel​(String ellipsisLabel)
        This method is used to set up an ellipsis label for an element which means that all of the tokens will get this ellipsis label
        Parameters:
        ellipsisLabel - String which contains the ellipsis label to be given to the element