public class Id extends AbstractDatatype
The ID-type of this datatype is ID.
AbstractDatatype.CharSequenceWithOffset
Modifier and Type | Field and Description |
---|---|
static Id |
THE_INSTANCE
The singleton instance.
|
Modifier | Constructor and Description |
---|---|
protected |
Id()
Package-private constructor
|
Modifier and Type | Method and Description |
---|---|
void |
checkValid(java.lang.CharSequence literal)
Checks that the value is a proper HTML5 id.
|
java.lang.String |
getName() |
checkValid, createStreamingValidator, createValue, getIdType, isAsciiDigit, isContextDependent, isValid, isWhitespace, newDatatypeException, newDatatypeException, newDatatypeException, newDatatypeException, newDatatypeException, newDatatypeException, newDatatypeException, newDatatypeException, newDatatypeException, newDatatypeException, newDatatypeException, newDatatypeException, sameValue, split, toAsciiLowerCase, toAsciiLowerCase, toAsciiUpperCase, toAsciiUpperCase, valueHashCode
public static final Id THE_INSTANCE
public void checkValid(java.lang.CharSequence literal) throws org.relaxng.datatype.DatatypeException
checkValid
in class AbstractDatatype
literal
- the valueorg.relaxng.datatype.DatatypeException
- if the value isn't validDatatype.checkValid(java.lang.String, org.relaxng.datatype.ValidationContext)
public java.lang.String getName()
getName
in class AbstractDatatype