Top Description Fields Constructors Methods
com.sun.msv.datatype.xsd

public Class IDREFType

extends NcnameType
Class Inheritance

very limited 'IDREF' type of XML Schema Part 2.

The cross-reference semantics of the ID/IDREF types must be implemented externally. This type by itself does not enforce such a constraint.

One can call the getIdType() method to enforce the cross-reference semantics.

Author
Kohsuke KAWAGUCHI

Field Summary

Modifier and TypeField and Description
private static final long
public static final IDREFType

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
public int
getIdType()

Overrides com.sun.msv.datatype.xsd.XSDatatypeImpl.getIdType.

Implements org.relaxng.datatype.Datatype.getIdType.

A property for RELAX NG DTD compatibility datatypes.
protected Object
Inherited from com.sun.msv.datatype.xsd.NcnameType:
_createValuegetBaseType

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Hides com.sun.msv.datatype.xsd.NcnameType.serialVersionUID.

theInstanceback to summary
public static final IDREFType theInstance

Hides com.sun.msv.datatype.xsd.NcnameType.theInstance.

Constructor Detail

IDREFTypeback to summary
protected IDREFType()

Method Detail

getIdTypeback to summary
public int getIdType()

Overrides com.sun.msv.datatype.xsd.XSDatatypeImpl.getIdType.

Implements org.relaxng.datatype.Datatype.getIdType.

Doc from com.sun.msv.datatype.xsd.XSDatatypeImpl.getIdType.

A property for RELAX NG DTD compatibility datatypes. ID_TYPE_NULL is returned by default.

Returns:int

Doc from org.relaxng.datatype.Datatype.getIdType.

If this datatype doesn't have any ID/IDREF semantics, it returns ID_TYPE_NULL. If it has such a semantics (for example, XSD:ID, XSD:IDREF and comp:ID type), then it returns ID_TYPE_ID, ID_TYPE_IDREF or ID_TYPE_IDREFS.

readResolveback to summary
protected Object readResolve()

Overrides com.sun.msv.datatype.xsd.BuiltinAtomicType.readResolve.