Class StringComparator.LocaleRules
java.lang.Object
org.gvsig.gui.beans.comboboxconfigurablelookup.StringComparator.LocaleRules
- Enclosing class:
StringComparator
Represents the information needed by StringComparator for use or not locale-sensitive String
comparison-rules in the compare method.
- Author:
- Pablo Piqueras Bartolomé
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor without parameters.LocaleRules(boolean b, Collator collator) Default constructor with two parameters. -
Method Summary
Modifier and TypeMethodDescriptionGets the value of the inner attribute _collator.booleanGets the value of the inner attribute useLocaleRules.voidsetCollator(Collator collator) Sets a value to the inner attribute _collator.voidsetUseLocaleRules(boolean useLocaleRules) Sets a value to the inner attribute useLocaleRules.
-
Constructor Details
-
LocaleRules
public LocaleRules()Default constructor without parameters. -
LocaleRules
Default constructor with two parameters.- Parameters:
b- Use locale rulescollator- A reference to an object configurated for locale-sensitive String comparison
-
-
Method Details
-
getCollator
Gets the value of the inner attribute _collator.- Returns:
- Returns A reference to an object configurated for locale-sensitive String comparison
-
setCollator
Sets a value to the inner attribute _collator.- Parameters:
collator- A reference to an object configurated for locale-sensitive String comparison
-
isUseLocaleRules
public boolean isUseLocaleRules()Gets the value of the inner attribute useLocaleRules.- Returns:
- Returns the useLocaleRules.
-
setUseLocaleRules
public void setUseLocaleRules(boolean useLocaleRules) Sets a value to the inner attribute useLocaleRules.- Parameters:
useLocaleRules- The useLocaleRules to set.
-