1 15 package org.apache.hivemind.parse; 16 17 import java.util.ArrayList ; 18 import java.util.Collections ; 19 import java.util.List ; 20 21 import org.apache.hivemind.Element; 22 import org.apache.hivemind.util.ToStringBuilder; 23 24 29 public final class ContributionDescriptor extends BaseAnnotationHolder 30 { 31 private String _configurationId; 32 33 private List _elements; 34 35 36 private String _conditionalExpression; 37 38 42 public String getConfigurationId() 43 { 44 return _configurationId; 45 } 46 47 public void setConfigurationId(String string) 48 { 49 _configurationId = string; 50 } 51 52 public String toString() 53 { 54 ToStringBuilder builder = new ToStringBuilder(this); 55 builder.append("configurationId", _configurationId); 56 builder.append("conditionalExpression", _conditionalExpression); 57 58 return builder.toString(); 59 } 60 61 public void addElement(Element element) 62 { 63 if (_elements == null) 64 _elements = new ArrayList (); 65 66 _elements.add(element); 67 } 68 69 public List getElements() 70 { 71 if (_elements == null) 72 return Collections.EMPTY_LIST; 73 74 return _elements; 75 } 76 77 78 public String getConditionalExpression() 79 { 80 return _conditionalExpression; 81 } 82 83 84 public void setConditionalExpression(String conditionalExpression) 85 { 86 _conditionalExpression = conditionalExpression; 87 } 88 } | Popular Tags |