Java Code Examples for com.sun.org.apache.xml.internal.dtm.DTMManager#newInstance()

The following examples show how to use com.sun.org.apache.xml.internal.dtm.DTMManager#newInstance() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: XPathContext.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
private void init(boolean overrideDefaultParser) {
  m_prefixResolvers.push(null);
  m_currentNodes.push(DTM.NULL);
  m_currentExpressionNodes.push(DTM.NULL);
  m_saxLocations.push(null);
  m_overrideDefaultParser = overrideDefaultParser;
  m_dtmManager = DTMManager.newInstance(
                 com.sun.org.apache.xpath.internal.objects.XMLStringFactoryImpl.getFactory()
                 );
}
 
Example 2
Source File: XPathContext.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Reset for new run.
 */
public void reset()
{
  releaseDTMXRTreeFrags();
      // These couldn't be disposed of earlier (see comments in release()); zap them now.
      if(m_rtfdtm_stack!=null)
               for (java.util.Enumeration e = m_rtfdtm_stack.elements() ; e.hasMoreElements() ;)
                      m_dtmManager.release((DTM)e.nextElement(), true);

  m_rtfdtm_stack=null; // drop our references too
  m_which_rtfdtm=-1;

  if(m_global_rtfdtm!=null)
                      m_dtmManager.release(m_global_rtfdtm,true);
  m_global_rtfdtm=null;


  m_dtmManager = DTMManager.newInstance(
                 com.sun.org.apache.xpath.internal.objects.XMLStringFactoryImpl.getFactory()
                 );

  m_saxLocations.removeAllElements();
      m_axesIteratorStack.removeAllElements();
      m_contextNodeLists.removeAllElements();
      m_currentExpressionNodes.removeAllElements();
      m_currentNodes.removeAllElements();
      m_iteratorRoots.RemoveAllNoClear();
      m_predicatePos.removeAllElements();
      m_predicateRoots.RemoveAllNoClear();
      m_prefixResolvers.removeAllElements();

      m_prefixResolvers.push(null);
  m_currentNodes.push(DTM.NULL);
  m_currentExpressionNodes.push(DTM.NULL);
  m_saxLocations.push(null);
}
 
Example 3
Source File: XPathContext.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
private void init(boolean useServicesMechanism) {
  m_prefixResolvers.push(null);
  m_currentNodes.push(DTM.NULL);
  m_currentExpressionNodes.push(DTM.NULL);
  m_saxLocations.push(null);
  m_useServicesMechanism = useServicesMechanism;
  m_dtmManager = DTMManager.newInstance(
                 com.sun.org.apache.xpath.internal.objects.XMLStringFactoryImpl.getFactory()
                 );
}
 
Example 4
Source File: XPathContext.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Reset for new run.
 */
public void reset()
{
  releaseDTMXRTreeFrags();
      // These couldn't be disposed of earlier (see comments in release()); zap them now.
      if(m_rtfdtm_stack!=null)
               for (java.util.Enumeration e = m_rtfdtm_stack.elements() ; e.hasMoreElements() ;)
                      m_dtmManager.release((DTM)e.nextElement(), true);

  m_rtfdtm_stack=null; // drop our references too
  m_which_rtfdtm=-1;

  if(m_global_rtfdtm!=null)
                      m_dtmManager.release(m_global_rtfdtm,true);
  m_global_rtfdtm=null;


  m_dtmManager = DTMManager.newInstance(
                 com.sun.org.apache.xpath.internal.objects.XMLStringFactoryImpl.getFactory()
                 );

  m_saxLocations.removeAllElements();
      m_axesIteratorStack.removeAllElements();
      m_contextNodeLists.removeAllElements();
      m_currentExpressionNodes.removeAllElements();
      m_currentNodes.removeAllElements();
      m_iteratorRoots.RemoveAllNoClear();
      m_predicatePos.removeAllElements();
      m_predicateRoots.RemoveAllNoClear();
      m_prefixResolvers.removeAllElements();

      m_prefixResolvers.push(null);
  m_currentNodes.push(DTM.NULL);
  m_currentExpressionNodes.push(DTM.NULL);
  m_saxLocations.push(null);
}
 
