Interface TermUpdate

All Known Implementing Classes:
TermUpdateImpl

public interface TermUpdate
Collection of changes made to terms (labels, descriptions, ...).
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final TermUpdate
    Empty update that does not alter or remove any terms.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns terms added or modified in this update.
    Returns language codes of terms removed in this update.
    boolean
    Checks whether the update is empty.
  • Field Details

    • EMPTY

      static final TermUpdate EMPTY
      Empty update that does not alter or remove any terms.
  • Method Details

    • isEmpty

      boolean isEmpty()
      Checks whether the update is empty. Empty update will not change or remove any terms.
      Returns:
      true if the update is empty, false otherwise
    • getModified

      Returns terms added or modified in this update. Existing terms are preserved if their language code is not listed here.
      Returns:
      added or modified terms indexed by language code
    • getRemoved

      Set<String> getRemoved()
      Returns language codes of terms removed in this update.
      Returns:
      language codes of removed terms