org.jvoicexml.xml
Class AbstractXmlDocumentType

java.lang.Object
  extended by org.jvoicexml.xml.AbstractXmlNode
      extended by org.jvoicexml.xml.AbstractXmlDocumentType
All Implemented Interfaces:
Serializable, XmlNode, DocumentType, Node
Direct Known Subclasses:
VoiceXml20DocumentType, VoiceXml21DocumentType

public abstract class AbstractXmlDocumentType
extends AbstractXmlNode
implements DocumentType, Serializable

Base class for a DOCTYPE node.

Since:
0.6
Version:
$Revision: 2525 $
Author:
Dirk Schnelle-Walka
See Also:
Serialized Form

Field Summary
 
Fields inherited from interface org.w3c.dom.Node
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_POSITION_CONTAINED_BY, DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_PRECEDING, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE
 
Constructor Summary
AbstractXmlDocumentType(String name, String publicId, String systemId)
          Constructs a new objects.
 
Method Summary
 boolean canContainChild(String childName)
          Can the specified sub-tag be contained within this node?
 NamedNodeMap getEntities()
          
 String getInternalSubset()
          
 String getName()
          
 NamedNodeMap getNotations()
          
 String getPublicId()
          
 String getSystemId()
          
 String getTagName()
          Retrieves the name of the tag for the derived node.
 String toString()
          
 
Methods inherited from class org.jvoicexml.xml.AbstractXmlNode
addChild, addChild, appendChild, appendChild, appendDeepClone, cloneNode, compareDocumentPosition, equals, getAttribute, getAttributeNames, getAttributes, getBaseURI, getChildNodes, getChildNodes, getChildren, getDefinedAttributeNames, getFeature, getFirstChild, getFirstLevelTextContent, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNode, getNodeFactory, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getOwnerXmlDocument, getParentNode, getPrefix, getPreviousSibling, getTextContent, getUserData, hasAttributes, hasChildNodes, hashCode, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setAttribute, setNodeValue, setPrefix, setTextContent, setUserData
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.w3c.dom.Node
appendChild, cloneNode, compareDocumentPosition, getAttributes, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getTextContent, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setNodeValue, setPrefix, setTextContent, setUserData
 
Methods inherited from interface org.jvoicexml.xml.XmlNode
newInstance
 

Constructor Detail

AbstractXmlDocumentType

public AbstractXmlDocumentType(String name,
                               String publicId,
                               String systemId)
Constructs a new objects.

Parameters:
name - the qualified name of the document type to be created.
publicId - the external subset public identifier.
systemId - the external subset system identifier.
Method Detail

getName

public final String getName()

Specified by:
getName in interface DocumentType

getTagName

public final String getTagName()
Retrieves the name of the tag for the derived node.

Specified by:
getTagName in interface XmlNode
Returns:
The name of the tag.

getPublicId

public final String getPublicId()

Specified by:
getPublicId in interface DocumentType

getSystemId

public final String getSystemId()

Specified by:
getSystemId in interface DocumentType

canContainChild

public final boolean canContainChild(String childName)
Can the specified sub-tag be contained within this node?

Specified by:
canContainChild in class AbstractXmlNode
Parameters:
childName - Name of child.
Returns:
True if the sub-tag is allowed on this node.

getEntities

public final NamedNodeMap getEntities()

Specified by:
getEntities in interface DocumentType

getNotations

public final NamedNodeMap getNotations()

Specified by:
getNotations in interface DocumentType

getInternalSubset

public final String getInternalSubset()

Specified by:
getInternalSubset in interface DocumentType

toString

public final String toString()

Overrides:
toString in class AbstractXmlNode


Copyright © 2005-2009JVoiceXML group.