Examples of SGlet


Examples of org.apache.ws.jaxme.generator.sg.SGlet

          jm.addLine(result, ".addAttribute(", uri, ", ", localPart,
                 ", ", pController, ".getAttrQName(this, ", uri, ", ", localPart,
                             "), \"CDATA\", ", wildcardAttribute, ".getValue());");
          jm.addEndFor();
        } else {
          SGlet sgLet = new SGlet(){
            public void generate(JavaMethod pMethod, Object pValue) throws SAXException {
              String uri = JavaSource.getQuoted(attribute.getName().getNamespaceURI());
              String localName = JavaSource.getQuoted(attribute.getName().getLocalName());
              pMethod.addLine(result, ".addAttribute(", uri, ", ", localName,
                      ", ", pController, ".getAttrQName(this, ", uri, ", ", localName, "), \"CDATA\", ",
View Full Code Here

Examples of org.apache.ws.jaxme.generator.sg.SGlet

      mixedTypesMap.add(qName);
      jm.addElseIf(object, " instanceof ", qName);
      Object value = new Object[]{"((", qName, ") ", object, ").getValue()"};
      marshalSimpleValue(oSG, jm, value);
    } else {
      SGlet sgLet = new SGlet(){
        public void generate(JavaMethod pMethod, Object pValue) throws SAXException {
          marshalSimpleValue(oSG, pMethod, pValue);
        }
      };
      pParticle.getPropertySG().forAllNonNullValues(jm, castedElement, sgLet);
View Full Code Here

Examples of org.apache.ws.jaxme.generator.sg.SGlet

      mixedTypesMap.add(qName);
      jm.addElseIf(object, " instanceof ", qName);
      Object value = new Object[]{"((", qName, ") ", object, ")"};
      marshalComplexValue(oSG, jm, value);
    } else {
      SGlet sgLet = new SGlet(){
        public void generate(JavaMethod pMethod, Object pValue) throws SAXException {
          marshalComplexValue(oSG, pMethod, pValue);
        }
      };
      pParticle.getPropertySG().forAllNonNullValues(jm, castedElement, sgLet);
View Full Code Here

Examples of org.apache.ws.jaxme.generator.sg.SGlet

          jm.addLine(result, ".addAttribute(", uri, ", ", localPart,
                 ", ", pController, ".getAttrQName(this, ", uri, ", ", localPart,
                             "), \"CDATA\", ", wildcardAttribute, ".getValue());");
          jm.addEndFor();
        } else {
          SGlet sgLet = new SGlet(){
            public void generate(JavaMethod pMethod, Object pValue) throws SAXException {
              String uri = JavaSource.getQuoted(attribute.getName().getNamespaceURI());
              String localName = JavaSource.getQuoted(attribute.getName().getLocalName());
              pMethod.addLine(result, ".addAttribute(", uri, ", ", localName,
                      ", ", pController, ".getAttrQName(this, ", uri, ", ", localName, "), \"CDATA\", ",
View Full Code Here

Examples of org.apache.ws.jaxme.generator.sg.SGlet

  private void marshalParticles(JavaMethod pJm, LocalJavaField pElement,
                  ParticleSG[] pParticles) throws SAXException {
    for (int i = 0;  i < pParticles.length;  i++) {
      final ParticleSG particle = pParticles[i];
      if (particle.isElement()) {
        SGlet sgLet = new SGlet(){
          public void generate(JavaMethod pMethod, Object pValue) throws SAXException {
            marshalElementParticle(pMethod, pValue, particle);
          }
        };
        particle.getPropertySG().forAllNonNullValues(pJm, pElement, sgLet);
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.