Base Framework
Public Member Functions | Protected Member Functions | List of all members
DocumentType Class Reference

DOM document type node. More...

#include <base/xml/DocumentType.h>

Inherits Node.

Public Member Functions

 DocumentType (Node node)
 
String getName () const noexcept
 
NamedNodeMap getEntities () const noexcept
 
NamedNodeMap getNotations () const noexcept
 
String getPublicId () const noexcept
 
String getSystemId () const noexcept
 
String getInternalSubset () const
 
- Public Member Functions inherited from Node
 Node () noexcept
 
 Node (const Node &copy) noexcept
 
Nodeoperator= (const Node &assign) noexcept
 
Node appendChild (Node child)
 
Node insertBefore (Node newChild, Node refChild)
 
Node removeChild (Node child)
 
Node replaceChild (Node newChild, Node oldChild)
 
Node cloneNode (bool deep)
 
String getLocalName () const noexcept
 
String getNamespaceURI () const noexcept
 
String getName () const
 
NodeType getType () const
 
String getValue () const
 
ShadowDocument getOwnerDocument () noexcept
 
String getPrefix () const
 
void setPrefix (const String &prefix)
 
Node getParent () const noexcept
 
Node getPreviousSibling () const noexcept
 
Node getNextSibling () const noexcept
 
Node getFirstChild () const
 
Node getLastChild () const
 
bool hasAttributes () const noexcept
 
bool hasChildNodes () const
 
bool isSupported (const String &feature, const String &version) const noexcept
 
void normalize ()
 
void setValue (const String &value)
 
bool isValid () const noexcept
 
bool isInvalid () const noexcept
 
bool isUnlinked () const noexcept
 
bool isSame (const Node &node) const noexcept
 
bool operator== (const Node &node) const noexcept
 
bool hasSameOwner (const Node &node) const noexcept
 
bool isAncestor (const Node &node) const noexcept
 
 operator bool () const noexcept
 
 ~Node () noexcept
 

Protected Member Functions

 DocumentType (void *context) noexcept
 
- Protected Member Functions inherited from Node
 Node (void *_context) noexcept
 
void * getContext () noexcept
 
const void * getContext () const noexcept
 

Additional Inherited Members

- Public Types inherited from Node
enum  NodeType {
  ELEMENT_NODE, ATTRIBUTE_NODE, TEXT_NODE, CDATA_SECTION_NODE,
  ENTITY_REFERENCE_NODE, ENTITY_NODE, PROCESSING_INSTRUCTION_NODE, COMMENT_NODE,
  DOCUMENT_NODE, DOCUMENT_TYPE_NODE, DOCUMENT_FRAGMENT_NODE, NOTATION_NODE,
  ATTRIBUTE_DECL_NODE, ELEMENT_DECL_NODE, ENTITY_DECL_NODE
}
 

Detailed Description

DOM document type node.

Each Document has a doctype attribute whose value is either null or a DocumentType node. The DocumentType clas in the DOM Core provides an interface to the list of entities that are defined for the document, and little else because the effect of namespaces and the various XML schema efforts on DTD representation are not clearly understood as of this writing.

Version
1.0
Examples
testsuite/sax.cpp.

Constructor & Destructor Documentation

◆ DocumentType() [1/2]

DocumentType::DocumentType ( void *  context)
inlineprotectednoexcept

Initializes the document type node.

◆ DocumentType() [2/2]

DocumentType::DocumentType ( Node  node)
inline

Initializes the document type node from a node.

Member Function Documentation

◆ getEntities()

NamedNodeMap DocumentType::getEntities ( ) const
noexcept

Returns the entities.

◆ getInternalSubset()

String DocumentType::getInternalSubset ( ) const

Returns the internal subset.

◆ getName()

String DocumentType::getName ( ) const
noexcept

Returns the name.

◆ getNotations()

NamedNodeMap DocumentType::getNotations ( ) const
noexcept

Returns the notations.

◆ getPublicId()

String DocumentType::getPublicId ( ) const
noexcept

Returns the public identifier.

◆ getSystemId()

String DocumentType::getSystemId ( ) const
noexcept

Returns the system identifier.