Stuart McCulloch | 669423b | 2012-06-26 16:34:24 +0000 | [diff] [blame^] | 1 | package aQute.bnd.build.model.clauses; |
| 2 | |
| 3 | import org.osgi.framework.Constants; |
| 4 | |
| 5 | import aQute.libg.header.Attrs; |
| 6 | |
| 7 | public class VersionedClause extends HeaderClause implements Cloneable { |
| 8 | public VersionedClause(String name, Attrs attribs) { |
| 9 | super(name, attribs); |
| 10 | } |
| 11 | |
| 12 | public String getVersionRange() { |
| 13 | return attribs.get(Constants.VERSION_ATTRIBUTE); |
| 14 | } |
| 15 | |
| 16 | public void setVersionRange(String versionRangeString) { |
| 17 | attribs.put(Constants.VERSION_ATTRIBUTE, versionRangeString); |
| 18 | } |
| 19 | |
| 20 | @Override |
| 21 | public VersionedClause clone() { |
| 22 | VersionedClause clone = (VersionedClause) super.clone(); |
| 23 | clone.name = this.name; |
| 24 | clone.attribs = new Attrs(this.attribs); |
| 25 | return clone; |
| 26 | } |
| 27 | } |