public int getDocument() { return _dom.getDocument(); }
/** * Implements the nodeset() extension function. */ public static DTMAxisIterator nodesetF(Object obj) { if (obj instanceof DOM) { //final DOMAdapter adapter = (DOMAdapter) obj; final DOM dom = (DOM)obj; return new SingletonIterator(dom.getDocument(), true); } else if (obj instanceof DTMAxisIterator) { return (DTMAxisIterator) obj; } else { final String className = obj.getClass().getName(); runTimeError(DATA_CONVERSION_ERR, "node-set", className); return null; } }
/** * Wrap the initial input DOM in a dom adapter. This adapter is wrapped in * a DOM multiplexer if the document() function is used (handled by compiled * code in the translet - see compiler/Stylesheet.compileTransform()). */ public final DOMAdapter makeDOMAdapter(DOM dom) throws TransletException { setRootForKeys(dom.getDocument()); return new DOMAdapter(dom, namesArray, urisArray, typesArray, namespaceArray); }
result = 0; final int ntype = _document.getExpandedTypeID(_node); final int root = _document.getDocument(); while (next >= 0) { if (ntype == _document.getExpandedTypeID(next)) {
final int root = _document.getDocument(); result = 0; while (next >= root && !matchesFrom(next)) {
newDom.copy(newDom.getDocument(), handler);
newdom.getDocument()); return new SingletonIterator(newdom.getDocument(), true);
setRootForKeys(document.getDocument());
translet.buildKeys(domAdapter, null, null, newdom.getDocument()); return new SingletonIterator(newdom.getDocument(), true); } catch (Exception e) { throw e;
public int getDocument() { return _dom.getDocument(); }
public int getDocument() { return _dom.getDocument(); }
public int getDocument() { return _dom.getDocument(); }
/** * Implements the nodeset() extension function. */ public static DTMAxisIterator nodesetF(Object obj) { if (obj instanceof DOM) { //final DOMAdapter adapter = (DOMAdapter) obj; final DOM dom = (DOM)obj; return new SingletonIterator(dom.getDocument(), true); } else if (obj instanceof DTMAxisIterator) { return (DTMAxisIterator) obj; } else { final String className = obj.getClass().getName(); runTimeError(DATA_CONVERSION_ERR, "node-set", className); return null; } }
/** * Wrap the initial input DOM in a dom adapter. This adapter is wrapped in * a DOM multiplexer if the document() function is used (handled by compiled * code in the translet - see compiler/Stylesheet.compileTransform()). */ public final DOMAdapter makeDOMAdapter(DOM dom) throws TransletException { setRootForKeys(dom.getDocument()); return new DOMAdapter(dom, namesArray, urisArray, typesArray, namespaceArray); }
/** * Wrap the initial input DOM in a dom adapter. This adapter is wrapped in * a DOM multiplexer if the document() function is used (handled by compiled * code in the translet - see compiler/Stylesheet.compileTransform()). */ public final DOMAdapter makeDOMAdapter(DOM dom) throws TransletException { setRootForKeys(dom.getDocument()); return new DOMAdapter(dom, namesArray, urisArray, typesArray, namespaceArray); }
/** * Implements the nodeset() extension function. */ public static DTMAxisIterator nodesetF(Object obj) { if (obj instanceof DOM) { //final DOMAdapter adapter = (DOMAdapter) obj; final DOM dom = (DOM)obj; return new SingletonIterator(dom.getDocument(), true); } else if (obj instanceof DTMAxisIterator) { return (DTMAxisIterator) obj; } else { final String className = obj.getClass().getName(); runTimeError(DATA_CONVERSION_ERR, "node-set", className); return null; } }
/** * Wrap the initial input DOM in a dom adapter. This adapter is wrapped in * a DOM multiplexer if the document() function is used (handled by compiled * code in the translet - see compiler/Stylesheet.compileTransform()). */ public final DOMAdapter makeDOMAdapter(DOM dom) throws TransletException { setRootForKeys(dom.getDocument()); return new DOMAdapter(dom, namesArray, urisArray, typesArray, namespaceArray); }
/** * Implements the nodeset() extension function. */ public static DTMAxisIterator nodesetF(Object obj) { if (obj instanceof DOM) { //final DOMAdapter adapter = (DOMAdapter) obj; final DOM dom = (DOM)obj; return new SingletonIterator(dom.getDocument(), true); } else if (obj instanceof DTMAxisIterator) { return (DTMAxisIterator) obj; } else { final String className = obj.getClass().getName(); runTimeError(DATA_CONVERSION_ERR, "node-set", className); return null; } }
newdom.getDocument()); return new SingletonIterator(newdom.getDocument(), true);
/** * Return an IntegerArray for the DOM Node which has the given id. * * @param id The id * @return A IntegerArray representing the Node whose id is the given value. */ public IntegerArray getDOMNodeById(String id) { IntegerArray nodes = null; if (_enhancedDOM != null) { int ident = _enhancedDOM.getElementById(id); if (ident != DTM.NULL) { Integer root = new Integer(_enhancedDOM.getDocument()); Hashtable index = (Hashtable) _rootToIndexMap.get(root); if (index == null) { index = new Hashtable(); _rootToIndexMap.put(root, index); } else { nodes = (IntegerArray) index.get(id); } if (nodes == null) { nodes = new IntegerArray(); index.put(id, nodes); } nodes.add(_enhancedDOM.getNodeHandle(ident)); } } return nodes; }