|
||||||||||
| 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
|
static java.lang.String |
NAMESPACE_URI
|
| Constructor Summary | |
|---|---|
ComponentDescriptorIO()
|
|
| Method Summary | |
|---|---|
protected static void |
generateXML(Component component,
org.xml.sax.ContentHandler contentHandler,
boolean isScrPrivateFile)
Write the xml for a Component. |
protected static void |
generateXML(Components components,
org.xml.sax.ContentHandler contentHandler,
boolean isScrPrivateFile)
Generate the xml top level element and start streaming the components. |
protected static void |
generateXML(Implementation implementation,
org.xml.sax.ContentHandler contentHandler)
Write the xml for a Implementation. |
protected static void |
generateXML(Interface interf,
org.xml.sax.ContentHandler contentHandler)
Write the xml for a Interface. |
protected static void |
generateXML(Property property,
org.xml.sax.ContentHandler contentHandler,
boolean isScrPrivateFile)
Write the xml for a Property. |
protected static void |
generateXML(Reference reference,
org.xml.sax.ContentHandler contentHandler,
boolean isScrPrivateFile)
Write the xml for a Reference. |
protected static void |
generateXML(Service service,
org.xml.sax.ContentHandler contentHandler)
Write the xml for a Service. |
static Components |
read(java.io.File file)
|
static void |
write(Components components,
java.io.File file,
boolean isScrPrivateFile)
Write the component descriptors to the file. |
| 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 NAMESPACE_URI
public static final java.lang.String INNER_NAMESPACE_URI
| Constructor Detail |
|---|
public ComponentDescriptorIO()
| Method Detail |
|---|
public static Components read(java.io.File file)
throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
public static void write(Components components,
java.io.File file,
boolean isScrPrivateFile)
throws org.apache.maven.plugin.MojoExecutionException
components - file -
org.apache.maven.plugin.MojoExecutionException
protected static void generateXML(Components components,
org.xml.sax.ContentHandler contentHandler,
boolean isScrPrivateFile)
throws org.xml.sax.SAXException
components - contentHandler -
org.xml.sax.SAXException
protected static void generateXML(Component component,
org.xml.sax.ContentHandler contentHandler,
boolean isScrPrivateFile)
throws org.xml.sax.SAXException
Component.
component - contentHandler -
org.xml.sax.SAXException
protected static void generateXML(Implementation implementation,
org.xml.sax.ContentHandler contentHandler)
throws org.xml.sax.SAXException
Implementation.
implementation - contentHandler -
org.xml.sax.SAXException
protected static void generateXML(Service service,
org.xml.sax.ContentHandler contentHandler)
throws org.xml.sax.SAXException
Service.
service - contentHandler -
org.xml.sax.SAXException
protected static void generateXML(Interface interf,
org.xml.sax.ContentHandler contentHandler)
throws org.xml.sax.SAXException
Interface.
interf - contentHandler -
org.xml.sax.SAXException
protected static void generateXML(Property property,
org.xml.sax.ContentHandler contentHandler,
boolean isScrPrivateFile)
throws org.xml.sax.SAXException
Property.
property - contentHandler -
org.xml.sax.SAXException
protected static void generateXML(Reference reference,
org.xml.sax.ContentHandler contentHandler,
boolean isScrPrivateFile)
throws org.xml.sax.SAXException
Reference.
reference - contentHandler -
org.xml.sax.SAXException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||