Package org.apache.ivy.osgi.obr.xml
Class OBRXMLWriter
java.lang.Object
org.apache.ivy.osgi.obr.xml.OBRXMLWriter
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static void
addAttr
(AttributesImpl atts, String name, Object value) private static void
addAttr
(AttributesImpl atts, String name, String value) private static void
appendVersion
(StringBuilder filter, VersionRange v) private static String
buildFilter
(BundleRequirement requirement) private static void
characters
(ContentHandler handler, String value) private static void
endElement
(ContentHandler handler, String name) static ContentHandler
newHandler
(OutputStream out, String encoding, boolean indent) private static void
saxBundleInfo
(BundleInfo bundleInfo, ContentHandler handler) private static void
saxCapability
(BundleCapability capability, ContentHandler handler) private static void
saxCapabilityProperty
(String n, String t, String v, ContentHandler handler) private static void
saxCapabilityProperty
(String n, String v, ContentHandler handler) private static void
saxRequirement
(BundleRequirement requirement, ContentHandler handler) private static void
startElement
(ContentHandler handler, String name) static void
writeBundles
(Iterable<BundleInfo> bundleInfos, ContentHandler handler) static void
writeManifests
(Iterable<ManifestAndLocation> manifestAndLocations, ContentHandler handler, boolean quiet)
-
Constructor Details
-
OBRXMLWriter
public OBRXMLWriter()
-
-
Method Details
-
newHandler
public static ContentHandler newHandler(OutputStream out, String encoding, boolean indent) throws TransformerConfigurationException -
writeManifests
public static void writeManifests(Iterable<ManifestAndLocation> manifestAndLocations, ContentHandler handler, boolean quiet) throws SAXException - Throws:
SAXException
-
writeBundles
public static void writeBundles(Iterable<BundleInfo> bundleInfos, ContentHandler handler) throws SAXException - Throws:
SAXException
-
saxBundleInfo
private static void saxBundleInfo(BundleInfo bundleInfo, ContentHandler handler) throws SAXException - Throws:
SAXException
-
saxCapability
private static void saxCapability(BundleCapability capability, ContentHandler handler) throws SAXException - Throws:
SAXException
-
saxCapabilityProperty
private static void saxCapabilityProperty(String n, String v, ContentHandler handler) throws SAXException - Throws:
SAXException
-
saxCapabilityProperty
private static void saxCapabilityProperty(String n, String t, String v, ContentHandler handler) throws SAXException - Throws:
SAXException
-
saxRequirement
private static void saxRequirement(BundleRequirement requirement, ContentHandler handler) throws SAXException - Throws:
SAXException
-
buildFilter
-
appendVersion
-
addAttr
-
addAttr
-
startElement
- Throws:
SAXException
-
endElement
- Throws:
SAXException
-
characters
- Throws:
SAXException
-