net.sf.dict4j.entity
Class Database

java.lang.Object
  extended by net.sf.dict4j.entity.Database

public class Database
extends java.lang.Object

Represents dict database


Field Summary
static java.lang.String ALL_DATABASES
          If the database name is specified with a star (decimal code 42, "*"), then all of the matches in all available databases will be displayed.
static java.lang.String FIRST_DATABASE
          If the database name is specified with an exclamation point (decimal code 33, "!")
 
Constructor Summary
Database(java.lang.String name)
           
Database(java.lang.String name, java.lang.String description)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.String getDescription()
           
 java.lang.String getName()
           
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

ALL_DATABASES

public static final java.lang.String ALL_DATABASES
If the database name is specified with a star (decimal code 42, "*"), then all of the matches in all available databases will be displayed.

See Also:
Constant Field Values

FIRST_DATABASE

public static final java.lang.String FIRST_DATABASE
If the database name is specified with an exclamation point (decimal code 33, "!"), then all of the databases will be searched until a match is found, and all matches in that database will be displayed.

See Also:
Constant Field Values
Constructor Detail

Database

public Database(java.lang.String name)

Database

public Database(java.lang.String name,
                java.lang.String description)
Method Detail

getDescription

public java.lang.String getDescription()

getName

public java.lang.String getName()

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object