|
||||||||||
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 String |
INNER_NAMESPACE_URI
The inner namespace - used for all inner elements. |
static String |
NAMESPACE_URI_1_0
The namespace for R4.1 - Version 1.0 |
static String |
NAMESPACE_URI_1_1
The namespace for R4.2 - Version 1.1 |
static String |
NAMESPACE_URI_1_1_FELIX
The namespace for R4.2+FELIX-1893 - Version 1.1-felix |
Constructor Summary | |
---|---|
ComponentDescriptorIO()
|
Method Summary | |
---|---|
protected static void |
generateXML(Components components,
ContentHandler contentHandler,
boolean isScrPrivateFile)
Generate the xml top level element and start streaming the components. |
protected static void |
generateXML(Implementation implementation,
ContentHandler contentHandler)
Write the xml for a Implementation . |
protected static void |
generateXML(Interface interf,
ContentHandler contentHandler)
Write the xml for a Interface . |
protected static void |
generateXML(Property property,
ContentHandler contentHandler,
boolean isScrPrivateFile)
Write the xml for a Property . |
protected static void |
generateXML(Service service,
ContentHandler contentHandler)
Write the xml for a Service . |
protected static void |
generateXML(String namespace,
Component component,
ContentHandler contentHandler,
boolean isScrPrivateFile)
Write the xml for a Component . |
protected static void |
generateXML(String namespace,
Reference reference,
ContentHandler contentHandler,
boolean isScrPrivateFile)
Write the xml for a Reference . |
static Components |
read(InputStream file)
|
static void |
write(Components components,
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 String NAMESPACE_URI_1_0
public static final String NAMESPACE_URI_1_1
public static final String NAMESPACE_URI_1_1_FELIX
public static final String INNER_NAMESPACE_URI
Constructor Detail |
---|
public ComponentDescriptorIO()
Method Detail |
---|
public static Components read(InputStream file) throws SCRDescriptorException
SCRDescriptorException
public static void write(Components components, File file, boolean isScrPrivateFile) throws SCRDescriptorException
components
- file
-
SCRDescriptorException
protected static void generateXML(Components components, ContentHandler contentHandler, boolean isScrPrivateFile) throws SAXException
components
- contentHandler
-
SAXException
protected static void generateXML(String namespace, Component component, ContentHandler contentHandler, boolean isScrPrivateFile) throws SAXException
Component
.
component
- contentHandler
-
SAXException
protected static void generateXML(Implementation implementation, ContentHandler contentHandler) throws SAXException
Implementation
.
implementation
- contentHandler
-
SAXException
protected static void generateXML(Service service, ContentHandler contentHandler) throws SAXException
Service
.
service
- contentHandler
-
SAXException
protected static void generateXML(Interface interf, ContentHandler contentHandler) throws SAXException
Interface
.
interf
- contentHandler
-
SAXException
protected static void generateXML(Property property, ContentHandler contentHandler, boolean isScrPrivateFile) throws SAXException
Property
.
property
- contentHandler
-
SAXException
protected static void generateXML(String namespace, Reference reference, ContentHandler contentHandler, boolean isScrPrivateFile) throws SAXException
Reference
.
reference
- contentHandler
-
SAXException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |