biz.c24.io.api.data.saxon
Class ProcessingInstructionNode

java.lang.Object
  extended by biz.c24.io.api.data.saxon.LeafNode
      extended by biz.c24.io.api.data.saxon.ProcessingInstructionNode
All Implemented Interfaces:
DataNode, Node, Source, net.sf.saxon.evpull.PullEvent, net.sf.saxon.om.Item, net.sf.saxon.om.NodeInfo, net.sf.saxon.om.ValueRepresentation

public class ProcessingInstructionNode
extends LeafNode

A processing instruction node in the C24 Integreation Objects data model.


Field Summary
 
Fields inherited from interface net.sf.saxon.om.NodeInfo
ALL_NAMESPACES, EMPTY_NAMESPACE_LIST, IS_DTD_TYPE, IS_NILLED, LOCAL_NAMESPACES, NO_NAMESPACES
 
Method Summary
 String getDisplayName()
          Get the display name of this node, in the form of a lexical QName.
 int getFingerprint()
          Get fingerprint.
 String getLocalPart()
          Get the local part of the name of this node.
 int getNameCode()
          Get name code.
 int getNodeKind()
          Get the kind of node.
 
Methods inherited from class biz.c24.io.api.data.saxon.LeafNode
atomize, compareOrder, copy, equals, generateId, getAttributeValue, getBaseURI, getConfiguration, getDeclaredNamespaces, getDocumentNumber, getDocumentRoot, getLineNumber, getNamePool, getParent, getPrefix, getRelativePosition, getRoot, getStringValue, getStringValueCS, getSystemId, getTypeAnnotation, getTypedValue, getUnderlyingObject, getURI, hasChildNodes, hashCode, isSameNodeInfo, iterateAxis, iterateAxis, sendNamespaceDeclarations, setSystemId
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getNodeKind

public int getNodeKind()
Get the kind of node. This will be a value such as Type.ELEMENT or Type.ATTRIBUTE. There are seven kinds of node: documents, elements, attributes, text, comments, processing-instructions, and namespaces.

Returns:
an integer identifying the kind of node. These integer values are the same as those used in the DOM
Since:
8.4
See Also:
Type

getNameCode

public int getNameCode()
Get name code. The name code is a coded form of the node name: two nodes with the same name code have the same namespace URI, the same local name, and the same prefix. By masking the name code with NamePool.FP_MASK, you get a fingerprint: two nodes with the same fingerprint have the same local name and namespace URI.

Specified by:
getNameCode in interface net.sf.saxon.om.NodeInfo
Overrides:
getNameCode in class LeafNode
Returns:
an integer name code, which may be used to obtain the actual node name from the name pool. For unnamed nodes (text nodes, comments, document nodes, and namespace nodes for the default namespace), returns -1. For a processing instruction, the name of the node is what XML calls the "target".
Since:
8.4
See Also:
allocate, getFingerprint

getDisplayName

public String getDisplayName()
Get the display name of this node, in the form of a lexical QName. For elements and attributes this is [prefix:]localname. For unnamed nodes, it is an empty string.

Specified by:
getDisplayName in interface net.sf.saxon.om.NodeInfo
Overrides:
getDisplayName in class LeafNode
Returns:
The display name of this node. For a node with no name, returns an empty string.
Since:
8.4

getLocalPart

public String getLocalPart()
Get the local part of the name of this node. This is the name after the ":" if any.

Specified by:
getLocalPart in interface net.sf.saxon.om.NodeInfo
Overrides:
getLocalPart in class LeafNode
Returns:
the local part of the name. For an unnamed node, returns "". Unlike the DOM interface, this returns the full name in the case of a non-namespaced name.
Since:
8.4

getFingerprint

public int getFingerprint()
Get fingerprint. The fingerprint is a coded form of the expanded name of the node: two nodes with the same name code have the same namespace URI and the same local name. The fingerprint contains no information about the namespace prefix. For a name in the null namespace, the fingerprint is the same as the name code.

Specified by:
getFingerprint in interface net.sf.saxon.om.NodeInfo
Overrides:
getFingerprint in class LeafNode
Returns:
an integer fingerprint; two nodes with the same fingerprint have the same expanded QName. For unnamed nodes (text nodes, comments, document nodes, and namespace nodes for the default namespace), returns -1.
Since:
8.4


C24 Technologies © 2002-2012: All Rights Reserved.