Class JavaLanguageVariableFactory

java.lang.Object
com.logicaldoc.webservice.doc.service.JavaLanguageVariableFactory

public class JavaLanguageVariableFactory extends Object
Author:
chenjianjx
  • Method Details

    • createVariableFromField

      public static JavaLanguageVariable createVariableFromField(Field field)
      Creates a variable from a field which is @XmlElement annotated
      Parameters:
      field - the field
      Returns:
      the variable
    • createVariablesFromMethodParamaters

      public static List<JavaLanguageVariable> createVariablesFromMethodParamaters(Method method)
      Creates variables from parameters which are @WebParam annotated
      Parameters:
      method - the method
      Returns:
      list of variables
    • createVariableFromMethodReturn

      public static JavaLanguageVariable createVariableFromMethodReturn(Method method)
      Creates a variable from a method's return which is @WebResult annotated
      Parameters:
      method - the method
      Returns:
      the vaiable