EXIficient

com.siemens.ct.exi.helpers
Class BuiltInRestrictedCharacterSets

java.lang.Object
  extended by com.siemens.ct.exi.helpers.BuiltInRestrictedCharacterSets
All Implemented Interfaces:
RestrictedCharacterSet

public class BuiltInRestrictedCharacterSets
extends java.lang.Object
implements RestrictedCharacterSet


Method Summary
 char getCharacter(int code)
          Retrieves the character with given code(-point).
 int getCode(char c)
          Returns code for given character or NOT_FOUND == -1 for invalid char.
 int getCodingLength()
          Returns the number of bits to encode codes for the set.
static RestrictedCharacterSet newXSDBase64BinaryInstance()
           
static RestrictedCharacterSet newXSDBooleanInstance()
           
static RestrictedCharacterSet newXSDDateTimeInstance()
           
static RestrictedCharacterSet newXSDDecimalInstance()
           
static RestrictedCharacterSet newXSDDoubleInstance()
           
static RestrictedCharacterSet newXSDHexBinaryInstance()
           
static RestrictedCharacterSet newXSDIntegerInstance()
           
 int size()
          Returns the number of entries for the set.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

newXSDBase64BinaryInstance

public static RestrictedCharacterSet newXSDBase64BinaryInstance()

newXSDHexBinaryInstance

public static RestrictedCharacterSet newXSDHexBinaryInstance()

newXSDBooleanInstance

public static RestrictedCharacterSet newXSDBooleanInstance()

newXSDDateTimeInstance

public static RestrictedCharacterSet newXSDDateTimeInstance()

newXSDDecimalInstance

public static RestrictedCharacterSet newXSDDecimalInstance()

newXSDDoubleInstance

public static RestrictedCharacterSet newXSDDoubleInstance()

newXSDIntegerInstance

public static RestrictedCharacterSet newXSDIntegerInstance()

getCharacter

public char getCharacter(int code)
                  throws UnknownElementException
Description copied from interface: RestrictedCharacterSet
Retrieves the character with given code(-point).

Specified by:
getCharacter in interface RestrictedCharacterSet
Returns:
char or
Throws:
UnknownElementException - code unknown

getCode

public int getCode(char c)
Description copied from interface: RestrictedCharacterSet
Returns code for given character or NOT_FOUND == -1 for invalid char.

Specified by:
getCode in interface RestrictedCharacterSet
Parameters:
c - character of interest
Returns:
code(-point)

size

public int size()
Description copied from interface: RestrictedCharacterSet
Returns the number of entries for the set.

Specified by:
size in interface RestrictedCharacterSet
Returns:
number of entries

getCodingLength

public int getCodingLength()
Description copied from interface: RestrictedCharacterSet
Returns the number of bits to encode codes for the set.

codingLength = ceil( log2(N + 1) ) and N is the number of characters in the restricted character set.

Specified by:
getCodingLength in interface RestrictedCharacterSet
Returns:
number of entries
See Also:
RestrictedCharacterSet.size()

EXIficient