public class ProcInstImpl extends NodeImpl
NODE_LETTERALL_NAMESPACES, IS_DTD_TYPE, IS_NILLED, LOCAL_NAMESPACES, NO_NAMESPACES| Constructor and Description |
|---|
ProcInstImpl(java.lang.String name,
java.lang.String 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 |
getStringValue()
Get the value of the item as a string.
|
java.lang.String |
getSystemId()
Get the system ID for the entity containing this node.
|
void |
rename(NodeName newNameCode)
Rename this node
|
void |
replaceStringValue(java.lang.CharSequence 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, compareOrder, comparePosition, delete, equals, generateId, getAttributeValue, getBaseURI, getConfiguration, getDeclaredNamespaces, getDisplayName, getFingerprint, getFirstChild, getLastChild, getLocalPart, getNamePool, getNextInDocument, getNextSibling, getParent, getPhysicalRoot, getPrefix, getPreviousInDocument, getPreviousSibling, getPublicId, getRawParent, getRoot, getSchemaType, getSequenceNumber, getSiblingPosition, getStringValueCS, getSuccessorElement, getTreeInfo, getURI, hasChildNodes, hasFingerprint, head, insertChildren, insertSiblings, isDeleted, isId, isIdref, isNilled, isSameNodeInfo, isStreamed, iterate, iterateAxis, iterateAxis, newBuilder, removeAttribute, removeTypeAnnotation, replace, saveLocation, setRawParent, setSiblingPosition, setSystemId, setTypeAnnotationpublic ProcInstImpl(java.lang.String name,
java.lang.String content)
public NodeName getNodeName()
getNodeName in class NodeImplpublic java.lang.String getStringValue()
ItemItem.getStringValueCS() should
be used. If the caller requires a string, this method is preferred.Item.getStringValueCS()public AtomicSequence atomize()
atomize in interface Itematomize in interface NodeInfoatomize in class NodeImplpublic final int getNodeKind()
NodeInfoType.ELEMENT
or Type.ATTRIBUTE. There are seven kinds of node: documents, elements, attributes,
text, comments, processing-instructions, and namespaces.Typepublic void setLocation(java.lang.String uri,
int lineNumber,
int columnNumber)
uri - the system identifierlineNumber - the line numberpublic java.lang.String getSystemId()
getSystemId in interface javax.xml.transform.SourcegetSystemId in interface javax.xml.transform.SourceLocatorgetSystemId in interface LocationgetSystemId in interface NodeInfogetSystemId in interface org.xml.sax.LocatorgetSystemId in class NodeImplpublic int getLineNumber()
getLineNumber in interface javax.xml.transform.SourceLocatorgetLineNumber in interface LocationgetLineNumber in interface NodeInfogetLineNumber in interface org.xml.sax.LocatorgetLineNumber in class NodeImplpublic int getColumnNumber()
getColumnNumber in interface javax.xml.transform.SourceLocatorgetColumnNumber in interface LocationgetColumnNumber in interface NodeInfogetColumnNumber in interface org.xml.sax.LocatorgetColumnNumber in class NodeImplpublic 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 CopyOptionslocationId - If non-null, identifies the location of the instruction
that requested this copy. If zero, indicates that the location information
is not availableXPathException - if any downstream error occurspublic void rename(NodeName newNameCode)
rename in interface MutableNodeInforename in class NodeImplnewNameCode - the new namepublic void replaceStringValue(java.lang.CharSequence stringValue)
stringValue - the new string valueCopyright (c) 2004-2018 Saxonica Limited. All rights reserved.