Package de.pdark.decentxml.dtd
Class DocType
- java.lang.Object
-
- de.pdark.decentxml.BasicNode
-
- de.pdark.decentxml.dtd.DocType
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDocType.DocTypeType
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(Node n)List<DocTypeAttributeList>getAttributeList(String name)List<List<DocTypeAttributeList>>getAttributeLists()DocType.DocTypeTypegetDocTypeType()DocTypeElementgetElement(String name)List<DocTypeElement>getElements()DocTypeEntitygetEntity(String name)EntityResolvergetEntityResolver()EntityResolvergetEntityResolver(EntityResolver parent)StringgetName()StringgetNotationDataName()DocTypeEntitygetParameterEntity(String name)StringgetPublicLiteral()StringgetSystemLiteral()voidmapElementsAndAttributes()Map element and attlist declarations in the DTDvoidsetDocTypeType(DocType.DocTypeType docTypeType)voidsetName(String name)voidsetNotationDataName(String notationDataName)voidsetPublicLiteral(String publicLiteral)voidsetSystemLiteral(String systemLiteral)DocTypetoXML(XMLWriter writer)Append the content of this node towriter-
Methods inherited from class de.pdark.decentxml.BasicNode
copy, copy, createClone, getEndOffset, getStartOffset, getToken, getType, getValue, setType, setValue, toString, toXML, toXML
-
-
-
-
Constructor Detail
-
DocType
public DocType(Token token)
-
DocType
public DocType()
-
-
Method Detail
-
add
public void add(Node n)
-
mapElementsAndAttributes
public void mapElementsAndAttributes()
Map element and attlist declarations in the DTD
-
getName
public String getName()
-
setName
public void setName(String name)
-
getDocTypeType
public DocType.DocTypeType getDocTypeType()
-
setDocTypeType
public void setDocTypeType(DocType.DocTypeType docTypeType)
-
getPublicLiteral
public String getPublicLiteral()
-
setPublicLiteral
public void setPublicLiteral(String publicLiteral)
-
getSystemLiteral
public String getSystemLiteral()
-
setSystemLiteral
public void setSystemLiteral(String systemLiteral)
-
getNotationDataName
public String getNotationDataName()
-
setNotationDataName
public void setNotationDataName(String notationDataName)
-
toXML
public DocType toXML(XMLWriter writer) throws IOException
Description copied from class:BasicNodeAppend the content of this node towriter- Specified by:
toXMLin interfaceNode- Overrides:
toXMLin classBasicNode- Throws:
IOException
-
getElement
public DocTypeElement getElement(String name)
-
getElements
public List<DocTypeElement> getElements()
-
getAttributeList
public List<DocTypeAttributeList> getAttributeList(String name)
-
getAttributeLists
public List<List<DocTypeAttributeList>> getAttributeLists()
-
getEntity
public DocTypeEntity getEntity(String name)
-
getEntityResolver
public EntityResolver getEntityResolver()
-
getEntityResolver
public EntityResolver getEntityResolver(EntityResolver parent)
-
getParameterEntity
public DocTypeEntity getParameterEntity(String name)
-
-