com.conradroche.dtd.decl
Interface ElementDecl


public interface ElementDecl

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.
 java.lang.String getElementName()
          Returns the element name for this element declaration.
 void setContentSpec(ContentSpec contentSpec)
          Sets the content spec for this element declaration.
 void setElementName(java.lang.String elemName)
          Sets the element name for this element declaration.
 

Method Detail

getElementName

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

setElementName

public void setElementName(java.lang.String elemName)
Sets the element name for this element declaration.
Parameters:
elemName - The element name.

getContentSpec

public ContentSpec getContentSpec()
Returns the content spec for this element declaration.
Returns:
The content spec.

setContentSpec

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