Package org.apache.ws.jaxme.js

Examples of org.apache.ws.jaxme.js.JavaSource


  public JavaSource getXMLInterface(ComplexTypeSG pController) throws SAXException {
    final String mName = "getXMLInterface";
    log.finest(mName, "->");
    JavaQName qName = pController.getClassContext().getXMLInterfaceName();
    JavaSourceFactory jsf = pController.getTypeSG().getSchema().getJavaSourceFactory();
    JavaSource js = jsf.newJavaSource(qName, JavaSource.PUBLIC);
    js.setType(JavaSource.INTERFACE);

    generateProperties(pController, js);
    if (!pController.hasSimpleContent()) {
      GroupSG groupSG = pController.getComplexContentSG().getGroupSG();
      if (groupSG != null) { // Check required, in case the element doesn't have any childs
        groupSG.generateXMLInterfaceSubclasses(js);
      }
    }
    log.finest(mName, "<-", js.getQName());
    return js;
  }
View Full Code Here


 
  public JavaSource getXMLInterface(ComplexTypeSG pController, JavaSource pSource) throws SAXException {
    final String mName = "getXMLInterface(JavaSource)";
    log.finest(mName, "->", pSource.getQName());
    JavaQName qName = pController.getClassContext().getXMLInterfaceName();
    JavaSource js = pSource.newJavaInnerClass(qName.getClassName(), JavaSource.PUBLIC);
    js.setType(JavaSource.INTERFACE);
   
    generateProperties(pController, js);
    if (!pController.hasSimpleContent()) {
      GroupSG groupSG = pController.getComplexContentSG().getGroupSG();
      if (groupSG != null) { // Check required, in case the element doesn't have any childs
        groupSG.generateXMLInterfaceSubclasses(js);
      }
    }
    log.finest(mName, "<-", js.getQName());
    return js;
  }
View Full Code Here

 
  public JavaSource getXMLImplementation(ComplexTypeSG pController) throws SAXException {
    final String mName = "getXMLImplementation(JavaQName)";
    log.finest(mName, "->", typeSG.getName());
    JavaSourceFactory jsf = pController.getTypeSG().getSchema().getJavaSourceFactory();
    JavaSource js = jsf.newJavaSource(pController.getClassContext().getXMLImplementationName(), JavaSource.PUBLIC);
    js.addImplements(pController.getClassContext().getXMLInterfaceName());
    SerializableSG.makeSerializable(pController.getTypeSG().getSchema(), js);

    generateProperties(pController, js);
    if (!pController.hasSimpleContent()) {
      GroupSG groupSG = pController.getComplexContentSG().getGroupSG();
      if (groupSG != null) { // Check required, in case the element doesn't have any childs
        groupSG.generateXMLImplementationSubclasses(js);
      }
    }
    log.finest(mName, "<-", js.getQName());
    return js;
  }
View Full Code Here

  }
 
  public JavaSource getXMLImplementation(ComplexTypeSG pController, JavaSource pSource) throws SAXException {
    final String mName = "getXMLImplementation(JavaQName,JavaSource)";
    log.finest(mName, "->", pSource.getQName());
    JavaSource js = pSource.newJavaInnerClass(pController.getClassContext().getXMLImplementationName().getInnerClassName(), JavaSource.PUBLIC);
    js.setStatic(true);
    js.addImplements(pController.getClassContext().getXMLInterfaceName());
    SerializableSG.makeSerializable(pController.getTypeSG().getSchema(), js);
   
    generateProperties(pController, js);
    if (!pController.hasSimpleContent()) {
      GroupSG groupSG = pController.getComplexContentSG().getGroupSG();
      if (groupSG != null) { // Check required, in case the element doesn't have any childs
        groupSG.generateXMLImplementationSubclasses(js);
      }
    }
    log.finest(mName, "<-", js.getQName());
    return js;
  }
View Full Code Here

  public JavaSource getXMLSerializer(ComplexTypeSG pController) throws SAXException {
    final String mName = "getXMLSerializer";
    log.finest(mName, "->", typeSG.getName());
    JavaQName xmlSerializerName = pController.getClassContext().getXMLSerializerName();
    JavaSourceFactory jsf = typeSG.getSchema().getJavaSourceFactory();
    JavaSource js = jsf.newJavaSource(xmlSerializerName, JavaSource.PUBLIC);
    js.addExtends(JMXmlSerializerImpl.class);
    pController.generateXMLSerializerMethods(js);
    return js;
  }
View Full Code Here

  }
 
  public JavaSource getXMLSerializer(ComplexTypeSG pController, JavaSource pSource) throws SAXException {
    final String mName = "getXMLSerializer(JavaSource)";
    log.finest(mName, "->", pSource.getQName());
    JavaSource js = pSource.newJavaInnerClass(pController.getClassContext().getXMLSerializerName().getInnerClassName(), JavaSource.PUBLIC);
    js.setStatic(true);
    js.addExtends(JMXmlSerializerImpl.class);
    pController.generateXMLSerializerMethods(js);
    log.finest(mName, "<-", js.getQName());
    return js;
  }
View Full Code Here

  public JavaSource getXMLHandler(ComplexTypeSG pController) throws SAXException {
    final String mName = "getXMLHandler";
    log.finest(mName, "->", typeSG.getName());
    JavaQName xmlSerializerName = pController.getClassContext().getXMLHandlerName();
    JavaSourceFactory jsf = typeSG.getSchema().getJavaSourceFactory();
    JavaSource js = jsf.newJavaSource(xmlSerializerName, JavaSource.PUBLIC);
    js.addExtends(JMHandlerImpl.class);
    pController.generateXMLHandlerMethods(js);
    return js;
  }
View Full Code Here

  }
 
  public JavaSource getXMLHandler(ComplexTypeSG pController, JavaSource pSource) throws SAXException {
    final String mName = "getXMLHandler(JavaSource)";
    log.finest(mName, "->", pSource.getQName());
    JavaSource js = pSource.newJavaInnerClass(pController.getClassContext().getXMLHandlerName().getInnerClassName(), JavaSource.PUBLIC);
    js.setStatic(true);
    js.addExtends(JMHandlerImpl.class);
    pController.generateXMLHandlerMethods(js);
    log.finest(mName, "<-", js.getQName());
    return js;
  }
View Full Code Here

       return jm;
     }
     public JavaSource generate(JavaSourceFactory pInterfaceFactory,
                 JavaQName pTargetClass,
                 ProxyGenerator.InterfaceDescription[] pDescription) {
       JavaSource result = super.generate(pInterfaceFactory, pTargetClass,
           pDescription);
       result.clearImplements();
       return result;
     }
View Full Code Here

       return jm;
     }
     public JavaSource generate(JavaSourceFactory pImplementationFactory,
                 JavaQName pTargetClass,
                 ProxyGenerator.InterfaceDescription[] pDescription) {
       JavaSource result = super.generate(pImplementationFactory, pTargetClass, pDescription);
       result.clearImplements();
       result.addImplements(getChainInterface());
       return result;
     }
View Full Code Here

TOP

Related Classes of org.apache.ws.jaxme.js.JavaSource

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.