public class BaseZeissReader.Tag
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private int |
category |
private BaseZeissReader.Context |
context |
private int |
index |
private int |
keyid |
private java.lang.String |
value |
Constructor and Description |
---|
Tag(int index,
BaseZeissReader.Context context)
Constructor.
|
Tag(int keyid,
java.lang.String value,
BaseZeissReader.Context context)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
getCategory() |
int |
getIndex() |
java.lang.String |
getKey() |
protected java.lang.String |
getKey(int tagID)
Return the string corresponding to the given ID.
|
int |
getKeyID() |
java.lang.String |
getValue() |
void |
setCategory(int category) |
void |
setIndex(int index) |
void |
setKey(int keyid) |
void |
setValue(java.lang.String value) |
java.lang.String |
toString() |
boolean |
valid()
Check if the tag is valid (key, value and category have been set).
|
private int index
private int keyid
private java.lang.String value
private int category
private BaseZeissReader.Context context
public Tag(int index, BaseZeissReader.Context context)
index
- the index number of the tag.context
- the context (main, scaling or plane).public Tag(int keyid, java.lang.String value, BaseZeissReader.Context context)
keyid
- the key number of the tag.value
- the value of the tag.context
- the context (main, scaling or plane).public void setKey(int keyid)
public java.lang.String getKey()
public int getKeyID()
public void setValue(java.lang.String value)
public java.lang.String getValue()
public void setIndex(int index)
public int getIndex()
public void setCategory(int category)
public int getCategory()
public boolean valid()
public java.lang.String toString()
toString
in class java.lang.Object
protected java.lang.String getKey(int tagID)
Copyright © 2019 Open Microscopy Environment