aQute.bnd.build.model.clauses.VersionedClause Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bnd Show documentation
Show all versions of bnd Show documentation
A command line utility and Ant plugin to wrap, build, or examine bundles.
package aQute.bnd.build.model.clauses;
import org.osgi.framework.*;
import aQute.bnd.header.*;
public class VersionedClause extends HeaderClause implements Cloneable {
public VersionedClause(String name, Attrs attribs) {
super(name, attribs);
}
public String getVersionRange() {
return attribs.get(Constants.VERSION_ATTRIBUTE);
}
public void setVersionRange(String versionRangeString) {
attribs.put(Constants.VERSION_ATTRIBUTE, versionRangeString);
}
@Override
public VersionedClause clone() {
VersionedClause clone = (VersionedClause) super.clone();
clone.name = this.name;
clone.attribs = new Attrs(this.attribs);
return clone;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy