Examples of newComment()


Examples of org.apache.ws.jaxme.js.JavaMethod.newComment()

      return jm;
  }

  public JavaMethod getXMLSetMethod(PropertySG pController, JavaSource pSource) throws SAXException {
      JavaMethod jm = pSource.newJavaMethod(pController.getXMLSetMethodName(), void.class, JavaSource.PUBLIC);
      JavaComment jc = jm.newComment();
      jc.addLine("<p>Sets the 'anyAttribute' named <code>pName</code> to the value <code>pValue</code>.</p>");
      if (!namespaceList.isAny()) {
          jc.addLine("@throws IllegalArgumentException The namespace <code>pName.getNamespaceURI()</code> is invalid.");
      }
      jc.addLine("@throws NullPointerException Either of the arguments <code>pName</code> or <code>pValue</code> is null.");
View Full Code Here

Examples of org.apache.ws.jaxme.js.JavaMethod.newComment()

      return jm;
  }

  public JavaMethod getXMLUnsetMethod(PropertySG pController, JavaSource pSource) throws SAXException {
      JavaMethod jm = pSource.newJavaMethod("un" + pController.getXMLSetMethodName(), boolean.class, JavaSource.PUBLIC);
      JavaComment jc = jm.newComment();
      jc.addLine("<p>Removes the 'anyAttribute' named <code>pName</code>.</p>");
      if (!namespaceList.isAny()) {
          jc.addLine("@throws IllegalArgumentException The namespace <code>pName.getNamespaceURI()</code> is invalid.");
      }
      jc.addLine("@throws NullPointerException Either of the arguments <code>pName</code> or <code>pValue</code> is null.");
View Full Code Here

Examples of org.apache.ws.jaxme.js.JavaMethod.newComment()

      return jm;
  }

  public JavaMethod getXMLGetArrayMethod(PropertySG pController, JavaSource pSource) throws SAXException {
      JavaMethod jm = pSource.newJavaMethod(pController.getXMLGetMethodName() + "Array", WildcardAttribute[].class, JavaSource.PUBLIC);
      JavaComment jc = jm.newComment();
      jc.addLine("<p>Returns the array of 'anyAttributes'.</p>");
      LocalJavaField size = jm.newJavaField(int.class);
      size.addLine(pController.getXMLFieldName(), ".size()");
      LocalJavaField result = jm.newJavaField(jm.getType());
      result.addLine("new ", WildcardAttribute.class, "[", size, "]");
View Full Code Here

Examples of org.apache.ws.jaxme.js.JavaMethod.newComment()

   allInstances.setFinal(true);
   allInstances.addLine("new ", arrayType, "{", instanceList, "}");

   JavaMethod getName = pSource.newJavaMethod("getName", String.class,
                                               JavaSource.PUBLIC);
   getName.newComment().addLine("The enumeration items name.");
   getName.addLine("return ", name, ";");

   JavaMethod getValue = pSource.newJavaMethod("getValue", String.class,
                                              JavaSource.PUBLIC);
   getValue.newComment().addLine("The enumeration items value.");
View Full Code Here

Examples of org.apache.ws.jaxme.js.JavaMethod.newComment()

   getName.newComment().addLine("The enumeration items name.");
   getName.addLine("return ", name, ";");

   JavaMethod getValue = pSource.newJavaMethod("getValue", String.class,
                                              JavaSource.PUBLIC);
   getValue.newComment().addLine("The enumeration items value.");
   getValue.addLine("return ", value, ";");

   JavaMethod getInstances = pSource.newJavaMethod("getInstances", arrayType,
                                                  JavaSource.PUBLIC);
   getInstances.setStatic(true);
View Full Code Here

Examples of org.apache.ws.jaxme.js.JavaMethod.newComment()

   JavaMethod getInstanceByName = pSource.newJavaMethod("getInstanceByName",
                                                       pSource.getQName(),
                                                       JavaSource.PUBLIC);
    getInstanceByName.setStatic(true);
   getInstanceByName.addParam(String.class, "pName");
   JavaComment jc = getInstanceByName.newComment();
   jc.addLine("Returns the item with the given name.</p>");
   jc.addThrows(IllegalArgumentException.class.getName() +
               " The name <code>pName</code> is invalid and no such item exists.");
   getInstanceByName.addLine(String.class, " s = pName.intern();");
   boolean first = true;
View Full Code Here

Examples of org.apache.ws.jaxme.js.JavaMethod.newComment()

   JavaMethod getInstanceByValue = pSource.newJavaMethod("getInstanceByValue",
                                       pSource.getQName(),
                                       JavaSource.PUBLIC);
   getInstanceByValue.setStatic(true);
   getInstanceByValue.addParam(String.class, "pValue");
   jc = getInstanceByValue.newComment();
   jc.addLine("Returns the item with the given value.</p>");
   jc.addThrows(IllegalArgumentException.class.getName() +
            " The name <code>pValue</code> is invalid and no such item exists.");
   getInstanceByValue.addLine(String.class, " s = pValue.intern();");
   first = true;
View Full Code Here

Examples of org.apache.ws.jaxme.js.JavaMethod.newComment()

    JavaQName type = f.getType();
    if(type.getPackageName().startsWith("java")) {
      try {
        // we suppose java types are good boys, willing to work quietly
        JavaMethod method = js.newJavaMethod(getMethodName(f), getFieldInformerType(type));
        JavaComment comment = method.newComment();
        comment.addLine("");
        comment.addLine("Gets the FieldInformer associated to "+f.getName()+
            ". its type has been defined according to FieldInformerLocator current implementation code.");
        comment.addSee(f.getJavaSource().getQName().toString()+"#"+f.getName());
      } catch(NoInformerForThisType e) {
View Full Code Here

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

    public JavaSource getDispatcher(JavaQName pQName) {
      JavaSource js = getFactory().newJavaSource(pQName, JavaSource.PUBLIC);
        if (isDispatcherImplementsXmlRpcHandler()) {
          js.addImport(JavaQNameImpl.getInstance("org.apache.xmlrpc.XmlRpcHandler", true));
        }
      JavaComment comment = js.newComment();
        comment.addLine("The dispatcher is being used by the XmlRpcServer.");
        comment.addLine("It delegates incoming XML-RPC calls to the classes");
        comment.addLine("and methods, for which client classes have been");
        comment.addLine("created by the " +
                        XmlRpcClientGenerator.class.getName() + ".");
View Full Code Here

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

    factory.setOverwriteForced(true);
    // Let the factory create a Java source class
    // "com.mycompany.demo.Parser"
    JavaQName className = getBusinessInformer(sourceClass.getQName());
    JavaSource js = factory.newJavaSource(className, "public");
    JavaComment comment = js.newComment();
    comment.addLine("");
    comment.addLine("Define improved Informer for "+sourceClass.getClassName()+".");
    comment.addLine("Elements of this method allows easier usage of improved gaedo finders.");
    comment.addLine("The instances of FieldInformer used for that class various fields have been chosen according to FieldInformerLocator current implementation.");
    comment.addLine("As a consequence, the behaviour of this method has guaranteed comaptibilty with most of gaedo code");
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.