org.foray.demo.embed
Class DemoObj2XML

java.lang.Object
  extended by org.foray.demo.embed.EmbedDemo
      extended by org.foray.demo.embed.DemoObj2XML

public class DemoObj2XML
extends EmbedDemo

This class demonstrates the conversion of an arbitrary object file to an XML file.


Constructor Summary
DemoObj2XML()
           
 
Method Summary
 void convertProjectTeam2XML(ProjectTeam team, File xml)
          Demonstration of transformation of the Team data to XML.
static ProjectTeam createSampleProjectTeam()
          Static method creating some ProjectTeam sample data.
static void main(String[] args)
          Command-line interface to this class.
 
Methods inherited from class org.foray.demo.embed.EmbedDemo
getLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DemoObj2XML

public DemoObj2XML()
Method Detail

convertProjectTeam2XML

public void convertProjectTeam2XML(ProjectTeam team,
                                   File xml)
                            throws IOException,
                                   TransformerException
Demonstration of transformation of the Team data to XML.

Parameters:
team - The team to be transformed.
xml - The output file.
Throws:
IOException - For I/O errors.
TransformerException - For errors during XSLT transformation.

createSampleProjectTeam

public static ProjectTeam createSampleProjectTeam()
Static method creating some ProjectTeam sample data.

Returns:
The sample data.

main

public static void main(String[] args)
Command-line interface to this class.

Parameters:
args - The command-line arguments. None are currently supported.


Copyright © 2017. All rights reserved.