textclassifier.ARCBC
Class Category

java.lang.Object
  extended by textclassifier.ARCBC.Category

public class Category
extends java.lang.Object

Represents a classification category


Constructor Summary
Category(int id, java.lang.String name, java.lang.String description)
          Constructor of the class Category
 
Method Summary
 boolean equals(java.lang.Object ocat2)
          Compares two objects of the class Category
 int getId()
          Returns a value of number identifier of a category
 java.lang.String getName()
          Returns a name of a category
 java.lang.String toShortString()
          Converts information about a category into a shorter string form
 java.lang.String toString()
          Converts information about a category into a string form
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Category

public Category(int id,
                java.lang.String name,
                java.lang.String description)
Constructor of the class Category

Parameters:
id - number identifier of a category
name - name of the category
description - description of the category in a form of string
Method Detail

toString

public java.lang.String toString()
Converts information about a category into a string form

Overrides:
toString in class java.lang.Object
Returns:
a string representation

toShortString

public java.lang.String toShortString()
Converts information about a category into a shorter string form

Returns:
a string representation

getId

public int getId()
Returns a value of number identifier of a category

Returns:
an identifier value

getName

public java.lang.String getName()
Returns a name of a category

Returns:
a name value

equals

public boolean equals(java.lang.Object ocat2)
Compares two objects of the class Category

Overrides:
equals in class java.lang.Object
Parameters:
ocat2 - the second object to compare
Returns:
a boolean value, true, if the objects are equal