com.vgrs.xcode.idna
Class Bidi

java.lang.Object
  extended by com.vgrs.xcode.idna.Bidi

public class Bidi
extends java.lang.Object

This class implements the IDNA2008 BIDI rules. The BIDI class associated with each of the Unicode code points is retrieved from UnicodeData getBidiClass() method to ensure compliance with the IDNA 2008 BIDI rules.

Version:
1.0 May 5, 2010
Author:
nchigurupati

Field Summary
static java.lang.String BIDI_AL
           
static java.lang.String BIDI_AN
           
static java.lang.String BIDI_BN
           
static java.lang.String BIDI_CS
           
static java.lang.String BIDI_EN
           
static java.lang.String BIDI_ES
           
static java.lang.String BIDI_ET
           
static java.lang.String BIDI_L
           
static java.lang.String BIDI_NSM
           
static java.lang.String BIDI_ON
           
static java.lang.String BIDI_R
           
 
Constructor Summary
Bidi()
           
 
Method Summary
static void assertCompliance(int[] aCodePoints)
          Asserts that the given Unicode code points are in compliance with the IDNA2008 BIDI rules.
static boolean isBidiDomain(int[] aCodePoints)
          Method to determine if the "domain" contains any BIDI code points i.e.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BIDI_L

public static final java.lang.String BIDI_L
See Also:
Constant Field Values

BIDI_R

public static final java.lang.String BIDI_R
See Also:
Constant Field Values

BIDI_AL

public static final java.lang.String BIDI_AL
See Also:
Constant Field Values

BIDI_AN

public static final java.lang.String BIDI_AN
See Also:
Constant Field Values

BIDI_EN

public static final java.lang.String BIDI_EN
See Also:
Constant Field Values

BIDI_ES

public static final java.lang.String BIDI_ES
See Also:
Constant Field Values

BIDI_CS

public static final java.lang.String BIDI_CS
See Also:
Constant Field Values

BIDI_ET

public static final java.lang.String BIDI_ET
See Also:
Constant Field Values

BIDI_ON

public static final java.lang.String BIDI_ON
See Also:
Constant Field Values

BIDI_BN

public static final java.lang.String BIDI_BN
See Also:
Constant Field Values

BIDI_NSM

public static final java.lang.String BIDI_NSM
See Also:
Constant Field Values
Constructor Detail

Bidi

public Bidi()
Method Detail

assertCompliance

public static void assertCompliance(int[] aCodePoints)
                             throws XcodeException
Asserts that the given Unicode code points are in compliance with the IDNA2008 BIDI rules.

Parameters:
aCodePoints - The Unicode code points to assert the IDNA2008 BIDI rules.
Throws:
XcodeException

isBidiDomain

public static boolean isBidiDomain(int[] aCodePoints)
Method to determine if the "domain" contains any BIDI code points i.e. R, AL or AN.

Parameters:
aCodePoints - the code points to check if there are BIDI code points
Returns:
boolean indicating whether or not BIDI code points are present


Copyright © 2000-2010 VeriSign Inc. All Rights Reserved