|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.northwestern.at.wordhoard.model.search.SpellingWithCollationStrength
public class SpellingWithCollationStrength
A spelling with a collation strength search criterion.
Constructor Summary | |
---|---|
SpellingWithCollationStrength(Spelling spelling,
int strength)
Creates a new spelling with collation strength object. |
Method Summary | |
---|---|
void |
appendDescription(TextLine line,
FontInfo romanFontInfo,
FontInfo[] fontInfo)
Appends a description to a text line. |
int |
compareTo(java.lang.Object obj)
Implement Comparable interface. |
boolean |
equals(java.lang.Object obj)
Returns true if this object is equal to some other object. |
java.lang.Class |
getJoinClass()
Gets the join class. |
Spelling |
getSpelling()
Gets the spelling. |
int |
getStrength()
Gets the collation strength. |
java.lang.String |
getWhereClause()
Gets the Hibernate where clause. |
int |
hashCode()
Returns a hash code for the object. |
void |
setArg(org.hibernate.Query q,
org.hibernate.Session session)
Sets the Hibernate query argument. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SpellingWithCollationStrength(Spelling spelling, int strength)
The collation strengths are:
spelling
- Spelling. Each run of wild card '*' characters is
replaced by a single '*' character.strength
- Collation strength. Method Detail |
---|
public Spelling getSpelling()
public int getStrength()
public java.lang.Class getJoinClass()
getJoinClass
in interface SearchCriterion
public java.lang.String getWhereClause()
getWhereClause
in interface SearchCriterion
public void setArg(org.hibernate.Query q, org.hibernate.Session session)
setArg
in interface SearchCriterion
q
- Hibernate query.session
- Hibernate session. public void appendDescription(TextLine line, FontInfo romanFontInfo, FontInfo[] fontInfo)
appendDescription
in interface SearchCriterion
line
- Text line.romanFontInfo
- Roman font info.fontInfo
- Array of font info indexed by character
set. public boolean equals(java.lang.Object obj)
The SpellingWithCollationStrength are equal if their strings are identical and they have the same character set and their collation strength is the same.
equals
in class java.lang.Object
obj
- The other object.
public int hashCode()
hashCode
in class java.lang.Object
public int compareTo(java.lang.Object obj)
obj
- Other spelling object to which to compare this object.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |