Class Idrefs

java.lang.Object
nu.validator.datatype.AbstractDatatype
nu.validator.datatype.Idrefs
All Implemented Interfaces:
org.relaxng.datatype.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$
Author:
hsivonen
  • Field Details

  • Method Details

    • checkValid

      public void checkValid​(java.lang.CharSequence literal) throws org.relaxng.datatype.DatatypeException
      Checks that the value is a proper list of HTML5 ids.
      Specified by:
      checkValid in class AbstractDatatype
      Parameters:
      literal - the value
      Throws:
      org.relaxng.datatype.DatatypeException - if the value isn't valid
      See Also:
      Datatype.checkValid(java.lang.String, org.relaxng.datatype.ValidationContext)
    • getName

      public java.lang.String getName()
      Specified by:
      getName in class AbstractDatatype