org.alicebot.server.core.util
Class Tag

java.lang.Object
  extended by org.alicebot.server.core.util.Tag

public class Tag
extends java.lang.Object

A simple little utility class for working with a pseudo-XML concept of "tag".

Author:
Jon Baer

Constructor Summary
Tag(java.lang.String name)
          Creates a new tag.
 
Method Summary
 java.lang.String getName()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Tag

public Tag(java.lang.String name)
Creates a new tag.

Parameters:
name - the name of the tag
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object
Returns:
the tag's name surrounded by angle brackets

getName

public java.lang.String getName()
Returns:
the tag's name