/** * Get a character string that uniquely identifies this node. * Note: a.isSameNode(b) if and only if generateId(a)==generateId(b) * @param buffer a buffer, into which will be placed * a string that uniquely identifies this node, within this * document. The calling code prepends information to make the result * unique across all documents. */ public void generateId(FastStringBuffer buffer) { node.generateId(buffer); }
/** * Get a character string that uniquely identifies this node. * Note: a.isSameNode(b) if and only if generateId(a)==generateId(b) * @param buffer a buffer, into which will be placed * a string that uniquely identifies this node, within this * document. The calling code prepends information to make the result * unique across all documents. */ public void generateId(FastStringBuffer buffer) { node.generateId(buffer); }
/** * Get a character string that uniquely identifies this node. * Note: a.isSameNode(b) if and only if generateId(a)==generateId(b) * @param buffer a buffer, into which will be placed * a string that uniquely identifies this node, within this * document. The calling code prepends information to make the result * unique across all documents. */ public void generateId(FastStringBuffer buffer) { node.generateId(buffer); }
/** * Get a character string that uniquely identifies this node. * Note: a.isSameNode(b) if and only if generateId(a)==generateId(b) * * @param buffer a buffer, into which will be placed * a string that uniquely identifies this node, within this * document. The calling code prepends information to make the result * unique across all documents. */ public void generateId(FastStringBuffer buffer) { // Note: giving the node the same ID as its underlying node is slightly questionable; depends on usage node.generateId(buffer); }
/** * Get a character string that uniquely identifies this node. * Note: a.isSameNode(b) if and only if generateId(a)==generateId(b) * * @param buffer a buffer, into which will be placed * a string that uniquely identifies this node, across all * documents. */ public void generateId(FastStringBuffer buffer) { if (node == null) { tryToConstruct(); } node.generateId(buffer); }
/** * Get a character string that uniquely identifies this node. * Note: a.isSameNode(b) if and only if generateId(a)==generateId(b) * * @param buffer buffer to hold a string that uniquely identifies this node, across all * documents. */ public void generateId(/*@NotNull*/ FastStringBuffer buffer) { element.generateId(buffer); buffer.append("n"); buffer.append(Integer.toString(position)); }
/** * Get a character string that uniquely identifies this node. * Note: a.isSameNode(b) if and only if generateId(a)==generateId(b) * * @param buffer buffer to hold a string that uniquely identifies this node, across all * documents. */ public void generateId(/*@NotNull*/ FastStringBuffer buffer) { element.generateId(buffer); buffer.append("n"); buffer.append(Integer.toString(position)); }
/** * Get a character string that uniquely identifies this node. * Note: a.isSameNode(b) if and only if generateId(a)==generateId(b) * * @param buffer a buffer, to which will be appended * a string that uniquely identifies this node, across all * documents. */ public void generateId(FastStringBuffer buffer) { buffer.append("d"); buffer.append(Integer.toString(documentNumber)); original.generateId(buffer); }
/** * Get a character string that uniquely identifies this node. * Note: a.isSameNode(b) if and only if generateId(a)==generateId(b) * * @param buffer buffer to hold a string that uniquely identifies this node, across all * documents. */ public void generateId(FastStringBuffer buffer) { element.generateId(buffer); buffer.append("n"); buffer.append(Integer.toString(position)); }
/** * Get a character string that uniquely identifies this node. * Note: a.isSameNode(b) if and only if generateId(a)==generateId(b) * * @param buffer buffer to hold a string that uniquely identifies this node, across all * documents. */ public void generateId(FastStringBuffer buffer) { element.generateId(buffer); buffer.append("n"); buffer.append(Integer.toString(position)); }
/** * Get a character string that uniquely identifies this node. * Note: a.isSameNode(b) if and only if generateId(a)==generateId(b) * * @param buffer a buffer, to which will be appended * a string that uniquely identifies this node, across all * documents. */ public void generateId(FastStringBuffer buffer) { buffer.append("d"); buffer.append(Integer.toString(documentNumber)); original.generateId(buffer); }
/** * Get sequential key. Returns key of owning element with the attribute index as a suffix * @param buffer a buffer to which the generated ID will be written */ public void generateId(FastStringBuffer buffer) { getParent().generateId(buffer); buffer.append('a'); buffer.append(Integer.toString(index)); }
/** * Get sequential key. Returns key of owning element with the attribute index as a suffix * @param buffer */ public void generateId(FastStringBuffer buffer) { getParent().generateId(buffer); buffer.append('a'); buffer.append(Integer.toString(index)); }
/** * Generate id. Returns key of owning element with the attribute namecode as a suffix * @param buffer Buffer to contain the generated ID value */ public void generateId(FastStringBuffer buffer) { getParent().generateId(buffer); buffer.append("a"); buffer.append(Integer.toString(tree.attCode[nodeNr])); // we previously used the attribute name. But this breaks the requirement // that the result of generate-id consists entirely of alphanumeric ASCII // characters }
/** * Generate id. Returns key of owning element with the attribute namecode as a suffix * @param buffer Buffer to contain the generated ID value */ public void generateId(FastStringBuffer buffer) { getParent().generateId(buffer); buffer.append("a"); buffer.append(Integer.toString(tree.attCode[nodeNr])); // we previously used the attribute name. But this breaks the requirement // that the result of generate-id consists entirely of alphanumeric ASCII // characters }
/** * Get sequential key. Returns key of owning element with the attribute index as a suffix * @param buffer */ public void generateId(FastStringBuffer buffer) { getParent().generateId(buffer); buffer.append('a'); buffer.append(Integer.toString(index)); }
/** * Generate id. Returns key of owning element with the attribute namecode as a suffix * @param buffer Buffer to contain the generated ID value */ public void generateId(FastStringBuffer buffer) { getParent().generateId(buffer); buffer.append("a"); buffer.append(Integer.toString(tree.attCode[nodeNr])); // we previously used the attribute name. But this breaks the requirement // that the result of generate-id consists entirely of alphanumeric ASCII // characters }
public static StringValue generateId(NodeInfo node) { FastStringBuffer buffer = new FastStringBuffer(FastStringBuffer.C16); node.generateId(buffer); buffer.condense(); return new StringValue(buffer); }
public static StringValue generateId(NodeInfo node) { FastStringBuffer buffer = new FastStringBuffer(FastStringBuffer.C16); node.generateId(buffer); buffer.condense(); return new StringValue(buffer); }
/** * Get a character string that uniquely identifies this node. * Note: a.isSameNode(b) if and only if generateId(a)==generateId(b) * * @param buffer a buffer, to which will be appended * a string that uniquely identifies this node, across all * documents. */ public void generateId(/*@NotNull*/ FastStringBuffer buffer) { buffer.append("d"); buffer.append(Long.toString(getTreeInfo().getDocumentNumber())); original.generateId(buffer); }