public class MapRule
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
MapRule()
creates a new empty MapRule
|
MapRule(java.lang.String language,
java.lang.String pattern,
java.util.List<Rule> rules)
creates an initialized MapRule
|
Modifier and Type | Method and Description |
---|---|
MapRule |
copy() |
boolean |
equals(java.lang.Object obj)
Indicates whether some other MapRule is "equal to" this one.
|
java.util.regex.Pattern |
getCompiledPattern()
Returns Compiled Pattern for the language/country ISO code (of a form
LL-CC).
|
java.lang.String |
getLanguage()
Returns Language Name (to display it in a dialog).
|
java.lang.String |
getLanguageCode()
Returns Language Code for programmatic usage.
|
java.lang.String |
getPattern()
Returns Pattern for the language/country ISO code (of a form LL-CC).
|
java.util.List<Rule> |
getRules()
Returns List of rules (of class
Rule ) for the language |
int |
hashCode()
Returns a hash code value for the object.
|
void |
setLanguage(java.lang.String language)
Sets Language Name
|
void |
setPattern(java.lang.String pattern)
Sets Pattern for the language/country ISO code (of a form LL-CC).
|
void |
setRules(java.util.List<Rule> rules)
Sets List of rules (of class
Rule ) for the language |
java.lang.String |
toString()
Returns a string representation of the MapRule for debugging purposes.
|
public MapRule()
public MapRule(java.lang.String language, java.lang.String pattern, java.util.List<Rule> rules)
public java.lang.String getLanguage()
public void setLanguage(java.lang.String language)
public java.lang.String getLanguageCode()
public java.lang.String getPattern()
public java.util.regex.Pattern getCompiledPattern()
public void setPattern(java.lang.String pattern) throws java.util.regex.PatternSyntaxException
java.util.regex.PatternSyntaxException
public MapRule copy()
public java.util.List<Rule> getRules()
Rule
) for the languagepublic void setRules(java.util.List<Rule> rules)
Rule
) for the languagepublic boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object