Package org.zkoss.idom
Class DocType
java.lang.Object
org.zkoss.idom.impl.AbstractItem
org.zkoss.idom.DocType
- All Implemented Interfaces:
Serializable,Cloneable,DocumentType,Node,Item
The iDOM DocType.
- Author:
- tomyeh
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected StringThe internal subset of the DOCTYPEprotected StringThe element being constrainedprotected StringThe public ID of the DOCTYPEprotected StringThe system ID of the DOCTYPEFields inherited from interface org.zkoss.idom.Item
FIND_BY_PREFIX, FIND_BY_REGEX, FIND_BY_TAGNAME, FIND_IGNORE_CASE, FIND_RECURSIVEFields 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal NamedNodeMapfinal StringGets the data for the internal subset.final StringgetName()Gets the element name being constrained.final shortfinal NamedNodeMapfinal StringGets the public ID of an externally referenced DTD, or an empty String if none is referenced.final StringGets the system ID of an externally referenced DTD, or an empty String if none is referenced.final voidsetInternalSubset(String newData) Sets the data for the internal subset.final voidSets the name of the item.final voidsetPublicId(String publicId) Sets the public ID of an externally referenced DTD, or an empty String if none is referenced.final voidsetSystemId(String systemId) Sets the system ID of an externally referenced DTD, or an empty String if none is referenced.toString()Methods inherited from class org.zkoss.idom.impl.AbstractItem
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, setUserDataMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.w3c.dom.Node
appendChild, 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, setUserData
-
Field Details
-
_name
The element being constrained -
_pubId
The public ID of the DOCTYPE -
_sysId
The system ID of the DOCTYPE -
_intSubset
The internal subset of the DOCTYPE
-
-
Constructor Details
-
DocType
Constructor.- Parameters:
publicId- the public Id; null or empty if not availablesystemId- the system Id; null or empty if not available
-
DocType
Constructor. -
DocType
Constructor. -
DocType
protected DocType()Constructor.
-
-
Method Details
-
getPublicId
Gets the public ID of an externally referenced DTD, or an empty String if none is referenced.- Specified by:
getPublicIdin interfaceDocumentType- Returns:
- the public ID of referenced DTD; never null
-
setPublicId
Sets the public ID of an externally referenced DTD, or an empty String if none is referenced.- Parameters:
publicId- the public Id; null or empty if not available
-
getSystemId
Gets the system ID of an externally referenced DTD, or an empty String if none is referenced.- Specified by:
getSystemIdin interfaceDocumentType- Returns:
- the system ID of referenced DTD; never null
-
setSystemId
Sets the system ID of an externally referenced DTD, or an empty String if none is referenced.- Parameters:
systemId- the system Id; null or empty if not available
-
getInternalSubset
Gets the data for the internal subset.- Specified by:
getInternalSubsetin interfaceDocumentType
-
setInternalSubset
Sets the data for the internal subset. -
getName
Gets the element name being constrained. Never null.- Specified by:
getNamein interfaceDocumentType- Specified by:
getNamein interfaceItem- See Also:
-
setName
Description copied from interface:ItemSets the name of the item. For vertices that support namespace (implements Namespaceable), it is the same as setTagName.- Specified by:
setNamein interfaceItem- Overrides:
setNamein classAbstractItem- See Also:
-
getNodeType
public final short getNodeType()- Specified by:
getNodeTypein interfaceNode
-
getEntities
- Specified by:
getEntitiesin interfaceDocumentType
-
getNotations
- Specified by:
getNotationsin interfaceDocumentType
-
toString
-