com.tensegrity.generic.persistence
Class XMLFileWriter

java.lang.Object
  extended bycom.tensegrity.generic.persistence.XMLFileWriter

public class XMLFileWriter
extends java.lang.Object

XMLFileWriter

Version:
$Id: XMLFileWriter.java,v 1.5 2006/01/26 17:08:03 MichaelKegel Exp $
Author:
GillesIachelini

Method Summary
static void writeFile(java.lang.String location, java.lang.String dtd, AttributeList data, boolean sort, java.lang.String itemName, java.lang.String descriptorName)
          This method writes a given portion of data into an xml file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

writeFile

public static void writeFile(java.lang.String location,
                             java.lang.String dtd,
                             AttributeList data,
                             boolean sort,
                             java.lang.String itemName,
                             java.lang.String descriptorName)
                      throws WriteException
This method writes a given portion of data into an xml file. This method appends the data, if the file exist. This is done by merging existing AttributeList elements. This method creates a new File and adds the data, if the file doesn't exist.

Parameters:
location - The directory location for the target file.
dtd - The required DTD for the xml output.
data - the xml output.
sort - if set to true the merge of the lists will be done by sorting the values.
itemName - name of the Name Attribute of the Items part.
descriptorName - name of the Name Attribute of the Items part.
Throws:
WriteException - thrown if writing to the file given through location fails


Copyright © 2005 Tensegrity Software GmbH. All Rights Reserved. Date of creation: 09.06.2006.