Package aQute.bnd.osgi.repository
Class XMLResourceGenerator
java.lang.Object
aQute.bnd.osgi.repository.XMLResourceGenerator
Can turn an OSGi repository into an
http://www.osgi.org/xmlns/repository/v1.0.0
XML file. See the
Repository spec in OSGi.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate void
attributes
(Tag cr, Map<String, Object> attributes) compress()
private void
directives
(Tag cr, Map<String, String> directives) increment
(long increment) Note that callingname(String)
sets increment toSystem.currentTimeMillis()
.indent
(int n) private boolean
Note that callingname(String)
sets increment toSystem.currentTimeMillis()
.private String
relativize
(String value) repository
(org.osgi.service.repository.Repository repository) resource
(org.osgi.resource.Resource resource) resources
(Collection<? extends org.osgi.resource.Resource> resources) void
void
save
(OutputStream out)
-
Field Details
-
repository
-
visited
-
indent
private int indent -
compress
private boolean compress -
base
-
-
Constructor Details
-
XMLResourceGenerator
public XMLResourceGenerator()
-
-
Method Details
-
save
- Throws:
IOException
-
save
- Throws:
IOException
-
name
Note that callingname(String)
sets increment toSystem.currentTimeMillis()
. In order to retain backward compatibility that is not change. Therefore, in order to specify a valueincrement(long)
should be called after.- Parameters:
name
-- Returns:
- this
-
increment
Note that callingname(String)
sets increment toSystem.currentTimeMillis()
. In order to retain backward compatibility that is not change. Therefore, in order to specify a valueincrement(long)
should be called after.- Parameters:
increment
-- Returns:
- this
-
referral
-
repository
-
resources
-
resource
-
directives
-
attributes
-
isContent
-
relativize
-
indent
-
compress
-
base
- Parameters:
base
- the base URI from which the index urls are relative
-