
aQute.bnd.component.PropertiesDef 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
The newest version!
package aQute.bnd.component;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.stream.Stream;
import aQute.bnd.osgi.Analyzer;
import aQute.lib.tag.Tag;
public class PropertiesDef {
private final List properties = new ArrayList<>();
PropertiesDef(Analyzer analyzer) {}
boolean isEmpty() {
return properties.isEmpty();
}
PropertiesDef addProperties(String... props) {
if (props != null) {
Collections.addAll(properties, props);
}
return this;
}
Stream propertiesTags(String element) {
return properties.stream()
.map(p -> new Tag(element).addAttribute("entry", p));
}
Stream stream() {
return properties.stream();
}
@Override
public String toString() {
return properties.toString();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy