|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.slee.profile.query.QueryCollator
public final class QueryCollator
The QueryCollator class describes a collator that can be
used in dynamic profile queries in a Java serializable form.
| Constructor Summary | |
|---|---|
QueryCollator(java.util.Locale locale)
Create a collator identified by locale only. |
|
QueryCollator(java.util.Locale locale,
int strength)
Create a collator for a given locale using the specified strength. |
|
QueryCollator(java.util.Locale locale,
int strength,
int decomposition)
Create a collator for a given locale using the specified strength and decomposition. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object obj)
Compare this query collator for equality with another object. |
java.text.Collator |
getCollator()
Get the java.text.Collator described by this
QueryCollator object. |
int |
getDecomposition()
Get the decomposition mode specified for this collator. |
java.util.Locale |
getLocale()
Get the locale for this collator. |
int |
getStrength()
Get the collator strength specified for this collator. |
boolean |
hasDecomposition()
Determine whether a decomposition mode has been defined for this collator. |
int |
hashCode()
Get a hash code value for this query collator. |
boolean |
hasStrength()
Determine whether a collator strength has been defined for this collator. |
java.lang.String |
toString()
Get a string representation for this query collator. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public QueryCollator(java.util.Locale locale)
locale - the locale for which the collator should be obtained.
java.lang.NullPointerException - if locale is null.
public QueryCollator(java.util.Locale locale,
int strength)
locale - the locale for which the collator should be obtained.strength - the strength of collator comparisions. This must
be one of Collator.PRIMARY, Collator.SECONDARY,
Collator.TERTIARY, or Collator.IDENTICAL.
java.lang.NullPointerException - if locale is null.
public QueryCollator(java.util.Locale locale,
int strength,
int decomposition)
locale - the locale for which the collator should be obtained.strength - the strength of collator comparisions. This must
be one of Collator.PRIMARY, Collator.SECONDARY,
Collator.TERTIARY, or Collator.IDENTICAL.decomposition - the decomposition mode to use in the collator.
This must be one of Collator.NO_DECOMPOSITION,
Collator.CANONICAL_DECOMPOSITION, or
Collator.FULL_DECOMPOSITION.
java.lang.NullPointerException - if locale is null.| Method Detail |
|---|
public java.util.Locale getLocale()
public boolean hasStrength()
true if a collator strength has been defined for this
collator, false otherwise.public int getStrength()
hasStrength() == true.
public boolean hasDecomposition()
true if a decomposition mode has been defined for this
collator, false otherwise.public int getDecomposition()
hasDecomposition() == true.
public java.text.Collator getCollator()
java.text.Collator described by this
QueryCollator object.
Collator described by this object.public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectobj - the object to compare this with.
true if obj is a QueryCollator
with the same locale, strength, and decomposition properties as
this, false otherwise.public int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||