public class DTDdocument extends Object
| Constructor and Description |
|---|
DTDdocument() |
DTDdocument(String name)
Constructor, setting the name of the document.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addElement(Element element)
Adds Element Declaration to the document.
|
void |
addGeneralEntity(GeneralEntity generalEntity)
Adds General Entity Declaration to the document.
|
void |
addNotation(Notation notation)
Adds a Notation Declaration to the document.
|
Element |
getElement(String name)
Returns requested Element Declaration.
|
Enumeration<Element> |
getElements()
Returns enumeration of the Element declarations in the DTD document.
|
Enumeration<GeneralEntity> |
getGeneralEntities()
Returns enumeration of the General Entity declarations in the DTD document.
|
GeneralEntity |
getGeneralEntity(String name)
Returns requested Genaral Entity Declaration.
|
String |
getName()
Returns the name of the document.
|
Notation |
getNotation(String name)
Returns requested Notation Declaration.
|
Enumeration<Notation> |
getNotations()
Returns enumeration of the Notation declarations in the DTD document.
|
public DTDdocument()
public DTDdocument(String name)
public String getName()
public void addElement(Element element) throws DTDException
DTDException - if an element has no name or there already exists element with the same
name in the document.public Element getElement(String name)
public void addNotation(Notation notation) throws DTDException
DTDException - if a notation has no name or there already exists notation with the same
name in the document.public Notation getNotation(String name)
public void addGeneralEntity(GeneralEntity generalEntity)
public GeneralEntity getGeneralEntity(String name)
public Enumeration<Element> getElements()
public Enumeration<GeneralEntity> getGeneralEntities()
public Enumeration<Notation> getNotations()
Copyright © 2016. All rights reserved.