Example 5
Source File: XPathContext.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
private void init(boolean useServicesMechanism) {
  m_prefixResolvers.push(null);
  m_currentNodes.push(DTM.NULL);
  m_currentExpressionNodes.push(DTM.NULL);
  m_saxLocations.push(null);
  m_useServicesMechanism = useServicesMechanism;
  m_dtmManager = DTMManager.newInstance(
                 com.sun.org.apache.xpath.internal.objects.XMLStringFactoryImpl.getFactory()
                 );
}
 
Example 6
Source File: XPathContext.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Reset for new run.
 */
public void reset()
{
  releaseDTMXRTreeFrags();
      // These couldn't be disposed of earlier (see comments in release()); zap them now.
      if(m_rtfdtm_stack!=null)
               for (java.util.Enumeration e = m_rtfdtm_stack.elements() ; e.hasMoreElements() ;)
                      m_dtmManager.release((DTM)e.nextElement(), true);

  m_rtfdtm_stack=null; // drop our references too
  m_which_rtfdtm=-1;

  if(m_global_rtfdtm!=null)
                      m_dtmManager.release(m_global_rtfdtm,true);
  m_global_rtfdtm=null;


  m_dtmManager = DTMManager.newInstance(
                 com.sun.org.apache.xpath.internal.objects.XMLStringFactoryImpl.getFactory()
                 );

  m_saxLocations.removeAllElements();
      m_axesIteratorStack.removeAllElements();
      m_contextNodeLists.removeAllElements();
      m_currentExpressionNodes.removeAllElements();
      m_currentNodes.removeAllElements();
      m_iteratorRoots.RemoveAllNoClear();
      m_predicatePos.removeAllElements();
      m_predicateRoots.RemoveAllNoClear();
      m_prefixResolvers.removeAllElements();

      m_prefixResolvers.push(null);
  m_currentNodes.push(DTM.NULL);
  m_currentExpressionNodes.push(DTM.NULL);
  m_saxLocations.push(null);
}
 
Example 7
Source File: XPathContext.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
private void init(boolean useServicesMechanism) {
  m_prefixResolvers.push(null);
  m_currentNodes.push(DTM.NULL);
  m_currentExpressionNodes.push(DTM.NULL);
  m_saxLocations.push(null);
  m_useServicesMechanism = useServicesMechanism;
  m_dtmManager = DTMManager.newInstance(
                 com.sun.org.apache.xpath.internal.objects.XMLStringFactoryImpl.getFactory()
                 );
}
 
Example 8
Source File: XPathContext.java    From Bytecoder with Apache License 2.0 5 votes vote down vote up
/**
 * Reset for new run.
 */
public void reset()
{
  releaseDTMXRTreeFrags();
  // These couldn't be disposed of earlier (see comments in release()); zap them now.
  if(m_rtfdtm_stack!=null) {
      for (DTM dtm : m_rtfdtm_stack) {
          m_dtmManager.release(dtm, true);
      }
  }

  m_rtfdtm_stack=null; // drop our references too
  m_which_rtfdtm=-1;

  if(m_global_rtfdtm!=null)
                      m_dtmManager.release(m_global_rtfdtm,true);
  m_global_rtfdtm=null;


  m_dtmManager = DTMManager.newInstance(
                 com.sun.org.apache.xpath.internal.objects.XMLStringFactoryImpl.getFactory()
                 );

  m_saxLocations.removeAllElements();
  m_axesIteratorStack.removeAllElements();
  m_contextNodeLists.removeAllElements();
  m_currentExpressionNodes.removeAllElements();
  m_currentNodes.removeAllElements();
  m_iteratorRoots.RemoveAllNoClear();
  m_predicatePos.removeAllElements();
  m_predicateRoots.RemoveAllNoClear();
  m_prefixResolvers.removeAllElements();

  m_prefixResolvers.push(null);
  m_currentNodes.push(DTM.NULL);
  m_currentExpressionNodes.push(DTM.NULL);
  m_saxLocations.push(null);
}
 
Example 9
Source File: XPathContext.java    From Bytecoder with Apache License 2.0 5 votes vote down vote up
private void init(boolean overrideDefaultParser) {
  m_prefixResolvers.push(null);
  m_currentNodes.push(DTM.NULL);
  m_currentExpressionNodes.push(DTM.NULL);
  m_saxLocations.push(null);
  m_overrideDefaultParser = overrideDefaultParser;
  m_dtmManager = DTMManager.newInstance(
                 com.sun.org.apache.xpath.internal.objects.XMLStringFactoryImpl.getFactory()
                 );
}
 
