|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.felix.scrplugin.xml.ComponentDescriptorIO
public class ComponentDescriptorIO
ComponentDescriptorIO
is a helper class to read and write component descriptor files.
| Nested Class Summary | |
|---|---|
protected static class |
ComponentDescriptorIO.XmlHandler
A content handler for parsing the component descriptions. |
| Field Summary | |
|---|---|
static java.lang.String |
INNER_NAMESPACE_URI
The inner namespace - used for all inner elements. |
| Constructor Summary | |
|---|---|
ComponentDescriptorIO()
|
|
| Method Summary | |
|---|---|
static java.util.List<java.lang.String> |
generateDescriptorFiles(DescriptionContainer module,
Options options,
Log logger)
Generate descriptor file(s) |
protected static void |
generateImplementationXML(ComponentContainer component,
org.xml.sax.ContentHandler contentHandler)
Write the xml for a Implementation. |
protected static void |
generatePropertyXML(PropertyDescription property,
org.xml.sax.ContentHandler contentHandler)
Write the xml for a Property. |
protected static void |
generateReferenceXML(ComponentDescription component,
DescriptionContainer module,
ReferenceDescription reference,
org.xml.sax.ContentHandler contentHandler)
Write the xml for a Reference. |
protected static void |
generateServiceXML(ServiceDescription service,
org.xml.sax.ContentHandler contentHandler)
Write the xml for a Provider.Service. |
protected static void |
generateXML(DescriptionContainer module,
java.util.List<ComponentContainer> components,
java.io.File descriptorFile,
Log logger)
Generate the xml top level element and start streaming the components. |
protected static void |
generateXML(java.lang.String namespace,
DescriptionContainer module,
ComponentContainer container,
org.xml.sax.ContentHandler contentHandler)
Write the xml for a Component. |
static java.util.List<ClassDescription> |
read(java.io.InputStream file,
java.lang.ClassLoader classLoader,
IssueLog iLog,
java.lang.String location)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String INNER_NAMESPACE_URI
| Constructor Detail |
|---|
public ComponentDescriptorIO()
| Method Detail |
|---|
public static java.util.List<ClassDescription> read(java.io.InputStream file,
java.lang.ClassLoader classLoader,
IssueLog iLog,
java.lang.String location)
throws SCRDescriptorException
SCRDescriptorException
protected static void generateXML(DescriptionContainer module,
java.util.List<ComponentContainer> components,
java.io.File descriptorFile,
Log logger)
throws org.xml.sax.SAXException,
java.io.IOException,
javax.xml.transform.TransformerException
components - contentHandler -
org.xml.sax.SAXException
java.io.IOException
javax.xml.transform.TransformerException
protected static void generateXML(java.lang.String namespace,
DescriptionContainer module,
ComponentContainer container,
org.xml.sax.ContentHandler contentHandler)
throws org.xml.sax.SAXException
Component.
component - contentHandler -
org.xml.sax.SAXException
protected static void generateImplementationXML(ComponentContainer component,
org.xml.sax.ContentHandler contentHandler)
throws org.xml.sax.SAXException
Implementation.
implementation - contentHandler -
org.xml.sax.SAXException
protected static void generateServiceXML(ServiceDescription service,
org.xml.sax.ContentHandler contentHandler)
throws org.xml.sax.SAXException
Provider.Service.
service - contentHandler -
org.xml.sax.SAXException
protected static void generatePropertyXML(PropertyDescription property,
org.xml.sax.ContentHandler contentHandler)
throws org.xml.sax.SAXException
Property.
property - contentHandler -
org.xml.sax.SAXException
protected static void generateReferenceXML(ComponentDescription component,
DescriptionContainer module,
ReferenceDescription reference,
org.xml.sax.ContentHandler contentHandler)
throws org.xml.sax.SAXException
Reference.
reference - contentHandler -
org.xml.sax.SAXException
public static java.util.List<java.lang.String> generateDescriptorFiles(DescriptionContainer module,
Options options,
Log logger)
throws SCRDescriptorException,
SCRDescriptorFailureException
SCRDescriptorException
SCRDescriptorFailureException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||