Examples of DBDocument


Examples of org.apache.xindice.xml.dom.DBDocument

      private void prepareNextNode() {
         node = null;
         while ( keyPos < keySet.length ) {
            try {
//System.out.println("  Key: "+keySet[keyPos]);
               DBDocument d = (DBDocument)context.getDocument(keySet[keyPos++]);
               if ( d == null )
                  continue;

               Node n = d.getDocumentElement();

               XPathContext xpc = new XPathContext();
               PrefixResolver pfx;
               if ( pr == null ) {
                  pfx = new PrefixResolverDefault(d.getDocumentElement());
                  xp = new XPath(query, null, pfx, XPath.SELECT, errors);
               }
               else {
                  pfx = pr;
                  if ( xp == null )
View Full Code Here

Examples of org.apache.xindice.xml.dom.DBDocument

   private void putDocument(Key key, Document document /* TODO used this variable , boolean create*/) throws DBException {
      checkFiler(FaultCodes.COL_NO_FILER);

      if ( document instanceof DBDocument ) {
         // This is a shitty shitty hack... Kill immediately
         DBDocument dbDoc = (DBDocument)document;
         if ( dbDoc.getSource() == null )
            dbDoc.setSource(new NodeSource(this, key));
      }

      Value value =  null;
      if ( compressed ) {
         try {
View Full Code Here

Examples of org.apache.xindice.xml.dom.DBDocument

        checkFiler(FaultCodes.COL_NO_FILER);

        if (document instanceof DBDocument) {
            // FIXME: This is a shitty shitty hack... Kill immediately
            DBDocument dbDoc = (DBDocument) document;
            if (dbDoc.getSource() == null) {
                dbDoc.setSource(new NodeSource(this, key));
            }
        }

        /*
         * The possibilities are restricted because only XML
View Full Code Here

Examples of org.apache.xindice.xml.dom.DBDocument

    {
      node = null;

      while (keyPos < keySet.length)
      {
        DBDocument d = (DBDocument) context.getDocument(keySet[keyPos++]);
        if (d == null)
        {
          continue;
        }

        Node n = d.getDocumentElement();

        XPathContext xpc = new XPathContext();
        PrefixResolver pfx;
        if (pr == null)
        {
          pfx = new PrefixResolverDefault(d.getDocumentElement());
          xp = new XPath(query, null, pfx, XPath.SELECT, errors);
        }
        else
        {
          pfx = pr;
View Full Code Here

Examples of org.apache.xindice.xml.dom.DBDocument

                Object entry = context.getEntry(key);
                if (!(entry instanceof DBDocument)) {
                    continue;
                }

                DBDocument d = (DBDocument) entry;

                final Node n = d.getDocumentElement();
                if (n == null) {
                    if (log.isInfoEnabled()) {
                        log.info("Document " + context.getCanonicalDocumentName(key+ " is empty, skipping.");
                    }
                    continue;
                }

                XPathContext xpc = new XPathContext();
                PrefixResolver pfx;
                if (pr == null) {
                    pfx = new PrefixResolverDefault(d.getDocumentElement());
                    xp = new XPath(query, null, pfx, XPath.SELECT, errors);
                } else {
                    pfx = pr;
                    if (xp == null) {
                        xp = new XPath(query, null, pfx, XPath.SELECT, errors);
View Full Code Here

Examples of org.apache.xindice.xml.dom.DBDocument

        checkFiler(FaultCodes.COL_NO_FILER);

        if (document instanceof DBDocument) {
            // FIXME: This is a shitty shitty hack... Kill immediately
            DBDocument dbDoc = (DBDocument) document;
            if (dbDoc.getSource() == null) {
                dbDoc.setSource(new NodeSource(this, key));
            }
        }

        /*
         * The possibilities are restricted because only XML
View Full Code Here

Examples of org.apache.xindice.xml.dom.DBDocument

                    Entry entry = context.getEntry(keySet[keyPos++]);
                    if (entry == null || entry.getEntryType() != Entry.DOCUMENT) {
                        continue;
                    }

                    DBDocument d = (DBDocument) entry.getValue();
                    if (d != null) {
                        nextNode = d.getDocumentElement();
                    }
                }
            }
View Full Code Here

Examples of org.apache.xindice.xml.dom.DBDocument

        checkFiler(FaultCodes.COL_NO_FILER);

        if (document instanceof DBDocument) {
            // FIXME: This is a shitty shitty hack... Kill immediately
            DBDocument dbDoc = (DBDocument) document;
            if (dbDoc.getSource() == null) {
                dbDoc.setSource(new NodeSource(this, key));
            }
        }

        /*
         * The possibilities are restricted because only XML
View Full Code Here

Examples of org.apache.xindice.xml.dom.DBDocument

                Entry entry = context.getEntry(key);
                if (entry.getEntryType() != Entry.DOCUMENT) {
                    continue;
                }

                DBDocument d = (DBDocument) entry.getValue();

                final Node n = d.getDocumentElement();
                if (n == null) {
                    if (log.isInfoEnabled()) {
                        log.info("Document " + context.getCanonicalDocumentName(key+ " is empty, skipping.");
                    }
                    continue;
                }

                XPathResolverContext xpc = new XPathResolverContext(parameters);
                PrefixResolver pfx;
                if (pr == null) {
                    pfx = new PrefixResolverDefault(d.getDocumentElement());
                    xp = createXPath(pfx);
                } else {
                    pfx = pr;
                    if (xp == null) {
                        xp = createXPath(pfx);
View Full Code Here

Examples of org.apache.xindice.xml.dom.DBDocument

        checkFiler(FaultCodes.COL_NO_FILER);

        if (document instanceof DBDocument) {
            // FIXME: This is a shitty shitty hack... Kill immediately
            DBDocument dbDoc = (DBDocument) document;
            if (dbDoc.getSource() == null) {
                dbDoc.setSource(new NodeSource(this, key));
            }
        }

        /*
         * The possibilities are restricted because only XML
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.