public class DocType extends AbstractItem implements DocumentType
Document,
Serialized Form| Modifier and Type | Field and Description |
|---|---|
protected String |
_intSubset
The internal subset of the DOCTYPE
|
protected String |
_name
The element being constrained
|
protected String |
_pubId
The public ID of the DOCTYPE
|
protected String |
_sysId
The system ID of the DOCTYPE
|
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_NODEFIND_BY_PREFIX, FIND_BY_REGEX, FIND_BY_TAGNAME, FIND_IGNORE_CASE, FIND_RECURSIVE| Modifier | Constructor and Description |
|---|---|
protected |
DocType()
Constructor.
|
|
DocType(String elementName)
Constructor.
|
|
DocType(String elementName,
String systemId)
Constructor.
|
|
DocType(String elementName,
String publicId,
String systemId)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
NamedNodeMap |
getEntities() |
String |
getInternalSubset()
Gets the data for the internal subset.
|
String |
getName()
Gets the element name being constrained.
|
short |
getNodeType() |
NamedNodeMap |
getNotations() |
String |
getPublicId()
Gets the public ID of an externally referenced DTD, or an empty
String if none is referenced.
|
String |
getSystemId()
Gets the system ID of an externally referenced DTD, or an empty
String if none is referenced.
|
void |
setInternalSubset(String newData)
Sets the data for the internal subset.
|
void |
setName(String elementName)
Sets the name of the item.
|
void |
setPublicId(String publicId)
Sets the public ID of an externally referenced DTD, or an empty
String if none is referenced.
|
void |
setSystemId(String systemId)
Sets the system ID of an externally referenced DTD, or an empty
String if none is referenced.
|
String |
toString() |
appendChild, clone, cloneNode, compareDocumentPosition, detach, equals, getAttributes, getBaseURI, getChildNodes, getDocument, getFeature, getFirstChild, getLastChild, getLocalName, getLocator, getNamespaceURI, getNextSibling, getNodeName, getNodeValue, getOwnerDocument, getParent, getParentNode, getPrefix, getPreviousSibling, getText, getTextContent, getUserData, hasAttributes, hasChildNodes, hashCode, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, match, normalize, removeChild, replaceChild, setLocator, setNodeValue, setParent, setPrefix, setText, setTextContent, setUserDatafinalize, getClass, notify, notifyAll, wait, wait, waitappendChild, cloneNode, compareDocumentPosition, getAttributes, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getTextContent, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setNodeValue, setPrefix, setTextContent, setUserDataprotected String _name
protected String _pubId
protected String _sysId
protected String _intSubset
public DocType(String elementName, String publicId, String systemId)
publicId - the public Id; null or empty if not availablesystemId - the system Id; null or empty if not availablepublic DocType(String elementName)
protected DocType()
public final String getPublicId()
getPublicId in interface DocumentTypepublic final void setPublicId(String publicId)
publicId - the public Id; null or empty if not availablepublic final String getSystemId()
getSystemId in interface DocumentTypepublic final void setSystemId(String systemId)
systemId - the system Id; null or empty if not availablepublic final String getInternalSubset()
getInternalSubset in interface DocumentTypepublic final void setInternalSubset(String newData)
public final String getName()
getName in interface DocumentTypegetName in interface ItemNamespaceable.getTagName()public final void setName(String elementName)
ItemsetName in interface ItemsetName in class AbstractItemNamespaceable.setTagName(java.lang.String)public final short getNodeType()
getNodeType in interface Nodepublic final NamedNodeMap getEntities()
getEntities in interface DocumentTypepublic final NamedNodeMap getNotations()
getNotations in interface DocumentTypeCopyright © 2018. All rights reserved.