com.vgrs.xcode.idna.contextualrule
Class ZeroWidthNonJoinerRule

java.lang.Object
  extended by com.vgrs.xcode.idna.contextualrule.AbstractContextualRule
      extended by com.vgrs.xcode.idna.contextualrule.AbstractAllCodePointsNotEvaluated
          extended by com.vgrs.xcode.idna.contextualrule.AbstractJoinerCodePointRule
              extended by com.vgrs.xcode.idna.contextualrule.ZeroWidthNonJoinerRule
All Implemented Interfaces:
ContextualRule

public class ZeroWidthNonJoinerRule
extends AbstractJoinerCodePointRule

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
ZeroWidthNonJoinerRule()
           
 
Method Summary
 void executeRule(int aCodePointIndex, int[] aCodePoints)
          This method first checks to see if the canonical combining class of the code point before the ZERO WIDTH NON JOINER code point is VIRAMA.
 
Methods inherited from class com.vgrs.xcode.idna.contextualrule.AbstractJoinerCodePointRule
checkIfCpBeforeIsVirama
 
Methods inherited from class com.vgrs.xcode.idna.contextualrule.AbstractAllCodePointsNotEvaluated
allCodePointsEvaluated
 
Methods inherited from class com.vgrs.xcode.idna.contextualrule.AbstractContextualRule
getCodePointToWhichRuleApplies, getRuleName, ruleAppliesToCodepoint, setCodePointToWhichRuleApplies, setRuleName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ZeroWidthNonJoinerRule

public ZeroWidthNonJoinerRule()
Method Detail

executeRule

public void executeRule(int aCodePointIndex,
                        int[] aCodePoints)
                 throws XcodeException
This method first checks to see if the canonical combining class of the code point before the ZERO WIDTH NON JOINER code point is VIRAMA. If it is, then the rule returns. Otherwise a further check is done to ensure that the code points satisfy the regular expression specified by this contextual rule.

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