All Downloads are FREE. Search and download functionalities are using the official Maven repository.

aQute.bnd.build.model.conversions.VersionedClauseConverter Maven / Gradle / Ivy

There is a newer version: 7.0.0
Show newest version
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 {
	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);
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy