DataModelHelperImplpublic interface DataModelHelper
| Modifier and Type | Method | Description |
|---|---|---|
Capability |
capability(String name,
Map properties) |
Create a capability
|
Resource |
createResource(URL bundleUrl) |
Create a resource for the bundle located at the
given location.
|
Resource |
createResource(Attributes attributes) |
Create a resource corresponding to the given manifest
entries.
|
Resource |
createResource(org.osgi.framework.Bundle bundle) |
Create a resource corresponding to the given bundle.
|
org.osgi.framework.Filter |
filter(String filter) |
Create an extender filter supporting the SUBSET, SUPERSET and other extensions
|
Capability |
readCapability(Reader reader) |
|
Capability |
readCapability(String xml) |
|
Property |
readProperty(Reader reader) |
|
Property |
readProperty(String xml) |
|
Repository |
readRepository(Reader reader) |
|
Repository |
readRepository(String xml) |
|
Requirement |
readRequirement(Reader reader) |
|
Requirement |
readRequirement(String xml) |
|
Resource |
readResource(Reader reader) |
|
Resource |
readResource(String xml) |
|
Repository |
repository(URL repository) |
Create a repository from the specified URL.
|
Repository |
repository(Resource[] resources) |
Create a repository for the given set of resources.
|
Requirement |
requirement(String name,
String filter) |
Create a simple requirement to be used for selection
|
String |
writeCapability(Capability capability) |
|
void |
writeCapability(Capability capability,
Writer writer) |
|
String |
writeProperty(Property property) |
|
void |
writeProperty(Property property,
Writer writer) |
|
String |
writeRepository(Repository repository) |
|
void |
writeRepository(Repository repository,
Writer writer) |
|
String |
writeRequirement(Requirement requirement) |
|
void |
writeRequirement(Requirement requirement,
Writer writer) |
|
String |
writeResource(Resource resource) |
|
void |
writeResource(Resource resource,
Writer writer) |
Requirement requirement(String name, String filter)
name - filter - org.osgi.framework.InvalidSyntaxExceptionorg.osgi.framework.Filter filter(String filter) throws org.osgi.framework.InvalidSyntaxException
filter - the string filterorg.osgi.framework.InvalidSyntaxExceptionRepository repository(URL repository) throws Exception
repository - ExceptionRepository repository(Resource[] resources)
resources - an array of resourcesCapability capability(String name, Map properties)
name - name of this capabilityproperties - the propertiesResource createResource(org.osgi.framework.Bundle bundle)
bundle - the bundleResource createResource(URL bundleUrl) throws IOException
bundleUrl - the location of the bundleIOExceptionResource createResource(Attributes attributes)
attributes - the manifest headersRepository readRepository(String xml) throws Exception
ExceptionRepository readRepository(Reader reader) throws Exception
ExceptionCapability readCapability(String xml) throws Exception
ExceptionCapability readCapability(Reader reader) throws Exception
ExceptionRequirement readRequirement(String xml) throws Exception
ExceptionRequirement readRequirement(Reader reader) throws Exception
ExceptionString writeRepository(Repository repository)
void writeRepository(Repository repository, Writer writer) throws IOException
IOExceptionvoid writeResource(Resource resource, Writer writer) throws IOException
IOExceptionString writeCapability(Capability capability)
void writeCapability(Capability capability, Writer writer) throws IOException
IOExceptionString writeRequirement(Requirement requirement)
void writeRequirement(Requirement requirement, Writer writer) throws IOException
IOExceptionvoid writeProperty(Property property, Writer writer) throws IOException
IOExceptionCopyright © 2018. All rights reserved.