Class BaseZeissReader.Tag

java.lang.Object
loci.formats.in.BaseZeissReader.Tag
Enclosing class:
BaseZeissReader

public class BaseZeissReader.Tag extends Object
Content of a single tag from a Tags block.
  • Field Details

    • index

      private int index
    • keyid

      private int keyid
    • value

      private String value
    • category

      private int category
    • context

      private BaseZeissReader.Context context
  • Constructor Details

    • Tag

      public Tag(int index, BaseZeissReader.Context context)
      Constructor. All variables are initialized to be invalid to permit later validation of correct parsing.
      Parameters:
      index - the index number of the tag.
      context - the context (main, scaling or plane).
    • Tag

      public Tag(int keyid, String value, BaseZeissReader.Context context)
      Constructor. The key id will be automatically set.
      Parameters:
      keyid - the key number of the tag.
      value - the value of the tag.
      context - the context (main, scaling or plane).
  • Method Details

    • setKey

      public void setKey(int keyid)
    • getKey

      public String getKey()
    • getKeyID

      public int getKeyID()
    • setValue

      public void setValue(String value)
    • getValue

      public String getValue()
    • setIndex

      public void setIndex(int index)
    • getIndex

      public int getIndex()
    • setCategory

      public void setCategory(int category)
    • getCategory

      public int getCategory()
    • valid

      public boolean valid()
      Check if the tag is valid (key, value and category have been set).
      Returns:
      true if valid, otherwise false.
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getKey

      protected String getKey(int tagID)
      Return the string corresponding to the given ID.