Package org.apache.muse.tools.inspector

Examples of org.apache.muse.tools.inspector.JavaMethod


    Capability capability = null;

    Map methods = inspector.getJavaMethods();

    for (Iterator i = methods.values().iterator(); i.hasNext();) {
      JavaMethod method = (JavaMethod) i.next();
     
      capability = getCapability(method.getName(), capabilities);
           
      String actionURI = (String) _internalActionMap.get(method.getName());
      if(actionURI != null) {
        method.setActionURI(actionURI);
      }
     
      capability.addOperation(method);
    }
  }
View Full Code Here


  }
 
  public void addActionMappings(Capability capability, String serviceName) {
    Element operationElement = (Element) _serviceOperations.get(serviceName);
    for (Iterator j = capability.getOperations().iterator(); j.hasNext();) {         
      JavaMethod method = (JavaMethod) j.next();

      Element actionMapping = XmlUtils.createElement(_servicesDocument,ACTION_MAPPING);
     
      XmlUtils.setElementText(actionMapping, makeActionURI(
          capability, method));
View Full Code Here

    findImports();
  }

  private void findImports() {   
    for(Iterator i = _capability.getOperations().iterator(); i.hasNext();) {
      JavaMethod method = (JavaMethod)i.next();
      addImport(method.getReturnType());     
      Class[] parameterTypes = method.getParameterTypes();
      for(int j = 0; j < parameterTypes.length; j++) {
        addImport(parameterTypes[j]);
      }
    }
   
View Full Code Here

  protected void generateOperations(ClassInfo classInfo, StringBuffer code, boolean generateBody) {
    Capability capability = classInfo.getCapability();
   
    for(Iterator i=capability.getOperations().iterator(); i.hasNext();) {
      JavaMethod method = (JavaMethod)i.next();   
     
      indent(code);
      code.append("public "
        + convertType(method.getReturnType(), classInfo)
        + " " + getMethodName(method));
     
      Class[] params = method.getParameterTypes();
      code.append("(");
     
      if (params.length > 0) {
        int j;
        for (j = 0; j < params.length - 1; j++) {
View Full Code Here

  }
 
  public void addActionMappings(Capability capability, String serviceName) {
    Element operationElement = (Element) _serviceOperations.get(serviceName);
    for (Iterator j = capability.getOperations().iterator(); j.hasNext();) {         
      JavaMethod method = (JavaMethod) j.next();

      Element actionMapping = XmlUtils.createElement(_servicesDocument,ACTION_MAPPING);
     
      XmlUtils.setElementText(actionMapping, makeActionURI(
          capability, method));
View Full Code Here

    Capability capability = null;

    Map methods = inspector.getJavaMethods();

    for (Iterator i = methods.values().iterator(); i.hasNext();) {
      JavaMethod method = (JavaMethod) i.next();
     
      capability = getCapability(method.getName(), capabilities);
           
      String actionURI = (String) _internalActionMap.get(method.getName());
      if(actionURI != null) {
        method.setActionURI(actionURI);
      }
     
      capability.addOperation(method);
    }
  }
View Full Code Here

 
  protected void updateMethods(ClassInfo classInfo, StringBuffer code) {
    Iterator i = classInfo.getCapability().getOperations().iterator();

    while (i.hasNext()) {
      JavaMethod method = (JavaMethod) i.next();
      generateMethod(method, classInfo, code);
    }

    i = classInfo.getCapability().getProperties().iterator();
View Full Code Here

    findImports();
  }

  private void findImports() {   
    for(Iterator i = _capability.getOperations().iterator(); i.hasNext();) {
      JavaMethod method = (JavaMethod)i.next();
      addImport(method.getReturnType());     
      Class[] parameterTypes = method.getParameterTypes();
      for(int j = 0; j < parameterTypes.length; j++) {
        addImport(parameterTypes[j]);
      }
    }
   
View Full Code Here

 
  protected void generateOperations(ClassInfo classInfo, StringBuffer code) {
    Capability capability = classInfo.getCapability();
   
    for(Iterator i=capability.getOperations().iterator(); i.hasNext();) {
      JavaMethod method = (JavaMethod)i.next();   
     
      indent(code);
      code.append("public "
        + convertType(method.getReturnType(), classInfo)
        + " " + getMethodName(method));
     
      Class[] params = method.getParameterTypes();
      QName[] paramNames = method.getParameterTypeNames();
      code.append("(");
     
      if (params.length > 0) {
        int j;
       
View Full Code Here

    Capability capability = null;

    Map methods = inspector.getJavaMethods();

    for (Iterator i = methods.values().iterator(); i.hasNext();) {
      JavaMethod method = (JavaMethod) i.next();
     
      capability = getCapability(method.getName(), capabilities);
           
      String actionURI = (String) _internalActionMap.get(method.getName());
      if(actionURI != null) {
        method.setActionURI(actionURI);
      }
     
      capability.addOperation(method);
    }
  }
View Full Code Here

TOP

Related Classes of org.apache.muse.tools.inspector.JavaMethod

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.