DataModelHelperImpl
public 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.InvalidSyntaxException
org.osgi.framework.Filter filter(String filter) throws org.osgi.framework.InvalidSyntaxException
filter
- the string filterorg.osgi.framework.InvalidSyntaxException
Repository repository(URL repository) throws Exception
repository
- Exception
Repository 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 bundleIOException
Resource createResource(Attributes attributes)
attributes
- the manifest headersRepository readRepository(String xml) throws Exception
Exception
Repository readRepository(Reader reader) throws Exception
Exception
Capability readCapability(String xml) throws Exception
Exception
Capability readCapability(Reader reader) throws Exception
Exception
Requirement readRequirement(String xml) throws Exception
Exception
Requirement readRequirement(Reader reader) throws Exception
Exception
String writeRepository(Repository repository)
void writeRepository(Repository repository, Writer writer) throws IOException
IOException
void writeResource(Resource resource, Writer writer) throws IOException
IOException
String writeCapability(Capability capability)
void writeCapability(Capability capability, Writer writer) throws IOException
IOException
String writeRequirement(Requirement requirement)
void writeRequirement(Requirement requirement, Writer writer) throws IOException
IOException
void writeProperty(Property property, Writer writer) throws IOException
IOException
Copyright © 2018. All rights reserved.