1 15 package org.apache.hivemind.parse; 16 17 import java.util.ArrayList ; 18 import java.util.List ; 19 20 import org.apache.hivemind.Element; 21 import org.apache.hivemind.impl.BaseLocatable; 22 import org.apache.hivemind.util.ToStringBuilder; 23 24 30 public abstract class AbstractServiceInvocationDescriptor extends BaseLocatable 31 { 32 private String _factoryServiceId; 33 34 private List _parameters; 35 36 public void addParameter(Element parameter) 37 { 38 if (_parameters == null) 39 _parameters = new ArrayList (); 40 41 _parameters.add(parameter); 42 } 43 44 public List getParameters() 45 { 46 return _parameters; 47 } 48 49 public String getFactoryServiceId() 50 { 51 return _factoryServiceId; 52 } 53 54 public void setFactoryServiceId(String string) 55 { 56 _factoryServiceId = string; 57 } 58 59 public String toString() 60 { 61 ToStringBuilder builder = new ToStringBuilder(this); 62 63 builder.append("factoryServiceId", _factoryServiceId); 64 builder.append("parameters", _parameters); 65 66 extendDescription(builder); 67 68 return builder.toString(); 69 } 70 71 75 protected void extendDescription(ToStringBuilder builder) 76 { 77 } 78 79 80 } 81 | Popular Tags |