|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectproject.biota.digir.SchemaConcept
A wrapper around java.lang.String to represent the name of a schema
concept. The schema concepts are read at application startup, they are
kept in a java.util.HashSet. When a DiGIR request comes in, each schema
concept used in the request is checked for memebership in this
java.util.HashSet. In order to ignore the difference in letter case, this
class overrides the equals()
and hashCode()
methods of class java.lang.String.
String
Constructor Summary | |
SchemaConcept(String conceptName)
Constructs a ConceptString object for a schema concept. |
Method Summary | |
boolean |
equals(Object obj)
Overrides the String.equals() method. |
String |
getName()
Gets the name of this schema concept. |
int |
hashCode()
Overrides the String.hashCode() method. |
String |
toString()
Returns the name of this schema concept. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public SchemaConcept(String conceptName)
conceptName
- the name of the schema conceptMethod Detail |
public String getName()
public String toString()
public boolean equals(Object obj)
String.equals()
method.
obj
- the object to compare this String against
public int hashCode()
String.hashCode()
method. It turns the name
of the schema concept to upper case and gets the hash code of the
upper-case name.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |