org.merlotxml.util.xml
Interface DTDContentSpec


public interface DTDContentSpec

Interface to specify a ContentSpecification

This is used to describe the content specification of what a DTD element can contain.

The types this can return are ANY, EMPTY, PCDATA, GROUP where GROUP type specs will have a tree of ContentSpecNodes describing what's in the content specification

Author:
Kelly A. Campbell

Method Summary
 DTDContentSpecNode getRootNode()
          returns the root node of the spec tree or null if this doesn't apply to this type
 int getType()
          Returns the type of this content specification
 java.lang.String toString()
          returns the content spec as a XML standard string (i.e.
 

Method Detail

getType

public int getType()
Returns the type of this content specification


getRootNode

public DTDContentSpecNode getRootNode()
returns the root node of the spec tree or null if this doesn't apply to this type


toString

public java.lang.String toString()
returns the content spec as a XML standard string (i.e. "(el1?, e12+, (el3 | el4 | el5)*)"