DTMIterator.setShouldCacheNodes
Code IndexAdd Codota to your IDE (free)

Best Java code snippets using org.apache.xml.dtm.DTMIterator.setShouldCacheNodes (Showing top 20 results out of 315)

  • Common ways to obtain DTMIterator
private void myMethod () {
DTMIterator d =
  • XObject arg;arg.iter()
  • XPathContext xctxt;xctxt.getContextNodeList()
  • Expression m_selectExpression;XPathContext xctxt;m_selectExpression.asIterator(xctxt, contextNode)
  • Smart code suggestions by Codota
}
origin: robovm/robovm

/**
 * Public constructor: Wrap a DTMNodeList around an existing
 * and preconfigured DTMIterator
 *
 * WARNING: THIS HAS THE SIDE EFFECT OF ISSUING setShouldCacheNodes(true)
 * AGAINST THE DTMIterator.
 *
 */
public DTMNodeList(DTMIterator dtmIterator) {
  if (dtmIterator != null) {
    int pos = dtmIterator.getCurrentPos();
    try {
      m_iter=(DTMIterator)dtmIterator.cloneWithReset();
    } catch(CloneNotSupportedException cnse) {
      m_iter = dtmIterator;
    }
    m_iter.setShouldCacheNodes(true);
    m_iter.runTo(-1);
    m_iter.setCurrentPos(pos);
  }
}
origin: xalan/xalan

/**
 * Public constructor: Wrap a DTMNodeList around an existing
 * and preconfigured DTMIterator
 *
 * WARNING: THIS HAS THE SIDE EFFECT OF ISSUING setShouldCacheNodes(true)
 * AGAINST THE DTMIterator.
 *
 */
public DTMNodeList(DTMIterator dtmIterator) {
  if (dtmIterator != null) {
    int pos = dtmIterator.getCurrentPos();
    try {
      m_iter=(DTMIterator)dtmIterator.cloneWithReset();
    } catch(CloneNotSupportedException cnse) {
      m_iter = dtmIterator;
    }
    m_iter.setShouldCacheNodes(true);
    m_iter.runTo(-1);
    m_iter.setCurrentPos(pos);
  }
}
origin: robovm/robovm

sourceNodes.setShouldCacheNodes(true);
sourceNodes.runTo(-1);
xctxt.pushContextNodeList(sourceNodes);
origin: xalan/xalan

nl.setShouldCacheNodes(true); // This MUST be done before we clone the iterator!
org.apache.xml.dtm.DTMIterator clone = null;
origin: xalan/xalan

sourceNodes.setShouldCacheNodes(true);
sourceNodes.runTo(-1);
xctxt.pushContextNodeList(sourceNodes);
origin: MobiVM/robovm

/**
 * Public constructor: Wrap a DTMNodeList around an existing
 * and preconfigured DTMIterator
 *
 * WARNING: THIS HAS THE SIDE EFFECT OF ISSUING setShouldCacheNodes(true)
 * AGAINST THE DTMIterator.
 *
 */
public DTMNodeList(DTMIterator dtmIterator) {
  if (dtmIterator != null) {
    int pos = dtmIterator.getCurrentPos();
    try {
      m_iter=(DTMIterator)dtmIterator.cloneWithReset();
    } catch(CloneNotSupportedException cnse) {
      m_iter = dtmIterator;
    }
    m_iter.setShouldCacheNodes(true);
    m_iter.runTo(-1);
    m_iter.setCurrentPos(pos);
  }
}
origin: com.gluonhq/robovm-rt

/**
 * Public constructor: Wrap a DTMNodeList around an existing
 * and preconfigured DTMIterator
 *
 * WARNING: THIS HAS THE SIDE EFFECT OF ISSUING setShouldCacheNodes(true)
 * AGAINST THE DTMIterator.
 *
 */
public DTMNodeList(DTMIterator dtmIterator) {
  if (dtmIterator != null) {
    int pos = dtmIterator.getCurrentPos();
    try {
      m_iter=(DTMIterator)dtmIterator.cloneWithReset();
    } catch(CloneNotSupportedException cnse) {
      m_iter = dtmIterator;
    }
    m_iter.setShouldCacheNodes(true);
    m_iter.runTo(-1);
    m_iter.setCurrentPos(pos);
  }
}
origin: FlexoVM/flexovm

/**
 * Public constructor: Wrap a DTMNodeList around an existing
 * and preconfigured DTMIterator
 *
 * WARNING: THIS HAS THE SIDE EFFECT OF ISSUING setShouldCacheNodes(true)
 * AGAINST THE DTMIterator.
 *
 */
