Examples of SymbolTable


Examples of org.apache.xindice.xml.SymbolTable

         loaded = true;

      try {
         if ( data != null ) {
            DocumentImpl doc = (DocumentImpl)getOwnerDocument();
            SymbolTable st = doc.getSymbols();

            ByteArrayInput bis = new ByteArrayInput(data, pos, len);
            XMLCompressedInput xci = new XMLCompressedInput(bis, st);

            xci.readSignature(); // Skip The Signature
View Full Code Here

Examples of org.apache.xindice.xml.SymbolTable

         loaded = true;

      try {
         if ( data != null ) {
            DocumentImpl doc = (DocumentImpl)getOwnerDocument();
            SymbolTable st = doc.getSymbols();

            ByteArrayInput bis = new ByteArrayInput(data, pos, len);
            XMLCompressedInput in = new XMLCompressedInput(bis, st);

            in.readSignature();   // Skip The Signature
            in.readContentSize(); // Skip The Content Size

            symbolID = in.readShort();
            SymbolTable.SymbolInfo si = st.getSymbolInfo(symbolID);
            nodeName = si.getQName();
            nsURI = si.getNamespaceURI();

            loadChildren(st);
         }
View Full Code Here

Examples of org.apache.xindice.xml.SymbolTable

         loaded = true;

      try {
         if ( data != null ) {
            DocumentImpl doc = (DocumentImpl)getOwnerDocument();
            SymbolTable st = doc.getSymbols();

            ByteArrayInput bis = new ByteArrayInput(data, pos, len);
            XMLCompressedInput xci = new XMLCompressedInput(bis, st);

            byte signature = xci.readByte();
            byte entityType = (byte)(signature & 0x1F);
            switch ( entityType ) {

               case Signatures.EntUnknown:
                  nodeName = null;
                  break;

               case Signatures.EntDefined:
                  symbolID = xci.readShort();
                  nodeName = st.getName(symbolID);
                  break;

               case Signatures.EntAmp:
                  nodeName = "&";
                  break;
View Full Code Here

Examples of org.apache.xindice.xml.SymbolTable

         }
      }

      if ( compress ) {
         if ( symbols == null )
            symbols = new SymbolTable();
         data = DOMCompressor.Compress(doc, symbols);
         pos = 0;
         len = data.length;
      }
View Full Code Here

Examples of org.apache.xindice.xml.SymbolTable

         // Symbol Table Setup
         Configuration symConfig = config.getChild(SYMBOLS);
         internalSymbols = (symConfig != null);
         if ( internalSymbols ) {
            try {
               symbols = new SymbolTable(symConfig.getElement());
            }
            catch ( Exception e ) {
               if (log.isDebugEnabled()) {
                  log.debug("No message", e);
               }
View Full Code Here

Examples of org.apache.xindice.xml.SymbolTable

      Document doc = null;
      if ( v instanceof Document )
         doc = (Document)v;
      else if ( v instanceof byte[] ) {
         try {
            SymbolTable s = col.getSymbols();
            NodeSource ns = new NodeSource(col, key);
            doc = new DocumentImpl((byte[])v, s, ns);
         }
         catch ( Exception e ) {
         }
View Full Code Here

Examples of org.apache.xindice.xml.SymbolTable

   public SymbolTable loadSymbols(Collection collection) throws DBException  {
      String name = getSymbolTableName(collection);

      Collection symCol = getCollection(SYMBOLS);

      SymbolTable symbols = (SymbolTable)symCol.getObject(name);
      if ( symbols == null ) {
         symbols = new SymbolTable();
         saveSymbols(collection, symbols);
      }
      return symbols;
   }
View Full Code Here

Examples of org.datanucleus.query.symbol.SymbolTable

     * @return The compiled query
     */
    public QueryCompilation compile(Map parameters, Map subqueryMap)
    {
        parser = new JPQLParser(null, parameters); // TODO Add options
        symtbl = new SymbolTable(clr);
        symtbl.setSymbolResolver(this);
        if (parentCompiler != null)
        {
            symtbl.setParentSymbolTable(parentCompiler.symtbl);
        }
View Full Code Here

Examples of org.datanucleus.query.symbol.SymbolTable

        else
        {
            parseOptions.put("implicitParameters", true);
        }
        parser = new JDOQLParser(parseOptions);
        symtbl = new SymbolTable(clr);
        symtbl.setSymbolResolver(this);
        if (parentCompiler != null)
        {
            symtbl.setParentSymbolTable(parentCompiler.symtbl);
        }
View Full Code Here

Examples of org.datanucleus.query.symbol.SymbolTable

        }

        if (namedParametersSupplied)
        {
            // Check for missing named parameters
            SymbolTable symtbl = compilation.getSymbolTable();
            Collection<String> symNames = symtbl.getSymbolNames();
            if (symNames != null && !symNames.isEmpty())
            {
                for (String symName : symNames)
                {
                    Symbol sym = symtbl.getSymbol(symName);
                    if (sym.getType() == Symbol.PARAMETER)
                    {
                        if (!parameterValues.containsKey(symName))
                        {
                            throw new QueryInvalidParametersException(LOCALISER.msg("021119", symName));
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.