Class OBRXMLWriter


  • public class OBRXMLWriter
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      OBRXMLWriter()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      private static void addAttr​(org.xml.sax.helpers.AttributesImpl atts, java.lang.String name, java.lang.Object value)  
      private static void addAttr​(org.xml.sax.helpers.AttributesImpl atts, java.lang.String name, java.lang.String value)  
      private static void appendVersion​(java.lang.StringBuilder filter, VersionRange v)  
      private static java.lang.String buildFilter​(BundleRequirement requirement)  
      private static void characters​(org.xml.sax.ContentHandler handler, java.lang.String value)  
      private static void endElement​(org.xml.sax.ContentHandler handler, java.lang.String name)  
      static org.xml.sax.ContentHandler newHandler​(java.io.OutputStream out, java.lang.String encoding, boolean indent)  
      private static void saxBundleInfo​(BundleInfo bundleInfo, org.xml.sax.ContentHandler handler)  
      private static void saxCapability​(BundleCapability capability, org.xml.sax.ContentHandler handler)  
      private static void saxCapabilityProperty​(java.lang.String n, java.lang.String t, java.lang.String v, org.xml.sax.ContentHandler handler)  
      private static void saxCapabilityProperty​(java.lang.String n, java.lang.String v, org.xml.sax.ContentHandler handler)  
      private static void saxRequirement​(BundleRequirement requirement, org.xml.sax.ContentHandler handler)  
      private static void startElement​(org.xml.sax.ContentHandler handler, java.lang.String name)  
      static void writeBundles​(java.lang.Iterable<BundleInfo> bundleInfos, org.xml.sax.ContentHandler handler)  
      static void writeManifests​(java.lang.Iterable<ManifestAndLocation> manifestAndLocations, org.xml.sax.ContentHandler handler, boolean quiet)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • OBRXMLWriter

        public OBRXMLWriter()
    • Method Detail

      • newHandler

        public static org.xml.sax.ContentHandler newHandler​(java.io.OutputStream out,
                                                            java.lang.String encoding,
                                                            boolean indent)
                                                     throws javax.xml.transform.TransformerConfigurationException
        Throws:
        javax.xml.transform.TransformerConfigurationException
      • writeManifests

        public static void writeManifests​(java.lang.Iterable<ManifestAndLocation> manifestAndLocations,
                                          org.xml.sax.ContentHandler handler,
                                          boolean quiet)
                                   throws org.xml.sax.SAXException
        Throws:
        org.xml.sax.SAXException
      • writeBundles

        public static void writeBundles​(java.lang.Iterable<BundleInfo> bundleInfos,
                                        org.xml.sax.ContentHandler handler)
                                 throws org.xml.sax.SAXException
        Throws:
        org.xml.sax.SAXException
      • saxBundleInfo

        private static void saxBundleInfo​(BundleInfo bundleInfo,
                                          org.xml.sax.ContentHandler handler)
                                   throws org.xml.sax.SAXException
        Throws:
        org.xml.sax.SAXException
      • saxCapability

        private static void saxCapability​(BundleCapability capability,
                                          org.xml.sax.ContentHandler handler)
                                   throws org.xml.sax.SAXException
        Throws:
        org.xml.sax.SAXException
      • saxCapabilityProperty

        private static void saxCapabilityProperty​(java.lang.String n,
                                                  java.lang.String v,
                                                  org.xml.sax.ContentHandler handler)
                                           throws org.xml.sax.SAXException
        Throws:
        org.xml.sax.SAXException
      • saxCapabilityProperty

        private static void saxCapabilityProperty​(java.lang.String n,
                                                  java.lang.String t,
                                                  java.lang.String v,
                                                  org.xml.sax.ContentHandler handler)
                                           throws org.xml.sax.SAXException
        Throws:
        org.xml.sax.SAXException
      • saxRequirement

        private static void saxRequirement​(BundleRequirement requirement,
                                           org.xml.sax.ContentHandler handler)
                                    throws org.xml.sax.SAXException
        Throws:
        org.xml.sax.SAXException
      • buildFilter

        private static java.lang.String buildFilter​(BundleRequirement requirement)
      • appendVersion

        private static void appendVersion​(java.lang.StringBuilder filter,
                                          VersionRange v)
      • addAttr

        private static void addAttr​(org.xml.sax.helpers.AttributesImpl atts,
                                    java.lang.String name,
                                    java.lang.String value)
      • addAttr

        private static void addAttr​(org.xml.sax.helpers.AttributesImpl atts,
                                    java.lang.String name,
                                    java.lang.Object value)
      • startElement

        private static void startElement​(org.xml.sax.ContentHandler handler,
                                         java.lang.String name)
                                  throws org.xml.sax.SAXException
        Throws:
        org.xml.sax.SAXException
      • endElement

        private static void endElement​(org.xml.sax.ContentHandler handler,
                                       java.lang.String name)
                                throws org.xml.sax.SAXException
        Throws:
        org.xml.sax.SAXException
      • characters

        private static void characters​(org.xml.sax.ContentHandler handler,
                                       java.lang.String value)
                                throws org.xml.sax.SAXException
        Throws:
        org.xml.sax.SAXException