Class NonEmptyStringList

All Implemented Interfaces:
Cloneable, Iterable<String>, FeatureStructure, FeatureStructureImpl, CommonList, NonEmptyList

public class NonEmptyStringList extends StringList implements Iterable<String>, NonEmptyList
  • Field Details

  • Constructor Details

    • NonEmptyStringList

      protected NonEmptyStringList()
    • NonEmptyStringList

      public NonEmptyStringList(JCas jcas)
    • NonEmptyStringList

      public NonEmptyStringList(TypeImpl t, CASImpl c)
      used by generator Make a new AnnotationBase
      Parameters:
      t - -
      c - -
    • NonEmptyStringList

      public NonEmptyStringList(JCas jcas, String head, StringList tail)
      Generate a NonEmpty node with the specified head and tail
      Parameters:
      jcas - -
      head - -
      tail - -
    • NonEmptyStringList

      public NonEmptyStringList(JCas jcas, String head)
      Generate a NonEmpty node with the specified head with the empty node as the tail
      Parameters:
      jcas - -
      head - -
  • Method Details

    • getTypeIndexID

      public int getTypeIndexID()
      Overrides:
      getTypeIndexID in class TOP
      Returns:
      the type array index
    • getHead

      public String getHead()
    • setHead

      public void setHead(String v)
    • getTail

      public StringList getTail()
    • setTail

      public void setTail(StringList v)
    • setTail

      public void setTail(CommonList v)
      Description copied from interface: CommonList
      sets the tail of this node
      Specified by:
      setTail in interface CommonList
      Parameters:
      v - the tail
    • get_headAsString

      public String get_headAsString()
      Description copied from interface: CommonList
      Internal use overridden in nonempty nodes Return the head value of a list as a string suitable for serialization. For FeatureStructure values, return the _id.
      Specified by:
      get_headAsString in interface CommonList
      Returns:
      value suitable for serialization
    • set_headFromString

      public void set_headFromString(String v)
      Description copied from interface: CommonList
      Internal use overridden in nonempty nodes used when deserializing
      Specified by:
      set_headFromString in interface CommonList
      Parameters:
      v - value to set, as a string
    • iterator

      public Iterator<String> iterator()
      Specified by:
      iterator in interface Iterable<String>
      Overrides:
      iterator in class StringList