|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DataModelHelper
Method Summary | |
---|---|
Capability |
capability(java.lang.String name,
java.util.Map properties)
Create a capability |
Resource |
createResource(java.util.jar.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. |
Resource |
createResource(java.net.URL bundleUrl)
Create a resource for the bundle located at the given location. |
org.osgi.framework.Filter |
filter(java.lang.String filter)
Create an extender filter supporting the SUBSET, SUPERSET and other extensions |
Capability |
readCapability(java.io.Reader reader)
|
Capability |
readCapability(java.lang.String xml)
|
Property |
readProperty(java.io.Reader reader)
|
Property |
readProperty(java.lang.String xml)
|
Repository |
readRepository(java.io.Reader reader)
|
Repository |
readRepository(java.lang.String xml)
|
Requirement |
readRequirement(java.io.Reader reader)
|
Requirement |
readRequirement(java.lang.String xml)
|
Resource |
readResource(java.io.Reader reader)
|
Resource |
readResource(java.lang.String xml)
|
Repository |
repository(Resource[] resources)
Create a repository for the given set of resources. |
Repository |
repository(java.net.URL repository)
Create a repository from the specified URL. |
Requirement |
requirement(java.lang.String name,
java.lang.String filter)
Create a simple requirement to be used for selection |
java.lang.String |
writeCapability(Capability capability)
|
void |
writeCapability(Capability capability,
java.io.Writer writer)
|
java.lang.String |
writeProperty(Property property)
|
void |
writeProperty(Property property,
java.io.Writer writer)
|
java.lang.String |
writeRepository(Repository repository)
|
void |
writeRepository(Repository repository,
java.io.Writer writer)
|
java.lang.String |
writeRequirement(Requirement requirement)
|
void |
writeRequirement(Requirement requirement,
java.io.Writer writer)
|
java.lang.String |
writeResource(Resource resource)
|
void |
writeResource(Resource resource,
java.io.Writer writer)
|
Method Detail |
---|
Requirement requirement(java.lang.String name, java.lang.String filter)
name
- filter
-
org.osgi.framework.InvalidSyntaxException
org.osgi.framework.Filter filter(java.lang.String filter) throws org.osgi.framework.InvalidSyntaxException
filter
- the string filter
org.osgi.framework.InvalidSyntaxException
Repository repository(java.net.URL repository) throws java.lang.Exception
repository
-
java.lang.Exception
Repository repository(Resource[] resources)
resources
- an array of resources
Capability capability(java.lang.String name, java.util.Map properties)
name
- name of this capabilityproperties
- the properties
Resource createResource(org.osgi.framework.Bundle bundle)
bundle
- the bundle
Resource createResource(java.net.URL bundleUrl) throws java.io.IOException
bundleUrl
- the location of the bundle
java.io.IOException
Resource createResource(java.util.jar.Attributes attributes)
attributes
- the manifest headers
Repository readRepository(java.lang.String xml) throws java.lang.Exception
java.lang.Exception
Repository readRepository(java.io.Reader reader) throws java.lang.Exception
java.lang.Exception
Resource readResource(java.lang.String xml) throws java.lang.Exception
java.lang.Exception
Resource readResource(java.io.Reader reader) throws java.lang.Exception
java.lang.Exception
Capability readCapability(java.lang.String xml) throws java.lang.Exception
java.lang.Exception
Capability readCapability(java.io.Reader reader) throws java.lang.Exception
java.lang.Exception
Requirement readRequirement(java.lang.String xml) throws java.lang.Exception
java.lang.Exception
Requirement readRequirement(java.io.Reader reader) throws java.lang.Exception
java.lang.Exception
Property readProperty(java.lang.String xml) throws java.lang.Exception
java.lang.Exception
Property readProperty(java.io.Reader reader) throws java.lang.Exception
java.lang.Exception
java.lang.String writeRepository(Repository repository)
void writeRepository(Repository repository, java.io.Writer writer) throws java.io.IOException
java.io.IOException
java.lang.String writeResource(Resource resource)
void writeResource(Resource resource, java.io.Writer writer) throws java.io.IOException
java.io.IOException
java.lang.String writeCapability(Capability capability)
void writeCapability(Capability capability, java.io.Writer writer) throws java.io.IOException
java.io.IOException
java.lang.String writeRequirement(Requirement requirement)
void writeRequirement(Requirement requirement, java.io.Writer writer) throws java.io.IOException
java.io.IOException
java.lang.String writeProperty(Property property)
void writeProperty(Property property, java.io.Writer writer) throws java.io.IOException
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |