|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface DataModelHelper
| Method Summary | |
|---|---|
Capability |
capability(String name,
Map properties)
Create a capability |
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. |
Resource |
createResource(URL bundleUrl)
Create a resource for the bundle located at the given location. |
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(Resource[] resources)
Create a repository for the given set of resources. |
Repository |
repository(URL repository)
Create a repository from the specified URL. |
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)
|
| Method Detail |
|---|
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 filter
org.osgi.framework.InvalidSyntaxException
Repository repository(URL repository)
throws Exception
repository -
ExceptionRepository repository(Resource[] resources)
resources - an array of resources
Capability capability(String name,
Map properties)
name - name of this capabilityproperties - the properties
Resource createResource(org.osgi.framework.Bundle bundle)
bundle - the bundle
Resource createResource(URL bundleUrl)
throws IOException
bundleUrl - the location of the bundle
IOExceptionResource createResource(Attributes attributes)
attributes - the manifest headers
Repository readRepository(String xml)
throws Exception
Exception
Repository readRepository(Reader reader)
throws Exception
Exception
Resource readResource(String xml)
throws Exception
Exception
Resource readResource(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
Property readProperty(String xml)
throws Exception
Exception
Property readProperty(Reader reader)
throws Exception
ExceptionString writeRepository(Repository repository)
void writeRepository(Repository repository,
Writer writer)
throws IOException
IOExceptionString writeResource(Resource resource)
void 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
IOExceptionString writeProperty(Property property)
void writeProperty(Property property,
Writer writer)
throws IOException
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||