public class ComponentDescriptorIO
extends java.lang.Object
ComponentDescriptorIO
is a helper class to read and write component descriptor files.Modifier and Type | Class and Description |
---|---|
protected static class |
ComponentDescriptorIO.XmlHandler
A content handler for parsing the component descriptions.
|
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
INNER_NAMESPACE_URI
The inner namespace - used for all inner elements.
|
Constructor and Description |
---|
ComponentDescriptorIO() |
Modifier and Type | Method and Description |
---|---|
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 an 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 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) |
public static final java.lang.String INNER_NAMESPACE_URI
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
- contentHandler
- org.xml.sax.SAXException
protected static void generateImplementationXML(ComponentContainer component, org.xml.sax.ContentHandler contentHandler) throws org.xml.sax.SAXException
implementation
- contentHandler
- org.xml.sax.SAXException
protected static void generateServiceXML(ServiceDescription service, org.xml.sax.ContentHandler contentHandler) throws org.xml.sax.SAXException
service
- contentHandler
- org.xml.sax.SAXException
protected static void generatePropertyXML(PropertyDescription property, org.xml.sax.ContentHandler contentHandler) throws org.xml.sax.SAXException
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
- contentHandler
- org.xml.sax.SAXException
public static java.util.List<java.lang.String> generateDescriptorFiles(DescriptionContainer module, Options options, Log logger) throws SCRDescriptorException, SCRDescriptorFailureException
Copyright © 2006-2014 The Apache Software Foundation. All Rights Reserved.