|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.felix.bundlerepository.impl.DataModelHelperImpl
public class DataModelHelperImpl
Field Summary | |
---|---|
static java.lang.String |
BUNDLE_LICENSE
|
static java.lang.String |
BUNDLE_SOURCE
|
Constructor Summary | |
---|---|
DataModelHelperImpl()
|
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. |
ResourceImpl |
createResource(org.apache.felix.bundlerepository.impl.DataModelHelperImpl.Headers headers)
|
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)
|
RepositoryImpl |
repository(java.io.InputStream is)
|
Repository |
repository(Resource[] resources)
Create a repository for the given set of resources. |
Repository |
repository(java.net.URL url)
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)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String BUNDLE_LICENSE
public static final java.lang.String BUNDLE_SOURCE
Constructor Detail |
---|
public DataModelHelperImpl()
Method Detail |
---|
public Requirement requirement(java.lang.String name, java.lang.String filter)
DataModelHelper
requirement
in interface DataModelHelper
public org.osgi.framework.Filter filter(java.lang.String filter)
DataModelHelper
filter
in interface DataModelHelper
filter
- the string filter
public Repository repository(java.net.URL url) throws java.lang.Exception
DataModelHelper
repository
in interface DataModelHelper
java.lang.Exception
public RepositoryImpl repository(java.io.InputStream is) throws java.lang.Exception
java.lang.Exception
public Repository repository(Resource[] resources)
DataModelHelper
repository
in interface DataModelHelper
resources
- an array of resources
public Capability capability(java.lang.String name, java.util.Map properties)
DataModelHelper
capability
in interface DataModelHelper
name
- name of this capabilityproperties
- the properties
public java.lang.String writeRepository(Repository repository)
writeRepository
in interface DataModelHelper
public void writeRepository(Repository repository, java.io.Writer writer) throws java.io.IOException
writeRepository
in interface DataModelHelper
java.io.IOException
public java.lang.String writeResource(Resource resource)
writeResource
in interface DataModelHelper
public void writeResource(Resource resource, java.io.Writer writer) throws java.io.IOException
writeResource
in interface DataModelHelper
java.io.IOException
public java.lang.String writeCapability(Capability capability)
writeCapability
in interface DataModelHelper
public void writeCapability(Capability capability, java.io.Writer writer) throws java.io.IOException
writeCapability
in interface DataModelHelper
java.io.IOException
public java.lang.String writeRequirement(Requirement requirement)
writeRequirement
in interface DataModelHelper
public void writeRequirement(Requirement requirement, java.io.Writer writer) throws java.io.IOException
writeRequirement
in interface DataModelHelper
java.io.IOException
public java.lang.String writeProperty(Property property)
writeProperty
in interface DataModelHelper
public void writeProperty(Property property, java.io.Writer writer) throws java.io.IOException
writeProperty
in interface DataModelHelper
java.io.IOException
public Resource createResource(org.osgi.framework.Bundle bundle)
DataModelHelper
createResource
in interface DataModelHelper
bundle
- the bundle
public Resource createResource(java.net.URL bundleUrl) throws java.io.IOException
DataModelHelper
createResource
in interface DataModelHelper
bundleUrl
- the location of the bundle
java.io.IOException
public Resource createResource(java.util.jar.Attributes attributes)
DataModelHelper
createResource
in interface DataModelHelper
attributes
- the manifest headers
public ResourceImpl createResource(org.apache.felix.bundlerepository.impl.DataModelHelperImpl.Headers headers)
public Repository readRepository(java.lang.String xml) throws java.lang.Exception
readRepository
in interface DataModelHelper
java.lang.Exception
public Repository readRepository(java.io.Reader reader) throws java.lang.Exception
readRepository
in interface DataModelHelper
java.lang.Exception
public Resource readResource(java.lang.String xml) throws java.lang.Exception
readResource
in interface DataModelHelper
java.lang.Exception
public Resource readResource(java.io.Reader reader) throws java.lang.Exception
readResource
in interface DataModelHelper
java.lang.Exception
public Capability readCapability(java.lang.String xml) throws java.lang.Exception
readCapability
in interface DataModelHelper
java.lang.Exception
public Capability readCapability(java.io.Reader reader) throws java.lang.Exception
readCapability
in interface DataModelHelper
java.lang.Exception
public Requirement readRequirement(java.lang.String xml) throws java.lang.Exception
readRequirement
in interface DataModelHelper
java.lang.Exception
public Requirement readRequirement(java.io.Reader reader) throws java.lang.Exception
readRequirement
in interface DataModelHelper
java.lang.Exception
public Property readProperty(java.lang.String xml) throws java.lang.Exception
readProperty
in interface DataModelHelper
java.lang.Exception
public Property readProperty(java.io.Reader reader) throws java.lang.Exception
readProperty
in interface DataModelHelper
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |