Class JavaLanguageVariableFactory
- java.lang.Object
-
- com.logicaldoc.webservice.doc.service.JavaLanguageVariableFactory
-
public class JavaLanguageVariableFactory extends Object
- Author:
- chenjianjx
-
-
Constructor Summary
Constructors Constructor Description JavaLanguageVariableFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static JavaLanguageVariable
createVariableFromField(Field field)
Creates a variable from a field which is @XmlElement annotatedstatic JavaLanguageVariable
createVariableFromMethodReturn(Method method)
Creates a variable from a method's return which is @WebResult annotatedstatic List<JavaLanguageVariable>
createVariablesFromMethodParamaters(Method method)
Creates variables from parameters which are @WebParam annotated
-
-
-
Method Detail
-
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
-
-