com.vgrs.xcode.idna.contextualrule
Class ExtendedArabicIndicDigitsRule

java.lang.Object
  extended by com.vgrs.xcode.idna.contextualrule.AbstractContextualRule
      extended by com.vgrs.xcode.idna.contextualrule.AbstractAllCodePointsEvaluated
          extended by com.vgrs.xcode.idna.contextualrule.AbstractArabicIndicDigitsCodePoints
              extended by com.vgrs.xcode.idna.contextualrule.ExtendedArabicIndicDigitsRule
All Implemented Interfaces:
ContextualRule

public class ExtendedArabicIndicDigitsRule
extends AbstractArabicIndicDigitsCodePoints

Version:
1.0 May 5, 2010
Author:
nchigurupati

Field Summary
 
Fields inherited from interface com.vgrs.xcode.idna.contextualrule.ContextualRule
ALL_CODE_POINTS_EVALUATED_FALSE, ALL_CODE_POINTS_EVALUATED_TRUE
 
Constructor Summary
ExtendedArabicIndicDigitsRule()
           
 
Method Summary
 void executeRule(int aCodePointIndex, int[] aCodePoints)
          If an Extended Arabic Indic digit is found, then no Arabic Indic Digits may be present.
 boolean ruleAppliesToCodepoint(int aCodePoint)
          Tests if the given code point is one of the Extended Arabic Indic digits code point.
 
Methods inherited from class com.vgrs.xcode.idna.contextualrule.AbstractArabicIndicDigitsCodePoints
getArabicIndicDigits, getExtendedArabicIndicDigits
 
Methods inherited from class com.vgrs.xcode.idna.contextualrule.AbstractAllCodePointsEvaluated
allCodePointsEvaluated
 
Methods inherited from class com.vgrs.xcode.idna.contextualrule.AbstractContextualRule
getCodePointToWhichRuleApplies, getRuleName, setCodePointToWhichRuleApplies, setRuleName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExtendedArabicIndicDigitsRule

public ExtendedArabicIndicDigitsRule()
Method Detail

ruleAppliesToCodepoint

public boolean ruleAppliesToCodepoint(int aCodePoint)
Tests if the given code point is one of the Extended Arabic Indic digits code point.

Specified by:
ruleAppliesToCodepoint in interface ContextualRule
Overrides:
ruleAppliesToCodepoint in class AbstractContextualRule
Returns:
boolean indicating if the contextual rule needs to be executed

executeRule

public void executeRule(int aCodePointIndex,
                        int[] aCodePoints)
                 throws XcodeException
If an Extended Arabic Indic digit is found, then no Arabic Indic Digits may be present.

Parameters:
aCodePointIndex - the index of the code point that satisfied the condition of this rule
aCodePoints - the code points to be evaluated.
Throws:
XcodeException


Copyright © 2000-2010 VeriSign Inc. All Rights Reserved