Examples of Part


Examples of javax.wsdl.Part

        if (input != null) {
            Message msg = input.getMessage();
            Iterator i = msg.getOrderedParts(null).iterator();
            while (i.hasNext()) {
                Part part = (Part) i.next();
                XmlSchemaType schemaType = null;
                schemaType = lookUpType(part, xmlSchemaList);
                if (part.getElementName() != null) {
                    XmlSchemaElement el = getElement(part, xmlSchemaList);
                    addParam(wsdlToCorbaBinding, schemaType, part.getName(),
                            part.getElementName(), el.isNillable(), inputs);
                } else if (part.getTypeName() != null) {
                    addParam(wsdlToCorbaBinding, schemaType, part.getName(),
                            part.getTypeName(), false, inputs);
                }
            }
        }
    }
View Full Code Here

Examples of javax.wsdl.Part

        if (output != null) {
            Message msg = output.getMessage();
            Iterator i = msg.getOrderedParts(null).iterator();
            while (i.hasNext()) {
                Part part = (Part) i.next();
                XmlSchemaType schemaType = null;
                schemaType = lookUpType(part, xmlSchemaList);

                // check if in input list
                if (part.getElementName() != null) {
                    if (schemaType instanceof XmlSchemaComplexType
                            && schemaType.getName() == null) {
                        Iterator it = getSchemaIterator(schemaType);
                        Iterator iter = getSchemaIterator(schemaType);
                        updateLists(wsdlToCorbaBinding, inputs, outputs, it,
                                iter);
                    } else {
                        XmlSchemaElement el = getElement(part, xmlSchemaList);
                        if (schemaType == null) {
                            updateList(wsdlToCorbaBinding, schemaType, part
                                    .getName(), el.getSchemaTypeName(), inputs,
                                    outputs, el.isNillable());
                        } else {
                            updateList(wsdlToCorbaBinding, schemaType, part
                                    .getName(), part.getElementName(), inputs,
                                    outputs, el.isNillable());
                        }
                    }
                } else {
                    if (part.getTypeName() != null) {
                        updateList(wsdlToCorbaBinding, schemaType, part
                                .getName(), part.getTypeName(), inputs,
                                outputs, false);
                    }
                }
            }
        }
View Full Code Here

Examples of javax.wsdl.Part

        if (output != null) {
            Message msg = output.getMessage();
            Iterator i = msg.getOrderedParts(null).iterator();
            while (i.hasNext()) {
                Part part = (Part) i.next();
                XmlSchemaType schemaType = null;
                schemaType = lookUpType(part, xmlSchemaList);

                // check if in input list
                String mode = "out";
                ParamType paramtype = null;
                for (int x = 0; x < inputs.size(); x++) {
                    paramtype = null;
                    ParamType d2 = (ParamType) inputs.get(x);

                    if (part.getName() != null
                            && d2.getName().equals(part.getName())) {
                        inputs.remove(x);
                        if (part.getElementName() != null) {
                            XmlSchemaElement el = getElement(part,
                                    xmlSchemaList);
                            paramtype = createParam(wsdlToCorbaBinding,
                                    "inout", schemaType, part.getName(), part
                                            .getElementName(), el.isNillable());
                        } else {
                            paramtype = createParam(wsdlToCorbaBinding,
                                    "inout", schemaType, part.getName(), part
                                            .getTypeName(), false);
                        }
                        inputs.add(paramtype);
                    }
                }
                if (paramtype == null) {
                    if (part.getElementName() != null) {
                        XmlSchemaElement el = getElement(part, xmlSchemaList);
                        paramtype = createParam(wsdlToCorbaBinding, mode,
                                schemaType, part.getName(), part
                                        .getElementName(), el.isNillable());
                    } else {
                        paramtype = createParam(wsdlToCorbaBinding, mode,
                                schemaType, part.getName(), part.getTypeName(),
                                false);
                    }
                    if (paramtype != null) {
                        outputs.add(paramtype);
                    }
View Full Code Here

Examples of javax.wsdl.Part

            if (msg.getParts().size() == 0) {
                return false;
            }

            Part part = (Part) i.next();

            if (i.hasNext()) {
                return true;
            }

            schemaType = lookUpType(part, xmlSchemaList);
            if (!(part.getName().equals(opName))) {
                return true;
            }

            if (!(schemaType instanceof XmlSchemaComplexType)) {
                return true;
View Full Code Here

Examples of javax.wsdl.Part

            if (msg.getParts().size() == 0) {
                return false;
            }

            Part part = (Part) i.next();

            if (i.hasNext()) {
                return true;
            }

            schemaType = lookUpType(part, xmlSchemaList);
            if (!part.getName().equals(opName)) {
                return true;
            }

            if (!(schemaType instanceof XmlSchemaComplexType)) {
                return true;
View Full Code Here

Examples of javax.wsdl.Part

       
        return result;
    }
   
    private Message generateMessage(XmlSchemaElement element, String name) {
        Part part = definition.createPart();
        part.setName(PART_NAME);
        part.setElementName(element.getQName());
       
        Message result = definition.createMessage();
        result.setQName(new QName(definition.getTargetNamespace(), name));
        result.addPart(part);
        result.setUndefined(false);
View Full Code Here

Examples of jm.music.data.Part

    }

    private void getWidthAndParts() {
        Enumeration enum1 = score.getPartList().elements();
        while (enum1.hasMoreElements()) {
            Part part = (Part) enum1.nextElement();
            maxParts++;
            Enumeration enum2 = part.getPhraseList().elements();
            while (enum2.hasMoreElements()) {
                Phrase phrase = (Phrase) enum2.nextElement();
                Enumeration enum3 = phrase.getNoteList().elements();
                maxWidth = (int) (phrase.getStartTime() * beatWidth);
                while (enum3.hasMoreElements()) {
View Full Code Here

Examples of net.helipilot50.stocktrade.displayproject.TMSchema.Part

     * @return a <code>Color</code> or null if key is not found
     *    in the current style
     */
    synchronized Color getColor(Skin skin, Prop prop, Color fallback) {
        String key = skin.toString() + "." + prop.name();
        Part part = skin.part;
        Color color = colorMap.get(key);
        if (color == null) {
            color = ThemeReader.getColor(part.getControlName(null), part.getValue(),
                                            State.getValue(part, skin.state),
                                            prop.getValue());
            if (color != null) {
                color = new ColorUIResource(color);
                colorMap.put(key, color);
View Full Code Here

Examples of net.sf.xtvdclient.xtvd.datatypes.Part

            if (xtvdProgram.getShowType()!= null) {
              desc.append("\nShowType : ").append(xtvdProgram.getShowType());
            } */

            if (schedule.getPart() != null) {
              final Part part = schedule.getPart();
              desc.append("\nPart " + part.getNumber() + " of " + part.getTotal());
            }
            if (schedule.getRepeat() && xtvdProgram.getOriginalAirDate() == null) {
              prog.setTextField(ProgramFieldType.REPETITION_OF_TYPE, "unknown previous program");
            }

View Full Code Here

Examples of net.unto.twitter.UtilProtos.Url.Part

    fail(String.format("Actual URL %s does not contain parameter %s", url,
        expected));
  }

  void assertHasPart(Url url, String name, String filename, byte[] value, String contentType, String charset) {
    Part expected = Part.newBuilder()
      .setName(name)
      .setFilename(filename)
      .setValue(ByteString.copyFrom(value))
      .setContentType(contentType)
      .setCharset(charset)
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.