Examples of SymbolTable


Examples of org.apache.axis.wsdl.symbolTable.SymbolTable

                                return null;
                            else
                                return JavaUtils.getTextClassName(cls.getName());
                        }
                    };
            SymbolTable symbolTable = new SymbolTable(btm,
                                                      true, false, false);
            symbolTable.populateTypes(new URL(inputSchema), doc);

            // Walk the type/element entries in the symbol table and
            // add each one to the list of processed types.  This prevents
            // the types from being duplicated.
            Vector v = symbolTable.getTypes();
            for (int i=0; i < v.size(); i++) {
                TypeEntry te = (TypeEntry) v.elementAt(i);
                if (te instanceof org.apache.axis.wsdl.symbolTable.Element) {
                    addToElementsList(te.getQName());
                } else if (te instanceof Type) {
View Full Code Here

Examples of org.apache.axis.wsdl.symbolTable.SymbolTable

                            return null;
                        else
                            return JavaUtils.getTextClassName(cls.getName());
                    }
                };
        SymbolTable symbolTable = new SymbolTable(btm,
                                                  true, false, false);
        symbolTable.populate(null, doc);

        // Walk the type/element entries in the symbol table and
        // add each one to the list of processed types.  This prevents
        // the types from being duplicated.
        Vector v = symbolTable.getTypes();
        for (int i=0; i < v.size(); i++) {
            TypeEntry te = (TypeEntry) v.elementAt(i);
            if (te instanceof org.apache.axis.wsdl.symbolTable.Element) {
                addToElementsList(te.getQName());
            } else if (te instanceof Type) {
View Full Code Here

Examples of org.apache.axis.wsdl.symbolTable.SymbolTable

                }
            }
        }

        Service service = this.getService();
        SymbolTable symbolTable = service.getWSDLParser().getSymbolTable();
        BindingEntry bEntry = symbolTable.getBindingEntry(binding.getQName());
        Parameters parameters = bEntry.getParameters(bop.getOperation());

        // loop over paramters and set up in/out params
        for (int j = 0; j < parameters.list.size(); ++j) {
            Parameter p = (Parameter) parameters.list.get(j);
            // Get the QName representing the parameter type
            QName paramType = Utils.getXSIType(p);
            this.addParameter( p.getQName(), paramType, modes[p.getMode()]);
        }

        // set output type
        if (parameters.returnParam != null) {
            // Get the QName for the return Type
            QName returnType = Utils.getXSIType(parameters.returnParam);
            QName returnQName = parameters.returnParam.getQName();

            // Get the javaType
            String javaType = null;
            if (parameters.returnParam.getMIMEType() != null) {
                javaType = "javax.activation.DataHandler";
            }
            else {
                javaType = parameters.returnParam.getType().getName();
            }
            if (javaType == null) {
                javaType = "";
            }
            else {
                javaType = javaType + ".class";
            }
            this.setReturnType(returnType);
            try {
                this.setReturnClass(ClassUtils.forName(javaType));
            } catch (Exception e){
                //TODO: ???
            }
            this.setReturnQName(returnQName);
        }
        else {
            this.setReturnType(org.apache.axis.encoding.XMLType.AXIS_VOID);
        }
       
        boolean hasMIME = Utils.hasMIME(bEntry, bop);
        Use use = bEntry.getInputBodyType(bop.getOperation());
        Style style = Style.getStyle(opStyle, bEntry.getBindingStyle());
        if (use == Use.LITERAL) {
            // Turn off encoding
            setEncodingStyle(null);
            // turn off XSI types
            setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);
        }
        if (hasMIME || use == Use.LITERAL) {
            // If it is literal, turn off multirefs.
            //
            // If there are any MIME types, turn off multirefs.
            // I don't know enough about the guts to know why
            // attachments don't work with multirefs, but they don't.
            setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
        }

        if (style == Style.DOCUMENT && symbolTable.isWrapped()) {
            style = Style.WRAPPED;
        }

        // Operation name
        if (style == Style.WRAPPED) {
View Full Code Here

Examples of org.apache.jackrabbit.vault.util.xml.xerces.util.SymbolTable

    public void setNamespaces(boolean namespaces) {
        fNamespaces = namespaces;
        if (fNSBinder == null) {
            fNSBinder = new NamespaceSupport();
            fLocalNSBinder = new NamespaceSupport();
            fSymbolTable = new SymbolTable();
        }
    }
View Full Code Here

Examples of org.apache.uima.internal.util.SymbolTable

  }

  public TypeSystemImpl() {
    // Changed numbering to start at 1. Hope this doesn't break
    // anything. If it does, I know who's fault it is...
    this.typeNameST = new SymbolTable(1);
    this.featureNameST = new SymbolTable(1);
    this.featureMap = new StringToIntMap();
    // In each Vector, add null as first element, since we start
    // counting at 1.
    this.tree = new ArrayList<IntVector>();
    this.tree.add(null);
View Full Code Here

Examples of org.apache.xerces.util.SymbolTable

    /**
     * Default Constructor.
     * Creates an XMLDocumentParser with its own SymbolTable and GrammarPool.
     */
    protected XMLDocumentParser() {
        this(new SymbolTable(), new GrammarPool());
    } // <init>()
View Full Code Here

Examples of org.apache.xindice.xml.SymbolTable

    *
    * @param buffer The Hashtable
    * @return The Document
    */
   public Document convertToDocument(Hashtable buffer) {
      SymbolTable s = getSymbols(buffer);
      return new DocumentImpl((byte []) buffer.get("document"), s, null);
   }
View Full Code Here

Examples of org.apache.xindice.xml.SymbolTable

        // lastMod = ((Long) buffer.get("timestamp")).longValue();

         Document doc = new DocumentImpl((byte []) buffer.get("symbols"), hcSyms, null);

         if ( syms == null ) {
            syms = new SymbolTable();
         }

         synchronized(syms) {
            syms.streamFromXML(doc.getDocumentElement());
         }
View Full Code Here

Examples of org.apache.xindice.xml.SymbolTable

            data = cDoc.getDataBytes();
            pos = cDoc.getDataPos();
            len = cDoc.getDataLen();
         }
         else {
            symbols = new SymbolTable();
            data = DOMCompressor.Compress(doc, symbols);
            len = data.length;
         }
      }
      catch ( Exception e ) {
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);

            xci.readSignature();      // Skip The Signature
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.