Example 10
Source File: XPathContext.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Reset for new run.
 */
public void reset()
{
  releaseDTMXRTreeFrags();
      // These couldn't be disposed of earlier (see comments in release()); zap them now.
      if(m_rtfdtm_stack!=null)
               for (java.util.Enumeration e = m_rtfdtm_stack.elements() ; e.hasMoreElements() ;)
                      m_dtmManager.release((DTM)e.nextElement(), true);

  m_rtfdtm_stack=null; // drop our references too
  m_which_rtfdtm=-1;

  if(m_global_rtfdtm!=null)
                      m_dtmManager.release(m_global_rtfdtm,true);
  m_global_rtfdtm=null;


  m_dtmManager = DTMManager.newInstance(
                 com.sun.org.apache.xpath.internal.objects.XMLStringFactoryImpl.getFactory()
                 );

  m_saxLocations.removeAllElements();
      m_axesIteratorStack.removeAllElements();
      m_contextNodeLists.removeAllElements();
      m_currentExpressionNodes.removeAllElements();
      m_currentNodes.removeAllElements();
      m_iteratorRoots.RemoveAllNoClear();
      m_predicatePos.removeAllElements();
      m_predicateRoots.RemoveAllNoClear();
      m_prefixResolvers.removeAllElements();

      m_prefixResolvers.push(null);
  m_currentNodes.push(DTM.NULL);
  m_currentExpressionNodes.push(DTM.NULL);
  m_saxLocations.push(null);
}
 
Example 11
Source File: XPathContext.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Reset for new run.
 */
public void reset()
{
  releaseDTMXRTreeFrags();
      // These couldn't be disposed of earlier (see comments in release()); zap them now.
      if(m_rtfdtm_stack!=null)
               for (java.util.Enumeration e = m_rtfdtm_stack.elements() ; e.hasMoreElements() ;)
                      m_dtmManager.release((DTM)e.nextElement(), true);

  m_rtfdtm_stack=null; // drop our references too
  m_which_rtfdtm=-1;

  if(m_global_rtfdtm!=null)
                      m_dtmManager.release(m_global_rtfdtm,true);
  m_global_rtfdtm=null;


  m_dtmManager = DTMManager.newInstance(
                 com.sun.org.apache.xpath.internal.objects.XMLStringFactoryImpl.getFactory()
                 );

  m_saxLocations.removeAllElements();
      m_axesIteratorStack.removeAllElements();
      m_contextNodeLists.removeAllElements();
      m_currentExpressionNodes.removeAllElements();
      m_currentNodes.removeAllElements();
      m_iteratorRoots.RemoveAllNoClear();
      m_predicatePos.removeAllElements();
      m_predicateRoots.RemoveAllNoClear();
      m_prefixResolvers.removeAllElements();

      m_prefixResolvers.push(null);
  m_currentNodes.push(DTM.NULL);
  m_currentExpressionNodes.push(DTM.NULL);
  m_saxLocations.push(null);
}
 
Example 12
Source File: XPathContext.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Reset for new run.
 */
public void reset()
{
  releaseDTMXRTreeFrags();
      // These couldn't be disposed of earlier (see comments in release()); zap them now.
      if(m_rtfdtm_stack!=null)
               for (java.util.Enumeration e = m_rtfdtm_stack.elements() ; e.hasMoreElements() ;)
                      m_dtmManager.release((DTM)e.nextElement(), true);

  m_rtfdtm_stack=null; // drop our references too
  m_which_rtfdtm=-1;

  if(m_global_rtfdtm!=null)
                      m_dtmManager.release(m_global_rtfdtm,true);
  m_global_rtfdtm=null;


  m_dtmManager = DTMManager.newInstance(
                 com.sun.org.apache.xpath.internal.objects.XMLStringFactoryImpl.getFactory()
                 );

  m_saxLocations.removeAllElements();
      m_axesIteratorStack.removeAllElements();
      m_contextNodeLists.removeAllElements();
      m_currentExpressionNodes.removeAllElements();
      m_currentNodes.removeAllElements();
      m_iteratorRoots.RemoveAllNoClear();
      m_predicatePos.removeAllElements();
      m_predicateRoots.RemoveAllNoClear();
      m_prefixResolvers.removeAllElements();

      m_prefixResolvers.push(null);
  m_currentNodes.push(DTM.NULL);
  m_currentExpressionNodes.push(DTM.NULL);
  m_saxLocations.push(null);
}
 
