1 64 package com.jcorporate.expresso.kernel.metadata; 65 66 import java.util.ArrayList ; 67 import java.util.List ; 68 69 74 75 public class Method { 76 77 private String name; 78 private String returnType; 79 private String description; 80 List args; 81 82 public Method() { 83 args = new ArrayList (); 84 } 85 86 public String getName() { 87 return name; 88 } 89 90 public void setName(String name) { 91 this.name = name; 92 } 93 94 public void setReturnType(String returnType) { 95 this.returnType = returnType; 96 } 97 98 public String getReturnType() { 99 return returnType; 100 } 101 102 public void setDescription(String description) { 103 this.description = description; 104 } 105 106 public String getDescription() { 107 return description; 108 } 109 110 public void addArgument(String name, String dataType) { 111 args.add(new MethodArgs(name, dataType)); 112 } 113 114 115 class MethodArgs { 116 String name; 117 String dataType; 118 119 public MethodArgs(String name, String dataType) { 120 this.name = name; 121 this.dataType = dataType; 122 123 } 124 } 125 } | Popular Tags |