Package org.apache.ws.jaxme.js

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


        jm.addLine(pStateVar, " = " + (j+3) + ";");
        if (child.getObjectSG().getTypeSG().isComplex()) {
          String handlerMethodName = getXMLHandlersMethodName(child.getPropertySG());
          jm.addLine(pHandlerVar, " = ", handlerMethodName, "();");
        } else {
          jm.addLine(pHandlerVar, " = getData().getAtomicHandler();");
        }
        jm.addLine(pHandlerVar, ".startDocument();");
        jm.addLine(pHandlerVar, ".startElement(pNamespaceURI, pLocalName, pQName, pAttr);");

        jm.addBreak();
View Full Code Here


          String handlerMethodName = getXMLHandlersMethodName(child.getPropertySG());
          jm.addLine(pHandlerVar, " = ", handlerMethodName, "();");
        } else {
          jm.addLine(pHandlerVar, " = getData().getAtomicHandler();");
        }
        jm.addLine(pHandlerVar, ".startDocument();");
        jm.addLine(pHandlerVar, ".startElement(pNamespaceURI, pLocalName, pQName, pAttr);");

        jm.addBreak();
        jm.addDefault();
        jm.addLine("validationEvent(", ValidationEvent.class, ".WARNING, ",
View Full Code Here

          jm.addLine(pHandlerVar, " = ", handlerMethodName, "();");
        } else {
          jm.addLine(pHandlerVar, " = getData().getAtomicHandler();");
        }
        jm.addLine(pHandlerVar, ".startDocument();");
        jm.addLine(pHandlerVar, ".startElement(pNamespaceURI, pLocalName, pQName, pAttr);");

        jm.addBreak();
        jm.addDefault();
        jm.addLine("validationEvent(", ValidationEvent.class, ".WARNING, ",
                   JavaSource.getQuoted("The element "), " + ", pQName, " + ",
View Full Code Here

        jm.addLine(pHandlerVar, ".startDocument();");
        jm.addLine(pHandlerVar, ".startElement(pNamespaceURI, pLocalName, pQName, pAttr);");

        jm.addBreak();
        jm.addDefault();
        jm.addLine("validationEvent(", ValidationEvent.class, ".WARNING, ",
                   JavaSource.getQuoted("The element "), " + ", pQName, " + ",
                   JavaSource.getQuoted(" was unexpected at this place."),
                   ", ", ValidationEvents.class,
                   ".EVENT_UNEXPECTED_CHILD_STATE);");
        jm.addBreak();
View Full Code Here

    jm.addEndIf();
    jm.addBreak();

    jm.addDefault();
    jm.addIf(pHandlerVar, " == null");
    jm.addLine("super.startElement(", pNamespaceURI, ", ", pLocalName, ", ", pQName, ", ", pAttr, ");");
    jm.addElse();
    jm.addLine(pHandlerVar, ".startElement(", pNamespaceURI, ", ", pLocalName, ", ", pQName, ", ", pAttr, ");");
    jm.addEndIf();
  }
View Full Code Here

    jm.addDefault();
    jm.addIf(pHandlerVar, " == null");
    jm.addLine("super.startElement(", pNamespaceURI, ", ", pLocalName, ", ", pQName, ", ", pAttr, ");");
    jm.addElse();
    jm.addLine(pHandlerVar, ".startElement(", pNamespaceURI, ", ", pLocalName, ", ", pQName, ", ", pAttr, ");");
    jm.addEndIf();
  }

  public JavaMethod getXMLHandlersEndElementMethod(GroupSG pController, JavaSource pSource,
                                                    DirectAccessible pLevelVar,
View Full Code Here

    DirectAccessible pQName = jm.addParam(String.class, "pQName");
    jm.addThrows(SAXException.class);

    jm.addIf(pHandlerVar, " == null");
    jm.addIf(pLevelVar, " != 1");
    jm.addLine("super.endElement(", pNamespaceURI, ", ", pLocalName, ", ", pQName, ");");
    jm.addEndIf();
    jm.addElse();
    jm.addLine(pHandlerVar, ".endElement(", pNamespaceURI, ", ", pLocalName, ", ", pQName, ");");
    jm.addEndIf();
View Full Code Here

    jm.addIf(pHandlerVar, " == null");
    jm.addIf(pLevelVar, " != 1");
    jm.addLine("super.endElement(", pNamespaceURI, ", ", pLocalName, ", ", pQName, ");");
    jm.addEndIf();
    jm.addElse();
    jm.addLine(pHandlerVar, ".endElement(", pNamespaceURI, ", ", pLocalName, ", ", pQName, ");");
    jm.addEndIf();

    jm.addSwitch("--", pLevelVar);
    jm.addCase("0");
    jm.addBreak();
View Full Code Here

      ParticleSG child = myParticles[i];
      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;
      if (childType.isComplex()) {
        type = childType.getComplexTypeSG().getClassContext().getXMLInterfaceName();
View Full Code Here

    DirectAccessible pChars = jm.addParam(char[].class, "pChars");
    DirectAccessible pOffset = jm.addParam(int.class, "pOffset");
    DirectAccessible pLen = jm.addParam(int.class, "pLen");
    jm.addThrows(SAXException.class);
    jm.addIf(pHandlerVar, " == null");
    jm.addLine("super.characters(", pChars,", ", pOffset, ", ", pLen, ");");
    jm.addElse();
    jm.addLine(pHandlerVar, ".characters(", pChars, ", ", pOffset, ", ", pLen, ");");
    jm.addEndIf();
    return jm;
  }
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.