public class CommentImpl extends NodeImpl
NODE_LETTER
ALL_NAMESPACES, IS_DTD_TYPE, IS_NILLED, LOCAL_NAMESPACES, NO_NAMESPACES
Constructor and Description |
---|
CommentImpl(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.
|
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 |
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, getNodeName, 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, rename, replace, saveLocation, setRawParent, setSiblingPosition, setSystemId, setTypeAnnotation
public final java.lang.String getStringValue()
Item
Item.getStringValueCS()
should
be used. If the caller requires a string, this method is preferred.Item.getStringValueCS()
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 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 zero, indicates that the location information
is not availableXPathException
- if any downstream error occurspublic void replaceStringValue(java.lang.CharSequence stringValue)
stringValue
- the new string valuepublic 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.Source
getSystemId
in interface javax.xml.transform.SourceLocator
getSystemId
in interface Location
getSystemId
in interface NodeInfo
getSystemId
in interface org.xml.sax.Locator
getSystemId
in class NodeImpl
public int getLineNumber()
getLineNumber
in interface javax.xml.transform.SourceLocator
getLineNumber
in interface Location
getLineNumber
in interface NodeInfo
getLineNumber
in interface org.xml.sax.Locator
getLineNumber
in class NodeImpl
public int getColumnNumber()
getColumnNumber
in interface javax.xml.transform.SourceLocator
getColumnNumber
in interface Location
getColumnNumber
in interface NodeInfo
getColumnNumber
in interface org.xml.sax.Locator
getColumnNumber
in class NodeImpl
Copyright (c) 2004-2018 Saxonica Limited. All rights reserved.