
/**
 * Category as type:semantics
 * 
 * @author Nobo Komagata 
 * @version 5/30/03
 */
public class Category
{
    public String type;
    public String sem;

    /**
     * Constructor for objects of class Category
     */
    public Category(String type, String sem) {
        this.type = type;
        this.sem = sem;
    }

    /**
     * String representation of the Category
     * 
     * @param       None
     * @return      String representation 
     */
    public String toString() {
        if (sem == null || sem.equals(""))
            return type;
        else
            return type + ":" + sem;
    }
}

