org.whattf.datatype
Class AsciiCaseInsensitiveString

java.lang.Object
  extended by org.whattf.datatype.AbstractDatatype
      extended by org.whattf.datatype.AsciiCaseInsensitiveString
All Implemented Interfaces:
Datatype

public class AsciiCaseInsensitiveString
extends AbstractDatatype


Field Summary
static AsciiCaseInsensitiveString THE_INSTANCE
          The singleton instance.
 
Fields inherited from interface org.relaxng.datatype.Datatype
ID_TYPE_ID, ID_TYPE_IDREF, ID_TYPE_IDREFS, ID_TYPE_NULL
 
Constructor Summary
protected AsciiCaseInsensitiveString()
          Package-private constructor
 
Method Summary
 void checkValid(CharSequence literal)
           
 Object createValue(String literal, ValidationContext context)
          Implements strict string equality semantics by returning literal itself.
 
Methods inherited from class org.whattf.datatype.AbstractDatatype
checkValid, createStreamingValidator, getIdType, isContextDependent, isValid, isWhitespace, sameValue, toAsciiLowerCase, toAsciiLowerCase, valueHashCode
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

THE_INSTANCE

public static final AsciiCaseInsensitiveString THE_INSTANCE
The singleton instance.

Constructor Detail

AsciiCaseInsensitiveString

protected AsciiCaseInsensitiveString()
Package-private constructor

Method Detail

checkValid

public void checkValid(CharSequence literal)
                throws DatatypeException
Specified by:
checkValid in class AbstractDatatype
Throws:
DatatypeException

createValue

public Object createValue(String literal,
                          ValidationContext context)
Description copied from class: AbstractDatatype
Implements strict string equality semantics by returning literal itself.

Specified by:
createValue in interface Datatype
Overrides:
createValue in class AbstractDatatype
Parameters:
literal - the value (get returned)
context - ignored
Returns:
the literal that was passed in
See Also:
AbstractDatatype.createValue(java.lang.String, org.relaxng.datatype.ValidationContext)