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

aQute.bnd.osgi.resource.RequirementImpl Maven / Gradle / Ivy

There is a newer version: 7.0.0
Show newest version
package aQute.bnd.osgi.resource;

import java.util.Map;

import org.osgi.resource.Requirement;
import org.osgi.resource.Resource;

public class RequirementImpl extends CapReq implements Requirement {
	static FilterParser	fp	= new FilterParser();
	String				msg	= null;

	RequirementImpl(String namespace, Resource resource, Map directives, Map attributes) {
		super(MODE.Requirement, namespace, resource, directives, attributes);
	}

	public String toString() {
		try {
			if (msg == null) {
				msg = fp.parse(this).toString();
			}
			return msg;
		} catch (Exception e) {
			return e.toString();
		}
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy