public class XMLNotation extends XMLNode implements Notation, java.io.Externalizable
Notation interface and represents a notation declared in the Document Type Definition.ATTRDECL, Auto_Events, capturing, DOMAttrModified, DOMCharacterDataModified, DOMNodeInserted, DOMNodeInsertedIntoDocument, DOMNodeRemoved, DOMNodeRemovedFromDocument, DOMSubtreeModified, ELEMENTDECL, KEPT_NODE, NAMESPACE_NODE, noncapturing, RANGE_DELETE_EVENT, RANGE_DELETETEXT_EVENT, RANGE_INSERT_EVENT, RANGE_INSERTTEXT_EVENT, RANGE_REPLACE_EVENT, RANGE_SETTEXT_EVENT, TRAVERSAL_DELETE_EVENT, TRAVERSAL_REPLACE_EVENT, XMLDECL_NODEATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODEVAL_FALSE, VAL_INCOMPLETE, VAL_NS_WF, VAL_SCHEMA, VAL_TRUE, VAL_UNKNOWN, VAL_WF| Constructor and Description |
|---|
XMLNotation()
Deprecated.
use XMLNotation(String)
|
XMLNotation(java.lang.String name)
Create a notation with the given name
|
| Modifier and Type | Method and Description |
|---|---|
Node |
getNextSibling()
Gets The node immediately following this node.
|
java.lang.String |
getNodeName()
Gets the name of this node, depending on its type
|
short |
getNodeType()
Gets a code representing the type of the underlying object
|
Node |
getParentNode()
Gets the parent of this node.
|
Node |
getPreviousSibling()
Gets the node immediately preceding this node.
|
java.lang.String |
getPublicId()
Gets the Public identifer; if not specified, then
null |
java.lang.String |
getSystemId()
Gets the System identifer; if not specified, then
null |
void |
readExternal(java.io.ObjectInput inArg)
This method reads the information written in the compressed stream by writeExternal method and restores the object correspondingly.
|
void |
setPublicId(java.lang.String pubid)
Sets the Public Identifier
|
void |
setSystemId(java.lang.String url)
Sets the System Identifier
|
void |
writeExternal(java.io.ObjectOutput outArg)
This method saves the state of the object by creating a binray compressed stream with information about this object.
|
addEventListener, addText, appendChild, canAppendChild, canInsertBefore, canRemoveChild, canReplaceChild, cloneNode, dispatchEvent, equals, getAttributes, getChildNodes, getColumnNumber, getDebugMode, getDefaultValue, getEnumeratedValues, getFirstChild, getFirstChildAsOffset, getLastChild, getLineNumber, getLocalName, getNamespaceURI, getNextSiblingAsOffset, getNodeValue, getNodeValueAsBinaryStream, getNodeValueAsBinaryStream, getNodeValueAsCharacterStream, getNodeValueAsCharacterStream, getOwnerDocument, getPrefix, getPrimitiveTypeId, getProperty, getText, getXMLError, hasAttributes, hasChildNodes, hashCode, insertBefore, isDocumentFlag, isNodeFlag, isSupported, nodeValidity, normalize, print, print, print, print, removeChild, removeEventListener, replaceChild, reportSAXEvents, resetNodeFlag, selectNodes, selectNodes, selectSingleNode, selectSingleNode, setDebugInfo, setNodeFlag, setNodeFlag, setNodeFlag, setNodeValue, setNodeValueAsBinaryStream, setNodeValueAsBinaryStream, setNodeValueAsCharacterStream, setNodeValueAsCharacterStream, setPrefix, setProperty, transformNode, valueOf, valueOf, xdbGetNodeIdgetClass, notify, notifyAll, toString, wait, wait, waitappendChild, cloneNode, getAttributes, getChildNodes, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNodeValue, getOwnerDocument, getPrefix, hasAttributes, hasChildNodes, insertBefore, isSupported, normalize, removeChild, replaceChild, setNodeValue, setPrefixpublic XMLNotation()
public XMLNotation(java.lang.String name)
name - Name of the notationpublic short getNodeType()
getNodeType in interface NodegetNodeType in class XMLNodepublic java.lang.String getNodeName()
getNodeName in interface NodegetNodeName in class XMLNodepublic Node getParentNode()
Document, DocumentFragment, and Attr may have a parent. However, if a node has just been created and not yet added to the tree, or if it has been removed from the tree, this is null.getParentNode in interface NodegetParentNode in class XMLNodepublic Node getPreviousSibling()
null.getPreviousSibling in interface NodegetPreviousSibling in class XMLNodepublic Node getNextSibling()
null.getNextSibling in interface NodegetNextSibling in class XMLNodepublic java.lang.String getPublicId()
nullgetPublicId in interface Notationpublic java.lang.String getSystemId()
nullgetSystemId in interface NotationgetSystemId in class XMLNodepublic void setPublicId(java.lang.String pubid)
pubid - Public Identifier to setpublic void setSystemId(java.lang.String url)
url - System Identifier to setpublic void writeExternal(java.io.ObjectOutput outArg)
throws java.io.IOException
writeExternal in interface java.io.ExternalizablewriteExternal in class XMLNodeoutArg - The ObjectOutput stream used to write the serialized/ compressed stream.java.io.IOException - is thrown when there is an exception while writing the serialized/compressed stream.public void readExternal(java.io.ObjectInput inArg)
throws java.io.IOException,
java.lang.ClassNotFoundException
readExternal in interface java.io.ExternalizablereadExternal in class XMLNodeinArg - the ObjectInput stream used for reading the compressed stream.java.io.IOException - is thrown when there is an error in reading the input stream.java.lang.ClassNotFoundException - is thrown when the class is not found.