/** * Get line number * * @return the line number of the node in its original source document; or -1 if not available */ public int getLineNumber() { return node.getLineNumber(); }
/** * Get line number * * @return the line number of the node in its original source document; or * -1 if not available */ public int getLineNumber() { return element.getLineNumber(); }
/** * Get line number * @return the line number of the node in its original source document; or -1 if not available */ public int getLineNumber() { return node.getLineNumber(); }
/** * Get line number * * @return the line number of the node in its original source document; or * -1 if not available */ public int getLineNumber() { return element.getLineNumber(); }
/** * Get line number * * @return the line number of the node in its original source document; or * -1 if not available */ public int getLineNumber() { return original.getLineNumber(); }
/** * Get line number * * @return the line number of the node in its original source document; or * -1 if not available */ public int getLineNumber() { return original.getLineNumber(); }
/** * Return the line number of the specified node. * * @param node the node whose line number is required * @return the line number of the node. This is only available if line numbering was switched on. */ public static int lineNumber(NodeInfo node) { if (node == null) { return -1; } return node.getLineNumber(); }
/** * Get line number * * @return the line number of the node in its original source document; or * -1 if not available */ public int getLineNumber() { return element.getLineNumber(); }
/** * Get line number * @return the line number of the node in its original source document; or -1 if not available */ public int getLineNumber() { return node.getLineNumber(); }
/** * Get line number * @return the line number of the node in its original source document; or -1 if not available */ public int getLineNumber() { return node.getLineNumber(); }
/** * Get the line number of the node within its source document entity */ public int getLineNumber() { return getParent().getLineNumber(); }
/** * Get the line number of the node in a source document. For a document constructed using the document * builder, this is available only if the line numbering option was set when the document was built (and * then only for element nodes). If the line number is not available, the value -1 is returned. Line numbers * will typically be as reported by a SAX parser: this means that the line number for an element node is the * line number containing the closing ">" of the start tag. * * @return the line number of the node, or -1 if not available. */ public int getLineNumber() { return getUnderlyingNode().getLineNumber(); }
/** * Get line number * * @return the line number of the node in its original source document; or * -1 if not available */ public int getLineNumber() { return getParent().getLineNumber(); }
/** * Get the line number of the node in a source document. For a document constructed using the document * builder, this is available only if the line numbering option was set when the document was built (and * then only for element nodes). If the line number is not available, the value -1 is returned. Line numbers * will typically be as reported by a SAX parser: this means that the line number for an element node is the * line number containing the closing ">" of the start tag. * @return the line number of the node, or -1 if not available. */ public int getLineNumber() { return getUnderlyingNode().getLineNumber(); }
/** * Get the line number of the node within its source document entity */ public int getLineNumber() { return getParent().getLineNumber(); }
/** * Get the line number of the node in a source document. For a document constructed using the document * builder, this is available only if the line numbering option was set when the document was built (and * then only for element nodes). If the line number is not available, the value -1 is returned. Line numbers * will typically be as reported by a SAX parser: this means that the line number for an element node is the * line number containing the closing ">" of the start tag. * * @return the line number of the node, or -1 if not available. */ public int getLineNumber() { return getUnderlyingNode().getLineNumber(); }
/** * Get line number * * @return the line number of the node in its original source document; or * -1 if not available */ public int getLineNumber() { return getParent().getLineNumber(); }
public AttributeLocation(NodeInfo element, StructuredQName attributeName) { this.systemId = element.getSystemId(); this.lineNumber = element.getLineNumber(); this.columnNumber = element.getColumnNumber(); this.elementName = Navigator.getNodeName(element); this.attributeName = attributeName; }
/** * Provide information about the node being copied. This method is called immediately before * the startElement call for the element node in question. * * @param element the node being copied, which must be an element node */ public void notifyElementNode(NodeInfo element) { setSystemId(element.getBaseURI()); setLineNumber(element.getLineNumber()); }
/** * Called when an item becomes the context item */ public void startCurrentItem(Item item) { if (item instanceof NodeInfo) { NodeInfo curr = (NodeInfo) item; out.info(AbstractTraceListener.spaces(indent) + "<source node=\"" + Navigator.getPath(curr) + "\" line=\"" + curr.getLineNumber() + "\" file=\"" + StandardErrorListener.abbreviatePath(curr.getSystemId()) + "\">"); } indent++; }