org.jnbt
Class Tag

java.lang.Object
  extended by org.jnbt.Tag
Direct Known Subclasses:
ByteArrayTag, ByteTag, CompoundTag, DoubleTag, EndTag, FloatTag, IntTag, ListTag, LongTag, ShortTag, StringTag

public abstract class Tag
extends Object

Represents a single NBT tag.

Author:
Graham Edgecombe

Constructor Summary
Tag(String name)
          Creates the tag with the specified name.
 
Method Summary
 String getName()
          Gets the name of this tag.
abstract  Object getValue()
          Gets the value of this tag.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Tag

public Tag(String name)
Creates the tag with the specified name.

Parameters:
name - The name.
Method Detail

getName

public final String getName()
Gets the name of this tag.

Returns:
The name of this tag.

getValue

public abstract Object getValue()
Gets the value of this tag.

Returns:
The value of this tag.