|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface ContextualRule
Interface for implementing the contextual rules in IDNA2008 Tables document.
| Field Summary | |
|---|---|
static boolean |
ALL_CODE_POINTS_EVALUATED_FALSE
|
static boolean |
ALL_CODE_POINTS_EVALUATED_TRUE
Booleans to specify if all code points in the rule have been evaluated. |
| Method Summary | |
|---|---|
boolean |
allCodePointsEvaluated()
|
void |
executeRule(int aCodePointIndex,
int[] aCodePoints)
Executes the rule as per the IDNA2008 specification's contextual rule requirements for this rule. |
java.lang.String |
getRuleName()
|
boolean |
ruleAppliesToCodepoint(int aCodePoint)
Checks if the specified code point satisfies the condition for executing the rule |
void |
setRuleName(java.lang.String aRuleName)
|
| Field Detail |
|---|
static final boolean ALL_CODE_POINTS_EVALUATED_TRUE
ArabicIndicDigitsRule,
KatakanaMiddleDotRule, etc.) evaluate all the code points when
executed. For these rules a value of true is returned.
static final boolean ALL_CODE_POINTS_EVALUATED_FALSE
| Method Detail |
|---|
boolean ruleAppliesToCodepoint(int aCodePoint)
aCodePoint -
void executeRule(int aCodePointIndex,
int[] aCodePoints)
throws XcodeException
aCodePointIndex - the index of the code point that satisfied the condition of this
ruleaCodePoints - the code points to be evaluated.
XcodeExceptionjava.lang.String getRuleName()
void setRuleName(java.lang.String aRuleName)
aRuleName - set the name of the rule as specified in ContextualRule.propertiesboolean allCodePointsEvaluated()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||