public class XMLResourceGenerator
extends java.lang.Object
http://www.osgi.org/xmlns/repository/v1.0.0 XML file. See the
Repository spec in OSGi.| Modifier and Type | Field and Description |
|---|---|
private boolean |
compress |
private int |
indent |
private Tag |
repository |
private java.util.Set<org.osgi.resource.Resource> |
visited |
| Constructor and Description |
|---|
XMLResourceGenerator() |
| Modifier and Type | Method and Description |
|---|---|
private void |
attributes(Tag cr,
java.util.Map<java.lang.String,java.lang.Object> atrributes) |
XMLResourceGenerator |
compress() |
private void |
directives(Tag cr,
java.util.Map<java.lang.String,java.lang.String> directives) |
XMLResourceGenerator |
indent(int n) |
XMLResourceGenerator |
name(java.lang.String name) |
XMLResourceGenerator |
referral(java.net.URI reference,
int depth) |
XMLResourceGenerator |
repository(org.osgi.service.repository.Repository repository) |
XMLResourceGenerator |
resource(org.osgi.resource.Resource resource) |
XMLResourceGenerator |
resources(java.util.Collection<? extends org.osgi.resource.Resource> resources) |
void |
save(java.io.File location) |
void |
save(java.io.OutputStream out) |
private Tag repository
private java.util.Set<org.osgi.resource.Resource> visited
private int indent
private boolean compress
public void save(java.io.File location)
throws java.io.IOException
java.io.IOExceptionpublic void save(java.io.OutputStream out)
throws java.io.IOException
java.io.IOExceptionpublic XMLResourceGenerator name(java.lang.String name)
public XMLResourceGenerator referral(java.net.URI reference, int depth)
public XMLResourceGenerator repository(org.osgi.service.repository.Repository repository) throws java.lang.Exception
java.lang.Exceptionpublic XMLResourceGenerator resources(java.util.Collection<? extends org.osgi.resource.Resource> resources) throws java.lang.Exception
java.lang.Exceptionpublic XMLResourceGenerator resource(org.osgi.resource.Resource resource) throws java.lang.Exception
java.lang.Exceptionprivate void directives(Tag cr, java.util.Map<java.lang.String,java.lang.String> directives)
private void attributes(Tag cr, java.util.Map<java.lang.String,java.lang.Object> atrributes) throws java.lang.Exception
java.lang.Exceptionpublic XMLResourceGenerator indent(int n)
public XMLResourceGenerator compress()