aQute.bnd.build.model.conversions.VersionedClauseConverter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of biz.aQute.bndlib Show documentation
Show all versions of biz.aQute.bndlib Show documentation
bndlib: A Swiss Army Knife for OSGi
package aQute.bnd.build.model.conversions;
import aQute.bnd.build.model.clauses.HeaderClause;
import aQute.bnd.build.model.clauses.VersionedClause;
public class VersionedClauseConverter implements Converter {
@Override
public VersionedClause convert(HeaderClause input) throws IllegalArgumentException {
if (input == null)
return null;
return new VersionedClause(input.getName(), input.getAttribs());
}
@Override
public VersionedClause error(String msg) {
return VersionedClause.error(msg);
}
}