com.vgrs.xcode.idna.contextualrule
Class MiddleDotRule

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.MiddleDotRule
All Implemented Interfaces:
ContextualRule

public class MiddleDotRule
extends AbstractAllCodePointsNotEvaluated

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
MiddleDotRule()
          Constructor specifies that this rule can only execute if the Middle dot code point is present in the given set of code points.
 
Method Summary
 void executeRule(int aCodePointIndex, int[] aCodePoints)
          Checks to see if the code points before and after the middle dot (U+00B7) are Latin small letter 'L' (U+006C)
 
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

MiddleDotRule

public MiddleDotRule()
Constructor specifies that this rule can only execute if the Middle dot code point is present in the given set of code points.

Method Detail

executeRule

public void executeRule(int aCodePointIndex,
                        int[] aCodePoints)
                 throws XcodeException
Checks to see if the code points before and after the middle dot (U+00B7) are Latin small letter 'L' (U+006C)

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