org.whattf.datatype
Class Idref
java.lang.Object
org.whattf.datatype.AbstractDatatype
org.whattf.datatype.Id
org.whattf.datatype.Idref
- All Implemented Interfaces:
- Datatype
public final class Idref
- extends Id
This datatype shall accept any string that consists of one or more characters
and does not contain any whitespace characters.
The ID-type of this datatype is IDREF.
- Version:
- $Id: Idref.java,v 1.3 2006/11/18 11:51:44 hsivonen Exp $
- Author:
- hsivonen
Constructor Summary |
private |
Idref()
Package-private constructor |
Method Summary |
int |
getIdType()
Returns Datatype.ID_TYPE_IDREF . |
Methods inherited from class org.whattf.datatype.Id |
checkValid |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
THE_INSTANCE
public static final Idref THE_INSTANCE
- The singleton instance.
Idref
private Idref()
- Package-private constructor
getIdType
public int getIdType()
- Returns
Datatype.ID_TYPE_IDREF
.
- Specified by:
getIdType
in interface Datatype
- Overrides:
getIdType
in class Id
- Returns:
Datatype.ID_TYPE_IDREF
- See Also:
Datatype.getIdType()