Example 13
Source File: XPathContext.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
private void init(boolean overrideDefaultParser) {
  m_prefixResolvers.push(null);
  m_currentNodes.push(DTM.NULL);
  m_currentExpressionNodes.push(DTM.NULL);
  m_saxLocations.push(null);
  m_overrideDefaultParser = overrideDefaultParser;
  m_dtmManager = DTMManager.newInstance(
                 com.sun.org.apache.xpath.internal.objects.XMLStringFactoryImpl.getFactory()
                 );
}
 
Example 14
Source File: XPathContext.java    From JDKSourceCode1.8 with MIT License 5 votes vote down vote up
/**
 * Reset for new run.
 */
public void reset()
{
  releaseDTMXRTreeFrags();
      // These couldn't be disposed of earlier (see comments in release()); zap them now.
      if(m_rtfdtm_stack!=null)
               for (java.util.Enumeration e = m_rtfdtm_stack.elements() ; e.hasMoreElements() ;)
                      m_dtmManager.release((DTM)e.nextElement(), true);

  m_rtfdtm_stack=null; // drop our references too
  m_which_rtfdtm=-1;

  if(m_global_rtfdtm!=null)
                      m_dtmManager.release(m_global_rtfdtm,true);
  m_global_rtfdtm=null;


  m_dtmManager = DTMManager.newInstance(
                 com.sun.org.apache.xpath.internal.objects.XMLStringFactoryImpl.getFactory()
                 );

  m_saxLocations.removeAllElements();
      m_axesIteratorStack.removeAllElements();
      m_contextNodeLists.removeAllElements();
      m_currentExpressionNodes.removeAllElements();
      m_currentNodes.removeAllElements();
      m_iteratorRoots.RemoveAllNoClear();
      m_predicatePos.removeAllElements();
      m_predicateRoots.RemoveAllNoClear();
      m_prefixResolvers.removeAllElements();

      m_prefixResolvers.push(null);
  m_currentNodes.push(DTM.NULL);
  m_currentExpressionNodes.push(DTM.NULL);
  m_saxLocations.push(null);
}
 
Example 15
Source File: XPathContext.java    From JDKSourceCode1.8 with MIT License 5 votes vote down vote up
private void init(boolean overrideDefaultParser) {
  m_prefixResolvers.push(null);
  m_currentNodes.push(DTM.NULL);
  m_currentExpressionNodes.push(DTM.NULL);
  m_saxLocations.push(null);
  m_overrideDefaultParser = overrideDefaultParser;
  m_dtmManager = DTMManager.newInstance(
                 com.sun.org.apache.xpath.internal.objects.XMLStringFactoryImpl.getFactory()
                 );
}
 
Example 16
Source File: XPathContext.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Reset for new run.
 */
public void reset()
{
  releaseDTMXRTreeFrags();
      // These couldn't be disposed of earlier (see comments in release()); zap them now.
      if(m_rtfdtm_stack!=null)
               for (java.util.Enumeration e = m_rtfdtm_stack.elements() ; e.hasMoreElements() ;)
                      m_dtmManager.release((DTM)e.nextElement(), true);

  m_rtfdtm_stack=null; // drop our references too
  m_which_rtfdtm=-1;

  if(m_global_rtfdtm!=null)
                      m_dtmManager.release(m_global_rtfdtm,true);
  m_global_rtfdtm=null;


  m_dtmManager = DTMManager.newInstance(
                 com.sun.org.apache.xpath.internal.objects.XMLStringFactoryImpl.getFactory()
                 );

  m_saxLocations.removeAllElements();
      m_axesIteratorStack.removeAllElements();
      m_contextNodeLists.removeAllElements();
      m_currentExpressionNodes.removeAllElements();
      m_currentNodes.removeAllElements();
      m_iteratorRoots.RemoveAllNoClear();
      m_predicatePos.removeAllElements();
      m_predicateRoots.RemoveAllNoClear();
      m_prefixResolvers.removeAllElements();

      m_prefixResolvers.push(null);
  m_currentNodes.push(DTM.NULL);
  m_currentExpressionNodes.push(DTM.NULL);
  m_saxLocations.push(null);
}
 
