public class ProcInstImpl extends NodeImpl
NODE_LETTER
Constructor and Description |
---|
ProcInstImpl(java.lang.String name,
UnicodeString content) |
Modifier and Type | Method and Description |
---|---|
AtomicSequence |
atomize()
Get the typed value of this node.
|
void |
copy(Receiver out,
int copyOptions,
Location locationId)
Copy this node to a given outputter
|
int |
getColumnNumber()
Get the column number of the node within its source entity
|
int |
getLineNumber()
Get the line number of the node within its source entity
|
int |
getNodeKind()
Get the kind of node.
|
NodeName |
getNodeName()
Get the name of the node.
|
java.lang.String |
getSystemId()
Get the system ID for the entity containing this node.
|
UnicodeString |
getUnicodeStringValue()
Get the string value of this sequence, as an instance of
UnicodeString . |
void |
rename(NodeName newNameCode,
boolean inherit)
Rename this node
|
void |
replaceStringValue(UnicodeString stringValue)
Replace the string-value of this node
|
void |
setLocation(java.lang.String uri,
int lineNumber,
int columnNumber)
Set the system ID and line number
|
addAttribute, addNamespace, attributes, compareOrder, delete, effectiveBooleanValue, equals, generateId, getAllNamespaces, getAttributeValue, getBaseURI, getConfiguration, getDeclaredNamespaces, getDisplayName, getFingerprint, getFirstChild, getLastChild, getLocalPart, getNamePool, getNextInDocument, getNextSibling, getParent, getPhysicalRoot, getPrefix, getPreviousInDocument, getPreviousSibling, getRawParent, getRoot, getSchemaType, getSequenceNumber, getSiblingPosition, getSuccessorElement, getTreeInfo, getURI, hasChildNodes, hasFingerprint, hashCode, head, insertChildren, insertSiblings, isDeleted, iterateAxis, iterateAxis, newBuilder, removeAttribute, removeTypeAnnotation, replace, saveLocation, setAttributes, setRawParent, setSiblingPosition, setSystemId, setTypeAnnotation
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
addNamespace, removeNamespace
asActiveSource, children, children, deliver, getGenre, getPublicId, isId, isIdref, isNilled, isSameNodeInfo, isStreamed, toShortString
getLength, getStringValue, itemAt, iterate, reduce, subsequence
asIterable, concatenate, containsNode, materialize
makeRepeatable
public ProcInstImpl(java.lang.String name, UnicodeString content)
public NodeName getNodeName()
getNodeName
in class NodeImpl
public UnicodeString getUnicodeStringValue()
GroundedValue
UnicodeString
.
The string value of an item is the result of applying the XPath string()
function. The string value of a sequence is the space-separated result of applying the string-join() function
using a single space as the separator
The result of this method is always equivalent to the result of the GroundedValue.getStringValue()
method.
Use this method in preference either (a) if you need to use the value in a context where a UnicodeString
is required, or (b) if the underlying value is held as a UnicodeString
, or in a form that is readily
converted to a UnicodeString
. This is typically the case (i) when the value is a text or element node
in a TinyTree, and (ii) when the value is a StringItem
: that is, an atomic value of type
xs:string
.
public AtomicSequence atomize()
atomize
in interface Item
atomize
in interface NodeInfo
atomize
in class NodeImpl
public final int getNodeKind()
NodeInfo
Type.ELEMENT
or Type.ATTRIBUTE
. There are seven kinds of node: documents, elements, attributes,
text, comments, processing-instructions, and namespaces.Type
public void setLocation(java.lang.String uri, int lineNumber, int columnNumber)
uri
- the system identifierlineNumber
- the line numbercolumnNumber
- the column numberpublic java.lang.String getSystemId()
getSystemId
in interface javax.xml.transform.Source
getSystemId
in interface javax.xml.transform.SourceLocator
getSystemId
in interface NodeInfo
getSystemId
in interface Location
getSystemId
in interface org.xml.sax.Locator
getSystemId
in class NodeImpl
public int getLineNumber()
getLineNumber
in interface javax.xml.transform.SourceLocator
getLineNumber
in interface NodeInfo
getLineNumber
in interface Location
getLineNumber
in interface org.xml.sax.Locator
getLineNumber
in class NodeImpl
public int getColumnNumber()
getColumnNumber
in interface javax.xml.transform.SourceLocator
getColumnNumber
in interface NodeInfo
getColumnNumber
in interface Location
getColumnNumber
in interface org.xml.sax.Locator
getColumnNumber
in class NodeImpl
public void copy(Receiver out, int copyOptions, Location locationId) throws XPathException
out
- the Receiver to which the node should be copied. It is the caller's
responsibility to ensure that this Receiver is open before the method is called
(or that it is self-opening), and that it is closed after use.copyOptions
- a selection of the options defined in CopyOptions
locationId
- If non-null, identifies the location of the instruction
that requested this copy. If null, indicates that the location information
is not availableXPathException
- if any downstream error occurspublic void rename(NodeName newNameCode, boolean inherit)
rename
in interface MutableNodeInfo
rename
in class NodeImpl
newNameCode
- the new nameinherit
- true if any new namespace binding is to be inherited by descendantspublic void replaceStringValue(UnicodeString stringValue)
stringValue
- the new string valueCopyright (c) 2004-2022 Saxonica Limited. All rights reserved.