Interface DataModelHelper
- All Known Implementing Classes:
DataModelHelperImpl
public interface DataModelHelper
-
Method Summary
Modifier and TypeMethodDescriptioncapability
(String name, Map properties) Create a capabilitycreateResource
(URL bundleUrl) Create a resource for the bundle located at the given location.createResource
(Attributes attributes) Create a resource corresponding to the given manifest entries.createResource
(org.osgi.framework.Bundle bundle) Create a resource corresponding to the given bundle.org.osgi.framework.Filter
Create an extender filter supporting the SUBSET, SUPERSET and other extensionsreadCapability
(Reader reader) readCapability
(String xml) readProperty
(Reader reader) readProperty
(String xml) readRepository
(Reader reader) readRepository
(String xml) readRequirement
(Reader reader) readRequirement
(String xml) readResource
(Reader reader) readResource
(String xml) repository
(URL repository) Create a repository from the specified URL.repository
(Resource[] resources) Create a repository for the given set of resources.requirement
(String name, String filter) Create a simple requirement to be used for selectionwriteCapability
(Capability capability) void
writeCapability
(Capability capability, Writer writer) writeProperty
(Property property) void
writeProperty
(Property property, Writer writer) writeRepository
(Repository repository) void
writeRepository
(Repository repository, Writer writer) writeRequirement
(Requirement requirement) void
writeRequirement
(Requirement requirement, Writer writer) writeResource
(Resource resource) void
writeResource
(Resource resource, Writer writer)
-
Method Details
-
requirement
Create a simple requirement to be used for selection- Parameters:
name
-filter
-- Returns:
- Throws:
org.osgi.framework.InvalidSyntaxException
-
filter
Create an extender filter supporting the SUBSET, SUPERSET and other extensions- Parameters:
filter
- the string filter- Returns:
- Throws:
org.osgi.framework.InvalidSyntaxException
-
repository
Create a repository from the specified URL.- Parameters:
repository
-- Returns:
- Throws:
Exception
-
repository
Create a repository for the given set of resources. Such repositories can be used to create a resolver that would resolve on a subset of available resources instead of all of them.- Parameters:
resources
- an array of resources- Returns:
- a repository containing the given resources
-
capability
Create a capability- Parameters:
name
- name of this capabilityproperties
- the properties- Returns:
- a new capability with the specified name and properties
-
createResource
Create a resource corresponding to the given bundle.- Parameters:
bundle
- the bundle- Returns:
- the corresponding resource
-
createResource
Create a resource for the bundle located at the given location.- Parameters:
bundleUrl
- the location of the bundle- Returns:
- the corresponding resource
- Throws:
IOException
-
createResource
Create a resource corresponding to the given manifest entries.- Parameters:
attributes
- the manifest headers- Returns:
- the corresponding resource
-
readRepository
- Throws:
Exception
-
readRepository
- Throws:
Exception
-
readResource
- Throws:
Exception
-
readResource
- Throws:
Exception
-
readCapability
- Throws:
Exception
-
readCapability
- Throws:
Exception
-
readRequirement
- Throws:
Exception
-
readRequirement
- Throws:
Exception
-
readProperty
- Throws:
Exception
-
readProperty
- Throws:
Exception
-
writeRepository
-
writeRepository
- Throws:
IOException
-
writeResource
-
writeResource
- Throws:
IOException
-
writeCapability
-
writeCapability
- Throws:
IOException
-
writeRequirement
-
writeRequirement
- Throws:
IOException
-
writeProperty
-
writeProperty
- Throws:
IOException
-