org.whattf.datatype
Class Idrefs

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

public final class Idrefs
extends AbstractDatatype

This datatype shall accept any string that consists of one or more characters and contains at least one character that is not a whitespace character.

The ID-type of this datatype is IDREFS.

Version:
$Id: Idrefs.java,v 1.4 2006/11/18 11:51:44 hsivonen Exp $
Author:
hsivonen

Field Summary
static Idrefs 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
private Idrefs()
          Package-private constructor
 
Method Summary
 void checkValid(CharSequence literal)
          Checks that the value is a proper list of HTML5 ids.
 int getIdType()
          Returns Datatype.ID_TYPE_IDREFS.
 
Methods inherited from class org.whattf.datatype.AbstractDatatype
checkValid, createStreamingValidator, createValue, 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 Idrefs THE_INSTANCE
The singleton instance.

Constructor Detail

Idrefs

private Idrefs()
Package-private constructor

Method Detail

checkValid

public void checkValid(CharSequence literal)
                throws DatatypeException
Checks that the value is a proper list of HTML5 ids.

Specified by:
checkValid in class AbstractDatatype
Parameters:
literal - the value
context - ignored
Throws:
DatatypeException - if the value isn't valid
See Also:
Datatype.checkValid(java.lang.String, org.relaxng.datatype.ValidationContext)

getIdType

public int getIdType()
Returns Datatype.ID_TYPE_IDREFS.

Specified by:
getIdType in interface Datatype
Overrides:
getIdType in class AbstractDatatype
Returns:
Datatype.ID_TYPE_IDREFS
See Also:
Datatype.getIdType()