org.apache.avalon.composition.data.writer
Class XMLComponentProfileWriter

java.lang.Object
  extended byorg.apache.avalon.composition.data.writer.XMLComponentProfileWriter
Direct Known Subclasses:
XMLContainmentProfileWriter

public class XMLComponentProfileWriter
extends Object

Write a ComponentProfile to a stream as xml documents.

Version:
$Revision: 1.7 $ $Date: 2004/03/11 09:37:08 $
Author:
Avalon Development Team

Field Summary
static String INDENT
           
 
Constructor Summary
XMLComponentProfileWriter()
           
 
Method Summary
protected  void writeCategories(Writer writer, CategoriesDirective categories, String pad)
          Write out xml representation of the logging categories
protected  void writeComponentProfile(Writer writer, ComponentProfile profile, String pad)
          Write out a containment deployment profile to XML.
protected  void writeDeploymentBody(Writer writer, ComponentProfile profile, String pad)
          Write out a containment deployment content.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INDENT

public static final String INDENT
See Also:
Constant Field Values
Constructor Detail

XMLComponentProfileWriter

public XMLComponentProfileWriter()
Method Detail

writeComponentProfile

protected void writeComponentProfile(Writer writer,
                                     ComponentProfile profile,
                                     String pad)
                              throws Exception
Write out a containment deployment profile to XML.

Parameters:
writer - the writer
Throws:
IOException - if unable to write xml
Exception

writeDeploymentBody

protected void writeDeploymentBody(Writer writer,
                                   ComponentProfile profile,
                                   String pad)
                            throws Exception
Write out a containment deployment content.

Parameters:
writer - the writer
Throws:
IOException - if unable to write xml
Exception

writeCategories

protected void writeCategories(Writer writer,
                               CategoriesDirective categories,
                               String pad)
                        throws IOException
Write out xml representation of the logging categories

Parameters:
writer - the writer
categories - the logging categopries directive
Throws:
IOException - if unable to write xml


Copyright © The Apache Software Foundation. All Rights Reserved.