org.openarchitectureware.xpand2.output
Class XmlBeautifier

java.lang.Object
  extended by org.openarchitectureware.xpand2.output.XmlBeautifier
All Implemented Interfaces:
PostProcessor

Deprecated. Use org.openarchitectureware.xsd.XMLBeautifier or http://www.fornax-platform.org/cp/display/fornax/XML

public class XmlBeautifier
extends java.lang.Object
implements PostProcessor

This PostProcessor formats XML code.

This implementation relies on JAXP, which has some limitations in practice. The beautifier will work for simple XML documents. If it does not behave as expected use an alternative formatter.

Author:
Sven Efftinge (http://www.efftinge.de), Bernd Kolb

Constructor Summary
XmlBeautifier()
          Deprecated.  
 
Method Summary
 void afterClose(FileHandle impl)
          Deprecated. Called after the file has been written.
 void beforeWriteAndClose(FileHandle info)
          Deprecated. Called before the file will be written.
 boolean isXmlFile(java.lang.String absolutePath)
          Deprecated.  
 void setFileExtensions(java.lang.String[] fileExtensions)
          Deprecated.  
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XmlBeautifier

public XmlBeautifier()
Deprecated. 
Method Detail

setFileExtensions

public void setFileExtensions(java.lang.String[] fileExtensions)
Deprecated. 

beforeWriteAndClose

public void beforeWriteAndClose(FileHandle info)
Deprecated. 
Description copied from interface: PostProcessor
Called before the file will be written.

Specified by:
beforeWriteAndClose in interface PostProcessor
Parameters:
info - A handle to the file that will be written

isXmlFile

public boolean isXmlFile(java.lang.String absolutePath)
Deprecated. 

afterClose

public void afterClose(FileHandle impl)
Deprecated. 
Description copied from interface: PostProcessor
Called after the file has been written.

Specified by:
afterClose in interface PostProcessor
Parameters:
impl - A handle to the file that has been written