Top Description Fields Constructors Methods
com.sun.org.apache.xerces.internal.dom

public Class NotationImpl

extends NodeImpl
implements Notation
Class Inheritance
All Implemented Interfaces
org.w3c.dom.Notation, org.w3c.dom.Node
Known Direct Subclasses
com.sun.org.apache.xerces.internal.dom.DeferredNotationImpl
Imports
com.sun.org.apache.xerces.internal.util.URI, org.w3c.dom.DOMException, .Node, .Notation

Notations are how the Document Type Description (DTD) records hints about the format of an XML "unparsed entity" -- in other words, non-XML data bound to this document type, which some applications may wish to consult when manipulating the document. A Notation represents a name-value pair, with its nodeName being set to the declared name of the notation.

Notations are also used to formally declare the "targets" of Processing Instructions.

Note that the Notation's data is non-DOM information; the DOM only records what and where it is.

See the XML 1.0 spec, sections 4.7 and 2.6, for more info.

Level 1 of the DOM does not support editing Notation contents.

Since
PR-DOM-Level-1-19980818.

Field Summary

Modifier and TypeField and Description
protected String
baseURI

Base URI

protected String
name

Notation name.

protected String
publicId

Public identifier.

pack-priv static final long
protected String
systemId

System identifier.

Inherited from com.sun.org.apache.xerces.internal.dom.NodeImpl:
ELEMENT_DEFINITION_NODEFIRSTCHILDflagsHASSTRINGIDIGNORABLEWSNORMALIZEDOWNEDownerNodeREADONLYSPECIFIEDSYNCCHILDRENSYNCDATATREE_POSITION_ANCESTORTREE_POSITION_DESCENDANTTREE_POSITION_DISCONNECTEDTREE_POSITION_EQUIVALENTTREE_POSITION_FOLLOWINGTREE_POSITION_PRECEDINGTREE_POSITION_SAME_NODE

Constructor Summary

AccessConstructor and Description
public
NotationImpl(CoreDocumentImpl ownerDoc, String name)

Factory constructor.

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

The absolute base URI of this node or null.
getBaseURI
()

Overrides com.sun.org.apache.xerces.internal.dom.NodeImpl.getBaseURI.

Implements org.w3c.dom.Node.getBaseURI.

Returns the absolute base URI of this node or null if the implementation wasn't able to obtain an absolute URI.

public String
public short
getNodeType()

Implements abstract com.sun.org.apache.xerces.internal.dom.NodeImpl.getNodeType.

Implements org.w3c.dom.Node.getNodeType.

A short integer indicating what type of node this is.

public String
getPublicId()

Implements org.w3c.dom.Notation.getPublicId.

The Public Identifier for this Notation.

public String
getSystemId()

Implements org.w3c.dom.Notation.getSystemId.

The System Identifier for this Notation.

public void
setBaseURI(String uri)

NON-DOM: set base uri

public void
setPublicId(String id)

NON-DOM: The Public Identifier for this Notation.

public void
setSystemId(String id)

NON-DOM: The System Identifier for this Notation.

Inherited from com.sun.org.apache.xerces.internal.dom.NodeImpl:
addEventListenerappendChildchangedchangescloneNodecompareDocumentPositioncompareTreePositiondispatchEventgetAttributesgetChildNodesgetContainergetElementAncestorgetFeaturegetFirstChildgetLastChildgetLengthgetLocalNamegetNamespaceURIgetNextSiblinggetNodeNumbergetNodeValuegetOwnerDocumentgetParentNodegetPrefixgetPreviousSiblinggetReadOnlygetTextContentgetTextContentgetUserDatagetUserDatagetUserDataRecordhasAttributeshasChildNodeshasStringValuehasStringValueinsertBeforeinternalIsIgnorableWhitespaceisDefaultNamespaceisEqualNodeisFirstChildisFirstChildisIdAttributeisIdAttributeisIgnorableWhitespaceisNormalizedisNormalizedisOwnedisOwnedisReadOnlyisReadOnlyisSameNodeisSpecifiedisSpecifiedisSupporteditemlookupNamespacePrefixlookupNamespaceURIlookupPrefixneedsSyncChildrenneedsSyncChildrenneedsSyncDataneedsSyncDatanormalizeownerDocumentparentNodepreviousSiblingremoveChildremoveEventListenerreplaceChildsetNodeValuesetOwnerDocumentsetPrefixsetReadOnlysetTextContentsetUserDatasetUserDatasynchronizeDatatoString

Field Detail

baseURIback to summary
protected String baseURI

Base URI

nameback to summary
protected String name

Notation name.

publicIdback to summary
protected String publicId

Public identifier.

serialVersionUIDback to summary
pack-priv static final long serialVersionUID

Hides com.sun.org.apache.xerces.internal.dom.NodeImpl.serialVersionUID.

Serialization version.

systemIdback to summary
protected String systemId

System identifier.

Constructor Detail

NotationImplback to summary
public NotationImpl(CoreDocumentImpl ownerDoc, String name)

Factory constructor.

Method Detail

getBaseURIback to summary
public String getBaseURI()

Overrides com.sun.org.apache.xerces.internal.dom.NodeImpl.getBaseURI.

Implements org.w3c.dom.Node.getBaseURI.

Returns the absolute base URI of this node or null if the implementation wasn't able to obtain an absolute URI.

Note

If the URI is malformed, a null is returned.

Returns:String

The absolute base URI of this node or null.

Since
DOM Level 3
getNodeNameback to summary
public String getNodeName()

Implements abstract com.sun.org.apache.xerces.internal.dom.NodeImpl.getNodeName.

Implements org.w3c.dom.Node.getNodeName.

Returns the notation name

getNodeTypeback to summary
public short getNodeType()

Implements abstract com.sun.org.apache.xerces.internal.dom.NodeImpl.getNodeType.

Implements org.w3c.dom.Node.getNodeType.

A short integer indicating what type of node this is. The named constants for this value are defined in the org.w3c.dom.Node interface.

getPublicIdback to summary
public String getPublicId()

Implements org.w3c.dom.Notation.getPublicId.

The Public Identifier for this Notation. If no public identifier was specified, this will be null.

getSystemIdback to summary
public String getSystemId()

Implements org.w3c.dom.Notation.getSystemId.

The System Identifier for this Notation. If no system identifier was specified, this will be null.

setBaseURIback to summary
public void setBaseURI(String uri)

NON-DOM: set base uri

setPublicIdback to summary
public void setPublicId(String id)

NON-DOM: The Public Identifier for this Notation. If no public identifier was specified, this will be null.

setSystemIdback to summary
public void setSystemId(String id)

NON-DOM: The System Identifier for this Notation. If no system identifier was specified, this will be null.