com.vgrs.xcode.idna.contextualrule
Class AbstractJoinerCodePointRule

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
All Implemented Interfaces:
ContextualRule
Direct Known Subclasses:
ZeroWidthJoinerRule, ZeroWidthNonJoinerRule

public abstract class AbstractJoinerCodePointRule
extends AbstractAllCodePointsNotEvaluated

Parent class to be inherited by the contextual rules that deal with zero width joiner/non-joiner contextual rules.

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
AbstractJoinerCodePointRule()
           
 
Method Summary
protected  boolean checkIfCpBeforeIsVirama(int aCodePointIndex, int[] aCodePoints)
          Checks if the canonical combining class of the code point before the zero width joiner/non-joiner code point is "Virama".
 
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
 
Methods inherited from interface com.vgrs.xcode.idna.contextualrule.ContextualRule
executeRule
 

Constructor Detail

AbstractJoinerCodePointRule

public AbstractJoinerCodePointRule()
Method Detail

checkIfCpBeforeIsVirama

protected boolean checkIfCpBeforeIsVirama(int aCodePointIndex,
                                          int[] aCodePoints)
                                   throws XcodeException
Checks if the canonical combining class of the code point before the zero width joiner/non-joiner code point is "Virama".

Parameters:
aCodePointIndex - the index into the code points int array containing the zero width joiner/non-joiner character(s).
aCodePoints - the code points int[] array
Throws:
XcodeException


Copyright © 2000-2010 VeriSign Inc. All Rights Reserved