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> attributes) |
XMLResourceGenerator |
compress() |
private void |
directives(Tag cr,
java.util.Map<java.lang.String,java.lang.String> directives) |
XMLResourceGenerator |
increment(long increment)
Note that calling
name(String) sets increment to
System.currentTimeMillis() . |
XMLResourceGenerator |
indent(int n) |
XMLResourceGenerator |
name(java.lang.String name)
Note that calling
name(String) sets increment to
System.currentTimeMillis() . |
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.IOException
public void save(java.io.OutputStream out) throws java.io.IOException
java.io.IOException
public XMLResourceGenerator name(java.lang.String name)
name(String)
sets increment to
System.currentTimeMillis()
. In order to retain backward
compatibility that is not change. Therefore, in order to specify a value
increment(long)
should be called after.name
- public XMLResourceGenerator increment(long increment)
name(String)
sets increment to
System.currentTimeMillis()
. In order to retain backward
compatibility that is not change. Therefore, in order to specify a value
increment(long)
should be called after.increment
- public XMLResourceGenerator referral(java.net.URI reference, int depth)
public XMLResourceGenerator repository(org.osgi.service.repository.Repository repository)
public XMLResourceGenerator resources(java.util.Collection<? extends org.osgi.resource.Resource> resources)
public XMLResourceGenerator resource(org.osgi.resource.Resource resource)
private 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> attributes)
public XMLResourceGenerator indent(int n)
public XMLResourceGenerator compress()