com.thaiopensource.datatype.xsd
Class Base64BinaryDatatype

java.lang.Object
  extended by com.thaiopensource.datatype.xsd.DatatypeBase
      extended by com.thaiopensource.datatype.xsd.BinaryDatatype
          extended by com.thaiopensource.datatype.xsd.Base64BinaryDatatype
All Implemented Interfaces:
Datatype2, Measure, Datatype

 class Base64BinaryDatatype
extends BinaryDatatype


Field Summary
private static byte INVALID
           
private static byte PADDING
           
private static byte[] weightTable
           
private static byte WHITESPACE
           
 
Fields inherited from class com.thaiopensource.datatype.xsd.DatatypeBase
WHITE_SPACE_COLLAPSE, WHITE_SPACE_PRESERVE, WHITE_SPACE_REPLACE
 
Fields inherited from interface org.relaxng.datatype.Datatype
ID_TYPE_ID, ID_TYPE_IDREF, ID_TYPE_IDREFS, ID_TYPE_NULL
 
Constructor Summary
Base64BinaryDatatype()
           
 
Method Summary
private static int byteCount(String str)
           
(package private)  Object getValue(String str, ValidationContext vc)
           
(package private)  boolean lexicallyAllows(String str)
           
private static byte[] makeWeightTable()
           
 
Methods inherited from class com.thaiopensource.datatype.xsd.BinaryDatatype
getLength, getMeasure, sameValue, valueHashCode
 
Methods inherited from class com.thaiopensource.datatype.xsd.DatatypeBase
allowsValue, alwaysValid, checkValid, createStreamingValidator, createValue, getIdType, getOrderRelation, getPrimitive, getWhiteSpace, isContextDependent, isValid, normalizeWhiteSpace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

weightTable

private static final byte[] weightTable

INVALID

private static final byte INVALID
See Also:
Constant Field Values

WHITESPACE

private static final byte WHITESPACE
See Also:
Constant Field Values

PADDING

private static final byte PADDING
See Also:
Constant Field Values
Constructor Detail

Base64BinaryDatatype

Base64BinaryDatatype()
Method Detail

lexicallyAllows

boolean lexicallyAllows(String str)
Specified by:
lexicallyAllows in class DatatypeBase

byteCount

private static int byteCount(String str)

getValue

Object getValue(String str,
                ValidationContext vc)
Specified by:
getValue in class DatatypeBase

makeWeightTable

private static byte[] makeWeightTable()