Top Description Fields Constructors Methods
org.apache.xerces.dom

public Class ProcessingInstructionImpl

extends CharacterDataImpl
implements ProcessingInstruction
Class Inheritance
All Implemented Interfaces
org.w3c.dom.ProcessingInstruction, org.w3c.dom.Node
Known Direct Subclasses
org.apache.xerces.dom.DeferredProcessingInstructionImpl
Imports
org.w3c.dom.Node, .ProcessingInstruction

Processing Instructions (PIs) permit documents to carry processor-specific information alongside their actual content. PIs are most common in XML, but they are supported in HTML as well. This class inherits from CharacterDataImpl to reuse its setNodeValue method.
Since
PR-DOM-Level-1-19980818.
Version
$Id: ProcessingInstructionImpl.java 890194 2009-12-14 06:33:17Z mrglavas $

Field Summary

Modifier and TypeField and Description
pack-priv static final long
protected String
Inherited from org.apache.xerces.dom.CharacterDataImpl:
data

Constructor Summary

AccessConstructor and Description
public
ProcessingInstructionImpl(CoreDocumentImpl ownerDoc, String target, String data)

Factory constructor.

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

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

Overrides org.apache.xerces.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
getNodeName()

Implements abstract org.apache.xerces.dom.NodeImpl.getNodeName.

Implements org.w3c.dom.Node.getNodeName.

Returns the target
public short
getNodeType()

Implements abstract org.apache.xerces.dom.NodeImpl.getNodeType.

Implements org.w3c.dom.Node.getNodeType.

A short integer indicating what type of node this is.
public String
getTarget()

Implements org.w3c.dom.ProcessingInstruction.getTarget.

A PI's "target" states what processor channel the PI's data should be directed to.
Inherited from org.apache.xerces.dom.CharacterDataImpl:
appendDatadeleteDatagetChildNodesgetDatagetLengthgetNodeValueinsertDatainternalDeleteDatainternalInsertDatareplaceDatasetDatasetNodeValuesetNodeValueInternalsetNodeValueInternalsubstringData

Field Detail

serialVersionUIDback to summary
pack-priv static final long serialVersionUID

Hides org.apache.xerces.dom.CharacterDataImpl.serialVersionUID.

Serialization version.

targetback to summary
protected String target

Constructor Detail

ProcessingInstructionImplback to summary
public ProcessingInstructionImpl(CoreDocumentImpl ownerDoc, String target, String data)

Factory constructor.

Method Detail

getBaseURIback to summary
public String getBaseURI()

Overrides org.apache.xerces.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 org.apache.xerces.dom.NodeImpl.getNodeName.

Implements org.w3c.dom.Node.getNodeName.

Returns the target

getNodeTypeback to summary
public short getNodeType()

Implements abstract org.apache.xerces.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.

getTargetback to summary
public String getTarget()

Implements org.w3c.dom.ProcessingInstruction.getTarget.

A PI's "target" states what processor channel the PI's data should be directed to. It is defined differently in HTML and XML.

In XML, a PI's "target" is the first (whitespace-delimited) token following the " In HTML, target is always null.

Note that getNodeName is aliased to getTarget.