1 15 package org.apache.hivemind.definition.impl; 16 17 import org.apache.hivemind.Location; 18 import org.apache.hivemind.definition.Contribution; 19 import org.apache.hivemind.definition.ContributionDefinition; 20 import org.apache.hivemind.definition.ModuleDefinition; 21 22 27 public class ContributionDefinitionImpl extends ExtensionDefinitionImpl implements ContributionDefinition 28 { 29 private Contribution _contribution; 30 private boolean _initial; 31 32 public ContributionDefinitionImpl(ModuleDefinition module) 33 { 34 super(module); 35 } 36 37 public ContributionDefinitionImpl(ModuleDefinition module, Location location, 38 Contribution contribution, boolean initial) 39 { 40 super(module, location); 41 _contribution = contribution; 42 _initial = initial; 43 } 44 45 48 public Contribution getContribution() 49 { 50 return _contribution; 51 } 52 53 56 public void setContribution(Contribution contribution) 57 { 58 _contribution = contribution; 59 } 60 61 64 public boolean isInitalContribution() 65 { 66 return _initial; 67 } 68 } 69 | Popular Tags |