Top Description Methods
com.sun.msv.verifier

public Interface DocumentDeclaration

Known Direct Implementers
com.sun.msv.verifier.regexp.REDocumentDeclaration

Represents a kind of "constraint" over XML document. Usually, this is what people call a schema.

Call the createAcceptor() method to start validation.

Author
Kohsuke KAWAGUCHI
See Also
Acceptor

Method Summary

Modifier and TypeMethod and Description
public Acceptor

Returns:

The implementation cannot return null. Apparently, it is impossible to fail in this early stage.
createAcceptor
()

creates a new Acceptor that will validate the document element.

Method Detail

createAcceptorback to summary
public Acceptor createAcceptor()

creates a new Acceptor that will validate the document element. In RELAX, this concept is equivalent to <topLevel> In TREX, this concept is equivalent to <start>

Returns:Acceptor

The implementation cannot return null. Apparently, it is impossible to fail in this early stage.