Matra DTD Parser 0.8b

com.conradroche.dtd.decl
Interface ElementDecl


public interface ElementDecl

This interface defines an Element Type declaration.
From the XML Specifications [Section 3.2 Element Type Declarations] -
The element structure of an XML document may, for validation purposes, be constrained using element type and attribute-list declarations. An element type declaration constrains the element's content.

Author:
Conrad Roche

Method Summary
 ContentSpec getContentSpec()
          Returns the content spec for this element declaration.
 String getElementName()
          Returns the element name for this element declaration.
 void setContentSpec(ContentSpec contentSpec)
          Sets the content spec for this element declaration.
 void setElementName(String elemName)
          Sets the element name for this element declaration.
 

Method Detail

getElementName

public String getElementName()
Returns the element name for this element declaration.
Returns:
The element name.
See Also:
setElementName(java.lang.String)

setElementName

public void setElementName(String elemName)
Sets the element name for this element declaration.
Parameters:
elemName - The element name.
See Also:
getElementName()

getContentSpec

public ContentSpec getContentSpec()
Returns the content spec for this element declaration.
Returns:
The content spec.
See Also:
setContentSpec(com.conradroche.dtd.decl.elem.ContentSpec)

setContentSpec

public void setContentSpec(ContentSpec contentSpec)
Sets the content spec for this element declaration.
Parameters:
contentSpec - The content spec.
See Also:
getContentSpec()

Matra DTD Parser 0.8b