com.conradroche.dtd.parser
Interface ElementDeclReader

All Known Implementing Classes:
ElementDeclReaderImpl

public interface ElementDeclReader

Interface for reading element declaration.

Author:
Conrad Roche

Method Summary
 boolean isElementDeclStart(DTDData data)
          Checks if there is an element declaration at the current location of the data.
 ElementDecl readElementDecl(DTDData data)
          Read the Element declaration from the data stream.
 

Method Detail

readElementDecl

public ElementDecl readElementDecl(DTDData data)
                            throws DTDSyntaxException
Read the Element declaration from the data stream.
Parameters:
data - The stream from which to read the element declaration.
Returns:
The element declaration.
Throws:
DTDSyntaxException - If the Element declaration contains a syntax error.

isElementDeclStart

public boolean isElementDeclStart(DTDData data)
Checks if there is an element declaration at the current location of the data.
Parameters:
data - The stream from which to read the element declaration.
Returns:
true if there is an element declaration at the start of the data stream; false otherwise.