Example 17
Source File: XPathContext.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
private void init(boolean useServicesMechanism) {
  m_prefixResolvers.push(null);
  m_currentNodes.push(DTM.NULL);
  m_currentExpressionNodes.push(DTM.NULL);
  m_saxLocations.push(null);
  m_useServicesMechanism = useServicesMechanism;
  m_dtmManager = DTMManager.newInstance(
                 com.sun.org.apache.xpath.internal.objects.XMLStringFactoryImpl.getFactory()
                 );
}
 
Example 18
Source File: XPathContext.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Reset for new run.
 */
public void reset()
{
  releaseDTMXRTreeFrags();
      // These couldn't be disposed of earlier (see comments in release()); zap them now.
      if(m_rtfdtm_stack!=null)
               for (java.util.Enumeration e = m_rtfdtm_stack.elements() ; e.hasMoreElements() ;)
                      m_dtmManager.release((DTM)e.nextElement(), true);

  m_rtfdtm_stack=null; // drop our references too
  m_which_rtfdtm=-1;

  if(m_global_rtfdtm!=null)
                      m_dtmManager.release(m_global_rtfdtm,true);
  m_global_rtfdtm=null;


  m_dtmManager = DTMManager.newInstance(
                 com.sun.org.apache.xpath.internal.objects.XMLStringFactoryImpl.getFactory()
                 );

  m_saxLocations.removeAllElements();
      m_axesIteratorStack.removeAllElements();
      m_contextNodeLists.removeAllElements();
      m_currentExpressionNodes.removeAllElements();
      m_currentNodes.removeAllElements();
      m_iteratorRoots.RemoveAllNoClear();
      m_predicatePos.removeAllElements();
      m_predicateRoots.RemoveAllNoClear();
      m_prefixResolvers.removeAllElements();

      m_prefixResolvers.push(null);
  m_currentNodes.push(DTM.NULL);
  m_currentExpressionNodes.push(DTM.NULL);
  m_saxLocations.push(null);
}
 
Example 19
Source File: XPathContext.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
private void init(boolean overrideDefaultParser) {
  m_prefixResolvers.push(null);
  m_currentNodes.push(DTM.NULL);
  m_currentExpressionNodes.push(DTM.NULL);
  m_saxLocations.push(null);
  m_overrideDefaultParser = overrideDefaultParser;
  m_dtmManager = DTMManager.newInstance(
                 com.sun.org.apache.xpath.internal.objects.XMLStringFactoryImpl.getFactory()
                 );
}
 
Example 20
Source File: XPathContext.java    From jdk1.8-source-analysis with Apache License 2.0 5 votes vote down vote up
/**
 * Reset for new run.
 */
public void reset()
{
  releaseDTMXRTreeFrags();
      // These couldn't be disposed of earlier (see comments in release()); zap them now.
      if(m_rtfdtm_stack!=null)
               for (java.util.Enumeration e = m_rtfdtm_stack.elements() ; e.hasMoreElements() ;)
                      m_dtmManager.release((DTM)e.nextElement(), true);

  m_rtfdtm_stack=null; // drop our references too
  m_which_rtfdtm=-1;

  if(m_global_rtfdtm!=null)
                      m_dtmManager.release(m_global_rtfdtm,true);
  m_global_rtfdtm=null;


  m_dtmManager = DTMManager.newInstance(
                 com.sun.org.apache.xpath.internal.objects.XMLStringFactoryImpl.getFactory()
                 );

  m_saxLocations.removeAllElements();
      m_axesIteratorStack.removeAllElements();
      m_contextNodeLists.removeAllElements();
      m_currentExpressionNodes.removeAllElements();
      m_currentNodes.removeAllElements();
      m_iteratorRoots.RemoveAllNoClear();
      m_predicatePos.removeAllElements();
      m_predicateRoots.RemoveAllNoClear();
      m_prefixResolvers.removeAllElements();

      m_prefixResolvers.push(null);
  m_currentNodes.push(DTM.NULL);
  m_currentExpressionNodes.push(DTM.NULL);
  m_saxLocations.push(null);
}