Class TagCount

java.lang.Object
io.goobi.viewer.api.rest.model.ner.TagCount
All Implemented Interfaces:
Comparable<TagCount>

public class TagCount extends Object implements Comparable<TagCount>

TagCount class.

  • Constructor Details

    • TagCount

      public TagCount(String value, NERTag.Type type, ElementReference element)

      Constructor for TagCount.

      Parameters:
      element - a io.goobi.viewer.servlets.rest.ner.ElementReference object.
      value - a String object.
      type - a io.goobi.viewer.servlets.rest.ner.NERTag.Type object.
  • Method Details

    • getValue

      public String getValue()

      Getter for the field value.

      Returns:
      the value
    • setValue

      public void setValue(String value)

      Setter for the field value.

      Parameters:
      value - the value to set
    • getCounter

      public Integer getCounter()

      getCounter.

      Returns:
      the counter
    • getType

      public NERTag.Type getType()

      Getter for the field type.

      Returns:
      the type
    • setType

      public void setType(NERTag.Type type)

      Setter for the field type.

      Parameters:
      type - the type to set
    • getReferences

      public List<ElementReference> getReferences()

      Getter for the field references.

      Returns:
      the references
    • setReferences

      public void setReferences(List<ElementReference> references)

      Setter for the field references.

      Parameters:
      references - the references to set
    • compareTo

      public int compareTo(TagCount o)
      Specified by:
      compareTo in interface Comparable<TagCount>
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • addReferences

      public void addReferences(List<ElementReference> references)

      addReferences.

      Parameters:
      references - a List object.