1 16 package org.jmanage.core.management; 17 18 23 public class ObjectOperationInfo extends ObjectFeatureInfo { 24 25 public static final int INFO = 0; 26 public static final int ACTION = 1; 27 public static final int ACTION_INFO = 2; 28 public static final int UNKNOWN = 3; 29 30 private String type; 31 private ObjectParameterInfo[] signature; 32 private int impact; 33 34 public ObjectOperationInfo(String name, 35 String description, 36 ObjectParameterInfo[] signature, 37 String returnType, 38 int impact) { 39 super(name, description); 40 this.signature = signature; 41 this.type = returnType; 42 this.impact = impact; 43 } 44 45 public int getImpact() { 46 return impact; 47 } 48 49 public String getReturnType() { 50 return type; 51 } 52 53 public String getDisplayReturnType(){ 54 return getDisplayType(type); 55 } 56 57 public ObjectParameterInfo[] getSignature() { 58 return signature; 59 } 60 61 public String [] getParameters(){ 62 String [] parameters = new String [signature.length]; 63 for(int i=0; i<signature.length; i++){ 64 parameters[i] = signature[i].getType(); 65 } 66 return parameters; 67 } 68 } 69 | Popular Tags |