public class CommentImpl extends NodeImpl
NODE_LETTER
ALL_NAMESPACES, IS_DTD_TYPE, IS_NILLED, LOCAL_NAMESPACES, NO_NAMESPACES
Constructor and Description |
---|
CommentImpl(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 |
getNodeKind()
Get the kind of node.
|
String |
getStringValue()
Get the value of the item as a string.
|
void |
replaceStringValue(CharSequence stringValue)
Replace the string-value of this node
|
addAttribute, addNamespace, compareOrder, comparePosition, delete, equals, generateId, getAttributeValue, getAttributeValue, getBaseURI, getColumnNumber, getConfiguration, getDeclaredNamespaces, getDisplayName, getFingerprint, getFirstChild, getLastChild, getLineNumber, getLocalPart, getNameCode, getNamePool, getNextInDocument, getNextSibling, getNodeName, getParent, getPhysicalRoot, getPrefix, getPreviousInDocument, getPreviousSibling, getPublicId, getRawParent, getRoot, getSchemaType, getSequenceNumber, getSiblingPosition, getStringValueCS, getSuccessorElement, getSystemId, getTreeInfo, getURI, hasChildNodes, head, insertChildren, insertSiblings, isDeleted, isId, isIdref, isNilled, isSameNodeInfo, iterate, iterateAxis, iterateAxis, newBuilder, removeAttribute, removeTypeAnnotation, rename, replace, saveLocation, setRawParent, setSiblingPosition, setSystemId, setTypeAnnotation
public CommentImpl(String content)
public final 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(CharSequence stringValue)
stringValue
- the new string valueCopyright (c) 2004-2014 Saxonica Limited. All rights reserved.