org.apache.felix.obrplugin
public class ResourcesBundle extends Object
Constructor Summary | |
---|---|
ResourcesBundle(Log log)
initialize logger. |
Method Summary | |
---|---|
void | addCapability(Capability capability)
add a new capability for this bundle description. |
void | addCategory(Category category)
add a new category for this bundle decription. |
void | addRequire(Require require)
add a new requirement for this bundle description. |
boolean | construct(MavenProject project, ExtractBindexInfo ebi, String sourcePath, String javadocPath)
this method gets information form pom.xml to complete missing data from those given by user. |
List | getCapability() |
List | getCategory() |
String | getDescription() |
String | getDocumentation() |
String | getId() |
String | getJavadoc() |
String | getLicense() |
Node | getNode(Document father)
transform this object to Node.
tranform all sub-object to node also |
String | getPresentationName() |
List | getRequire() |
String | getSize() |
String | getSource() |
String | getSymbolicName() |
String | getUri() |
String | getVersion() |
boolean | isSameBundleResource(String symbolicName, String version)
test if this bundle has the same symbolicname, and version number. |
boolean | isValid()
return if the bundle resource is complete. |
void | setCapability(List capability) |
void | setCategory(List category) |
void | setDescription(String description) |
void | setDocumentation(String documentation) |
void | setId(String id) |
void | setJavadoc(String javadoc) |
void | setLicense(String license) |
void | setPresentationName(String name) |
void | setRequire(List require) |
void | setSize(String size) |
void | setSource(String source) |
void | setSymbolicName(String name) |
void | setUri(String url) |
void | setVersion(String version) |
Parameters: log log use by plugin
Parameters: capability the Capability to add
Parameters: category the Category to add
Parameters: require th Require to add
Parameters: project project information given by maven ebi bundle information extracted from bindex sourcePath path to local sources javadocPath path to local javadocs
Returns: true
Parameters: father father document for create Node
Returns: node
Parameters: symbolicName symbolicName to compare with current bundle presentationName presentationName to compare with current bundlde version version to compare with current bundle
Returns: true if the information are the same, else false
Returns: false if an information is missing, else true