Package org.apache.ws.jaxme.generator.sg

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


      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

      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

          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

  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

Related Classes of org.apache.ws.jaxme.generator.sg.SGlet

Copyright © 2018 www.massapicom. 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.