public abstract class PrecisProfile extends Object implements Comparator<CharSequence>
PrecisProfiles| Modifier | Constructor and Description |
|---|---|
protected |
PrecisProfile(boolean identifierClass) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract CharSequence |
applyAdditionalMappingRule(CharSequence input)
The additional mapping rule of a profile specifies whether additional
mappings are performed on the characters of a string, such as:
Mapping of delimiter characters (such as '@', ':', '/', '+',
and '-')
Mapping of special characters (e.g., non-ASCII space characters to
ASCII space or control characters to nothing).
|
protected abstract CharSequence |
applyCaseMappingRule(CharSequence input)
The case mapping rule of a profile specifies whether case mapping
(instead of case preservation) is performed on the characters of a
string, and how the mapping is applied (e.g., mapping uppercase and
titlecase characters to their lowercase equivalents).
|
protected abstract CharSequence |
applyDirectionalityRule(CharSequence input)
The directionality rule of a profile specifies how to treat strings
containing what are often called "right-to-left" (RTL) characters
(see Unicode Standard Annex #9 [UAX9]).
|
protected abstract CharSequence |
applyNormalizationRule(CharSequence input)
The normalization rule of a profile specifies which Unicode
normalization form (D, KD, C, or KC) is to be applied.
|
protected abstract CharSequence |
applyWidthMappingRule(CharSequence input)
The width mapping rule of a profile specifies whether width mapping
is performed on the characters of a string, and how the mapping is
done.
|
protected static CharSequence |
caseFold(CharSequence input)
Applies the default case folding to a string.
|
protected static void |
checkBidiRule(CharSequence label)
Checks the Bidi Rule.
|
int |
compare(CharSequence o1,
CharSequence o2)
Compares two strings with each other.
|
String |
enforce(CharSequence input)
Enforcement entails applying all of the rules specified for a
particular string class or profile thereof to an individual
string, for the purpose of determining if the string can be used
in a given protocol slot.
|
String |
prepare(CharSequence input)
Preparation entails only ensuring that the characters in an
individual string are allowed by the underlying PRECIS string
class.
|
protected static CharSequence |
widthMap(CharSequence s)
Maps full-width and half-width characters to their decomposition mappings.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcomparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLongprotected PrecisProfile(boolean identifierClass)
identifierClass - True, if the base class for this profile is the "IdentifierClass"; false if it's the "FreeFormClass".protected static CharSequence widthMap(CharSequence s)
protected static CharSequence caseFold(CharSequence input)
input - The input string.protected static void checkBidiRule(CharSequence label)
label - The label to check.InvalidDirectionalityException - If the label violates the Bidi Rule.public String prepare(CharSequence input)
input - The input string.InvalidCodePointException - If the input contains invalid code points (which are disallowed by the underlying Precis String class).public String enforce(CharSequence input)
input - The input string.InvalidCodePointException - If the input contains invalid code points (which are disallowed by the underlying Precis String class).public int compare(CharSequence o1, CharSequence o2)
compare in interface Comparator<CharSequence>o1 - The first string.o2 - The second string.InvalidCodePointException - If the input contains invalid code points (which are disallowed by the underlying Precis String class).protected abstract CharSequence applyWidthMappingRule(CharSequence input)
input - The input string.protected abstract CharSequence applyAdditionalMappingRule(CharSequence input)
input - The input string.protected abstract CharSequence applyCaseMappingRule(CharSequence input)
input - The input string.protected abstract CharSequence applyNormalizationRule(CharSequence input)
input - The input string.protected abstract CharSequence applyDirectionalityRule(CharSequence input)
input - The input string.Copyright © 2015–2016 XMPP.rocks. All rights reserved.