public DTMNodeList(DTMIterator dtmIterator) {
  if (dtmIterator != null) {
    int pos = dtmIterator.getCurrentPos();
    try {
      m_iter=(DTMIterator)dtmIterator.cloneWithReset();
    } catch(CloneNotSupportedException cnse) {
      m_iter = dtmIterator;
    }
    m_iter.setShouldCacheNodes(true);
    m_iter.runTo(-1);
    m_iter.setCurrentPos(pos);
  }
}
origin: com.bugvm/bugvm-rt

/**
 * Public constructor: Wrap a DTMNodeList around an existing
 * and preconfigured DTMIterator
 *
 * WARNING: THIS HAS THE SIDE EFFECT OF ISSUING setShouldCacheNodes(true)
 * AGAINST THE DTMIterator.
 *
 */
public DTMNodeList(DTMIterator dtmIterator) {
  if (dtmIterator != null) {
    int pos = dtmIterator.getCurrentPos();
    try {
      m_iter=(DTMIterator)dtmIterator.cloneWithReset();
    } catch(CloneNotSupportedException cnse) {
      m_iter = dtmIterator;
    }
    m_iter.setShouldCacheNodes(true);
    m_iter.runTo(-1);
    m_iter.setCurrentPos(pos);
  }
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.xalan

/**
 * Public constructor: Wrap a DTMNodeList around an existing
 * and preconfigured DTMIterator
 *
 * WARNING: THIS HAS THE SIDE EFFECT OF ISSUING setShouldCacheNodes(true)
 * AGAINST THE DTMIterator.
 *
 */
public DTMNodeList(DTMIterator dtmIterator) {
  if (dtmIterator != null) {
    int pos = dtmIterator.getCurrentPos();
    try {
      m_iter=(DTMIterator)dtmIterator.cloneWithReset();
    } catch(CloneNotSupportedException cnse) {
      m_iter = dtmIterator;
    }
    m_iter.setShouldCacheNodes(true);
    m_iter.runTo(-1);
    m_iter.setCurrentPos(pos);
  }
}
origin: ibinti/bugvm

/**
 * Public constructor: Wrap a DTMNodeList around an existing
 * and preconfigured DTMIterator
 *
 * WARNING: THIS HAS THE SIDE EFFECT OF ISSUING setShouldCacheNodes(true)
 * AGAINST THE DTMIterator.
 *
 */
public DTMNodeList(DTMIterator dtmIterator) {
  if (dtmIterator != null) {
    int pos = dtmIterator.getCurrentPos();
    try {
      m_iter=(DTMIterator)dtmIterator.cloneWithReset();
    } catch(CloneNotSupportedException cnse) {
      m_iter = dtmIterator;
    }
    m_iter.setShouldCacheNodes(true);
    m_iter.runTo(-1);
    m_iter.setCurrentPos(pos);
  }
}
origin: com.mobidevelop.robovm/robovm-rt

/**
 * Public constructor: Wrap a DTMNodeList around an existing
 * and preconfigured DTMIterator
 *
 * WARNING: THIS HAS THE SIDE EFFECT OF ISSUING setShouldCacheNodes(true)
 * AGAINST THE DTMIterator.
 *
 */
public DTMNodeList(DTMIterator dtmIterator) {
  if (dtmIterator != null) {
    int pos = dtmIterator.getCurrentPos();
    try {
      m_iter=(DTMIterator)dtmIterator.cloneWithReset();
    } catch(CloneNotSupportedException cnse) {
      m_iter = dtmIterator;
    }
    m_iter.setShouldCacheNodes(true);
    m_iter.runTo(-1);
    m_iter.setCurrentPos(pos);
  }
}
origin: org.apache.xalan/com.springsource.org.apache.xalan

/**
 * Public constructor: Wrap a DTMNodeList around an existing
 * and preconfigured DTMIterator
 *
 * WARNING: THIS HAS THE SIDE EFFECT OF ISSUING setShouldCacheNodes(true)
 * AGAINST THE DTMIterator.
 *
 */
public DTMNodeList(DTMIterator dtmIterator) {
  if (dtmIterator != null) {
    int pos = dtmIterator.getCurrentPos();
    try {
      m_iter=(DTMIterator)dtmIterator.cloneWithReset();
    } catch(CloneNotSupportedException cnse) {
      m_iter = dtmIterator;
    }
    m_iter.setShouldCacheNodes(true);
    m_iter.runTo(-1);
    m_iter.setCurrentPos(pos);
  }
}
origin: org.apache.karaf.bundles/org.apache.karaf.bundles.xalan-2.7.1

/**
 * Public constructor: Wrap a DTMNodeList around an existing
 * and preconfigured DTMIterator
 *
 * WARNING: THIS HAS THE SIDE EFFECT OF ISSUING setShouldCacheNodes(true)
 * AGAINST THE DTMIterator.
 *
 */
public DTMNodeList(DTMIterator dtmIterator) {
  if (dtmIterator != null) {
    int pos = dtmIterator.getCurrentPos();
    try {
      m_iter=(DTMIterator)dtmIterator.cloneWithReset();
    } catch(CloneNotSupportedException cnse) {
      m_iter = dtmIterator;
    }
    m_iter.setShouldCacheNodes(true);
    m_iter.runTo(-1);
    m_iter.setCurrentPos(pos);
  }
}
origin: org.apache.karaf.bundles/org.apache.karaf.bundles.xalan-2.7.1

sourceNodes.setShouldCacheNodes(true);
sourceNodes.runTo(-1);
xctxt.pushContextNodeList(sourceNodes);
origin: MobiVM/robovm

sourceNodes.setShouldCacheNodes(true);
sourceNodes.runTo(-1);
xctxt.pushContextNodeList(sourceNodes);
origin: com.mobidevelop.robovm/robovm-rt

sourceNodes.setShouldCacheNodes(true);
sourceNodes.runTo(-1);
xctxt.pushContextNodeList(sourceNodes);
origin: ibinti/bugvm

sourceNodes.setShouldCacheNodes(true);
sourceNodes.runTo(-1);
xctxt.pushContextNodeList(sourceNodes);
origin: org.apache.xalan/com.springsource.org.apache.xalan

sourceNodes.setShouldCacheNodes(true);
sourceNodes.runTo(-1);
xctxt.pushContextNodeList(sourceNodes);
origin: com.gluonhq/robovm-rt

sourceNodes.setShouldCacheNodes(true);
sourceNodes.runTo(-1);
xctxt.pushContextNodeList(sourceNodes);
org.apache.xml.dtmDTMIteratorsetShouldCacheNodes

Javadoc

If setShouldCacheNodes(true) is called, then nodes will be cached, enabling random access, and giving the ability to do sorts and the like. They are not cached by default. %REVIEW% Shouldn't the other random-access methods throw an exception if they're called on a DTMIterator with this flag set false?

Popular methods of DTMIterator

  • getDTM
    Get an instance of a DTM that "owns" a node handle. Since a node iterator may be passed without a DT
  • nextNode
    Returns the next node in the set and advances the position of the iterator in the set. After a DTMIt
  • getCurrentPos
    Get the current position within the cached list, which is one less than the next nextNode() call wil
  • getLength
    The number of nodes in the list. The range of valid child node indices is 0 to length-1 inclusive.
  • getCurrentNode
    Get the current node in the iterator. Note that this differs from the DOM's NodeIterator, where the
  • allowDetachToRelease
    Specify if it's OK for detach to release the iterator for reuse.
  • clone
    Get a clone of this iterator, but don't reset the iteration in the process, so that it may be used f
  • cloneWithReset
    Get a cloned Iterator that is reset to the start of the iteration.
  • detach
    Detaches the DTMIterator from the set which it iterated over, releasing any computational resources
  • getAxis
    Returns the axis being iterated, if it is known.
  • getDTMManager
    Get an instance of the DTMManager. Since a node iterator may be passed without a DTMManager, this al
  • getExpandEntityReferences
    The value of this flag determines whether the children of entity reference nodes are visible to the
  • getDTMManager,
  • getExpandEntityReferences,
  • getRoot,
  • getWhatToShow,
  • isDocOrdered,
  • item,
  • previousNode,
  • reset,
  • runTo,
  • setCurrentPos

Popular in Java

  • Finding current android device location
  • getSystemService (Context)
  • setScale (BigDecimal)
  • onRequestPermissionsResult (Fragment)
  • PrintWriter (java.io)
    Wraps either an existing OutputStream or an existing Writerand provides convenience methods for prin
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • Connection (java.sql)
    A connection represents a link from a Java application to a database. All SQL statements and results
  • NoSuchElementException (java.util)
    Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
  • Scheduler (org.quartz)
    This is the main interface of a Quartz Scheduler. A Scheduler maintains a registry of org.quartz.Job
  • Logger (org.slf4j)
    The org.slf4j.Logger interface is the main user entry point of SLF4J API. It is expected that loggin

For IntelliJ IDEA,
Android Studio or Eclipse

  • Search for JavaScript code betaCodota IntelliJ IDEA pluginCodota Android Studio pluginCode IndexSign in
  • EnterpriseFAQAboutBlogContact Us
  • Plugin user guideTerms of usePrivacy policyCodeboxFind Usages
Add Codota to your IDE (free)