API Overview API Index Package Overview Direct link to this page
JDK 1.6
  org.relaxng.datatype. Datatype View Source
Author(s)
James Clark
Kohsuke KAWAGUCHI
Since
Version
Serial
Hierarchy
 Datatype
Subinterfaces
Description
public interface Datatype
  Datatype object.
See also:   
Methods
Hide/Show inherited methods
public void checkValid (String literal, ValidationContext context) throws DatatypeException
  Similar to the isValid method but throws an exception with diagnosis in case of errors.
public DatatypeStreamingValidator createStreamingValidator (ValidationContext context)
  Creates an instance of a streaming validator for this type.
public Object createValue (String literal, ValidationContext context)
  Converts lexcial value and the current context to the corresponding value object.
public int getIdType ()
  Checks if the ID/IDREF semantics is associated with this datatype.
public boolean isContextDependent ()
  Checks if this datatype may need a context object for the validation.
public boolean isValid (String literal, ValidationContext context)
  Checks if the specified 'literal' matches this Datatype with respect to the current context.
public boolean sameValue (Object value1, Object value2)
  Tests the equality of two value objects which were originally created by the createValue method of this object.
public int valueHashCode (Object value)
  Computes the hash code for a value object, which is consistent with the sameValue method.
Fields
Hide/Show inherited fields
publicfinalstatic int ID_TYPE_ID = "1"
  Indicates that RELAX NG compatibility processors should treat this datatype as having ID semantics.
publicfinalstatic int ID_TYPE_IDREF = "2"
  Indicates that RELAX NG compatibility processors should treat this datatype as having IDREF semantics.
publicfinalstatic int ID_TYPE_IDREFS = "3"
  Indicates that RELAX NG compatibility processors should treat this datatype as having IDREFS semantics.
publicfinalstatic int ID_TYPE_NULL = "0"
  Indicates that the datatype doesn't have ID/IDREF semantics.
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar