Package loci.formats.in
Class BaseZeissReader.Tag
java.lang.Object
loci.formats.in.BaseZeissReader.Tag
- Enclosing class:
BaseZeissReader
Content of a single tag from a Tags block.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionTag(int keyid, String value, BaseZeissReader.Context context) Constructor.Tag(int index, BaseZeissReader.Context context) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionintintgetIndex()getKey()protected StringgetKey(int tagID) Return the string corresponding to the given ID.intgetKeyID()getValue()voidsetCategory(int category) voidsetIndex(int index) voidsetKey(int keyid) voidtoString()booleanvalid()Check if the tag is valid (key, value and category have been set).
-
Field Details
-
index
private int index -
keyid
private int keyid -
value
-
category
private int category -
context
-
-
Constructor Details
-
Tag
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
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
-
getKeyID
public int getKeyID() -
setValue
-
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
-
getKey
Return the string corresponding to the given ID.
-