Examples of addCase()


Examples of org.apache.ws.jaxme.js.JavaMethod.addCase()

      Parameter pNamespaceURI = parameters[0];
      Parameter pLocalName = parameters[1];
      Parameter pQName = parameters[2];
      Parameter pAttr = parameters[3];
     
      jm.addCase("1");
      Set namespaces = new HashSet();
      for (int i = 0;  i < myParticles.length;  i++) {
          ParticleSG child = myParticles[i];
          if (child.isGroup()) {
              // TODO: Process group case properly
View Full Code Here

Examples of org.apache.ws.jaxme.js.JavaMethod.addCase()

    jm.addElse();
    jm.addLine(pHandlerVar, ".endElement(", pNamespaceURI, ", ", pLocalName, ", ", pQName, ");");
    jm.addEndIf();

    jm.addSwitch("--", pLevelVar);
    jm.addCase("0");
    jm.addBreak();
    jm.addCase("1");
    JavaQName elementInterface = pController.getClassContext().getXMLInterfaceName();
    LocalJavaField element = jm.newJavaField(elementInterface);
    element.addLine("(", elementInterface, ") getResult()");
View Full Code Here

Examples of org.apache.ws.jaxme.js.JavaMethod.addCase()

    jm.addEndIf();

    jm.addSwitch("--", pLevelVar);
    jm.addCase("0");
    jm.addBreak();
    jm.addCase("1");
    JavaQName elementInterface = pController.getClassContext().getXMLInterfaceName();
    LocalJavaField element = jm.newJavaField(elementInterface);
    element.addLine("(", elementInterface, ") getResult()");
    jm.addSwitch(pStateVar);
    for (int i = 0;  i < myParticles.length;  i++) {
View Full Code Here

Examples of org.apache.ws.jaxme.js.JavaMethod.addCase()

      ParticleSG child = myParticles[i];
      // TODO: process group case properly.
      if (myParticles[i].isGroup()) continue;
      ObjectSG osg = child.getObjectSG();
      TypeSG childType = osg.getTypeSG();
      jm.addCase(Integer.toString(3+i));
      jm.addIf(pHandlerVar, " != null");
      jm.addLine(pHandlerVar, ".endDocument();");
      jm.addEndIf();
      Object v;
      JavaQName type;
View Full Code Here

Examples of org.apache.yoko.bindings.corba.types.CorbaUnionHandler.addCase()

            if (schemaType instanceof XmlSchemaAttribute) {
                CorbaPrimitiveHandler value = getAttributeValue(evt, name, branches.get(0).getIdltype());
                if (value != null) {
                    discObj.setValue(Boolean.TRUE);
                    obj.setValue("value", value);
                    obj.addCase(value);
                } else {
                    discObj.setValue(Boolean.FALSE);
                }
            } else if (!isElementNil(evt, name)) {
                discObj.setValue(Boolean.TRUE);
View Full Code Here

Examples of org.apache.yoko.bindings.corba.types.CorbaUnionHandler.addCase()

                                                                    qname,
                                                                    branch.getIdltype(),
                                                                    typeMaps,
                                                                    serviceInfo);
                }
                obj.addCase(branchObj);
            }
            reader.nextEvent().asEndElement();
        } catch (java.lang.Exception ex) {
            LOG.log(Level.SEVERE, "Received exception while reading object of type " + idlType);
            throw new CorbaBindingException("Error while reading union corba type", ex);
View Full Code Here

Examples of org.apache.yoko.bindings.corba.types.CorbaUnionHandler.addCase()

                } else {
                    // Create an object holder with no value
                    branchObj = CorbaHandlerUtils.createTypeHandler(orb, new QName(branch.getName()),
                                                                    branch.getIdltype(), typeMaps);
                }
                obj.addCase(branchObj);
            }
            reader.nextEvent().asEndElement();
        } catch (java.lang.Exception ex) {
            LOG.log(Level.SEVERE, "Received exception while reading object of type " + idlType);
            throw new CorbaBindingException("Error while reading union corba type", ex);
View Full Code Here

Examples of org.apache.yoko.tools.common.idltypes.IdlUnionBranch.addCase()

            }
            IdlUnionBranch b = IdlUnionBranch.create(union, ub.getName(), bt, isDefault);

            Iterator it2 = ub.getCase().iterator();
            while (it2.hasNext()) {               
                b.addCase(((CaseType)it2.next()).getLabel());
            }

            // Ensure that this union will not  be written until all of its circular members are
            // defined, unless the undefined circular members are of sequence type.
View Full Code Here

Examples of org.apache.yoko.tools.common.idltypes.IdlUnionBranch.addCase()

            }
            IdlUnionBranch b = IdlUnionBranch.create(union, ub.getName(), bt, isDefault);

            Iterator it2 = ub.getCase().iterator();
            while (it2.hasNext()) {               
                b.addCase(((CaseType)it2.next()).getLabel());
            }

            // Ensure that this union will not  be written until all of its circular members are
            // defined, unless the undefined circular members are of sequence type.
View Full Code Here

Examples of org.mozilla.javascript.ast.SwitchStatement.addCase()

    SwitchStatement s = new SwitchStatement();
    s.setExpression(expr);
    for (AstNode c : cases) {
      // the user must make sure it sends the correct types. TODO the code can check and build the correct type if
      // needed
      s.addCase((SwitchCase) c);
    }
    return s;
  }

  @Override
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.