Examples of addImplements()


Examples of org.apache.ws.jaxme.js.JavaSource.addImplements()

    }

    JavaQName xmlSerializerName = pController.getClassContext().getXMLSerializerName();
    JavaSourceFactory jsf = getSchema().getJavaSourceFactory();
    JavaSource js = jsf.newJavaSource(xmlSerializerName, JavaSource.PUBLIC);
    js.addImplements(JMXmlSerializer.class);
    myTypeSG.getComplexTypeSG().generateXMLSerializerMethods(js);
    return js;
  }

  public JavaSource getXMLHandler(ObjectSG pController) throws SAXException {
View Full Code Here

Examples of org.apache.ws.jaxme.js.JavaSource.addImplements()

      return null;
    } else {
      JavaQName xmlHandlerName = pController.getClassContext().getXMLHandlerName();
      JavaSourceFactory jsf = getSchema().getJavaSourceFactory();
      JavaSource js = jsf.newJavaSource(xmlHandlerName, JavaSource.PUBLIC);
      js.addImplements(JMHandler.class);
      if (myTypeSG.isGlobalClass()) {
        Context typeContext = myTypeSG.getComplexTypeSG().getClassContext();
        js.addExtends(typeContext.getXMLHandlerName());
        JavaQName xmlElementInterface = pController.getClassContext().getXMLInterfaceName();
        JavaQName resultInterface = typeContext.getXMLInterfaceName();
View Full Code Here

Examples of org.apache.ws.jaxme.js.JavaSource.addImplements()

  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();
View Full Code Here

Examples of org.apache.ws.jaxme.js.JavaSource.addImplements()

  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();
View Full Code Here

Examples of org.apache.ws.jaxme.js.JavaSource.addImplements()

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

   private class ControllerImplementationGenerator extends ProxyGenerator {
View Full Code Here

Examples of org.apache.ws.jaxme.js.JavaSource.addImplements()

    JavaSource js = getJavaSource(pFactory, pTargetName);
    if (getExtendedClass() != null) {
      js.addExtends(getExtendedClass());
    }
    for (int i = 0;  i < pInterfaces.length;  i++) {
      js.addImplements(pInterfaces[i].getInterface());
    }

    getBackingObjectField(js, pInterfaces);
    getConstructor(js, pInterfaces);
View Full Code Here

Examples of org.apache.ws.jaxme.js.JavaSource.addImplements()

        js = pJs.getFactory().newJavaSource(qName, JavaSource.PUBLIC);
      }
      if (pJs.isInterface()) {
        js.setType(JavaSource.INTERFACE);
      } else {
        js.addImplements(GroupUtil.getContentClass(pGroupSG, pParticle, ct.getClassContext().getXMLInterfaceName()));
      }
      PropertySGChain chain = ((PropertySGImpl) elementSG).getHeadOfChain();
      PropertySGChain head = new PropertySGChainImpl(chain){
        public String getXMLFieldName(PropertySG pController) throws SAXException {
          return "_value";
View Full Code Here

Examples of org.apache.ws.jaxme.js.JavaSource.addImplements()

  public JavaSource getEnumClass(SimpleTypeSG pController) throws SAXException {
    JavaQName valueType = super.getRuntimeType(pController);
    JavaQName qNameArray = JavaQNameImpl.getArray(qName);

    JavaSource js = pController.getSchema().getJavaSourceFactory().newJavaSource(qName, JavaSource.PUBLIC);
    js.addImplements(Serializable.class);

    JavaField name = js.newJavaField("name", String.class, JavaSource.PRIVATE);
    name.setFinal(true);
    JavaField value = js.newJavaField("value", valueType, JavaSource.PRIVATE);
    value.setFinal(true);
View Full Code Here

Examples of org.apache.ws.jaxme.js.JavaSource.addImplements()

                for (int i = 0;  i < interfaces.length;  i++) {
                    JavaQName interfaceName = interfaces[i];
                    if (interfaceName.equals(JMELEMENT_TYPE||
                        interfaceName.equals(INO_OBJECT_TYPE)) {
                        if (!done) {
                            result.addImplements(INO_OBJECT_TYPE);
                            done = true;
                        }
                    } else {
                        result.addImplements(interfaceName);
                    }
View Full Code Here

Examples of org.apache.ws.jaxme.js.JavaSource.addImplements()

                        if (!done) {
                            result.addImplements(INO_OBJECT_TYPE);
                            done = true;
                        }
                    } else {
                        result.addImplements(interfaceName);
                    }
                }
                if (!done) {
                    result.addImplements(INO_OBJECT_TYPE);
                }
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.