org.foray.xml.dtd
Class DTDElement

java.lang.Object
  extended by org.foray.xml.dtd.DTDElement

public class DTDElement
extends Object

Represents an element declaration in an SGML/XML Document Type Definition (DTD).


Constructor Summary
DTDElement(String elementName, String contentModel)
          Constructor.
 
Method Summary
 String getName()
          Returns the element name.
 boolean hasElementChildren()
          Indicates whether this element's content model contains child elements.
 boolean hasPCDATA()
          Indicates whether this element's content model contains PCDATA.
 boolean isEmpty()
          Indicates whether this element's content model is empty.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DTDElement

public DTDElement(String elementName,
                  String contentModel)
Constructor.

Parameters:
elementName - The name of this element.
contentModel - The unparsed content model for this element.
Method Detail

getName

public String getName()
Returns the element name.

Returns:
The element name.

hasPCDATA

public boolean hasPCDATA()
Indicates whether this element's content model contains PCDATA.

Returns:
True iff this element's content model contains PCDATA.

isEmpty

public boolean isEmpty()
Indicates whether this element's content model is empty.

Returns:
True iff this element's content model is empty.

hasElementChildren

public boolean hasElementChildren()
Indicates whether this element's content model contains child elements.

Returns:
True iff this element's content model contains child elements.


Copyright © 2017. All rights reserved.