org.whattf.datatype
Class Idrefs
java.lang.Object
org.whattf.datatype.AbstractDatatype
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
Constructor Summary |
private |
Idrefs()
Package-private constructor |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
THE_INSTANCE
public static final Idrefs THE_INSTANCE
- The singleton instance.
Idrefs
private Idrefs()
- Package-private constructor
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 valuecontext
- 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()