org.efaps.ui.xml
Class XMLExport

java.lang.Object
  extended by org.efaps.ui.xml.XMLExport

public class XMLExport
extends Object

This class provides functionalities to produce a PDF-Document to be shown to the user

Version:
$Id: XMLExport.java 5758 2010-10-27 21:22:43Z jan.moxter $
Author:
jmox

Nested Class Summary
static class XMLExport.XML
           
 
Constructor Summary
XMLExport(AbstractUIPageObject _model)
           
XMLExport(Object object)
           
XMLExport(UUID _commandUUID, String _oid)
           
 
Method Summary
 void generateDocument(MimeTypes _mimeType, String _xslResourceName)
           
 void generateDocument(MimeTypes _mimeType, String _xslResourceName, String _name)
          this method creates the Document
protected  Document generateXMLDocument()
          Generate a DOM XML document
static String generateXMLString(Document _xmlDoc)
          Generate String out of the XML document object
static File getDefaultFileStoreFolder()
          get the FileStore
 File getFile()
          This is the getter method for the instance variable file.
protected  Element getFormElement(Document _xmlDoc, UIForm _formmodel, UIForm.FormElement _model)
          create a DOM-Element for a Form.
protected  Element getHeadingElement(Document _xmlDoc, UIHeading _model)
          create a DOM-Element for a Heading.
static File getSessionFolder(File _fileStoreFolder, String _append)
          Get the SessionFolder.
protected  Element getTableElement(Document _xmlDoc, UITable _model)
          create a DOM-Element for a Table.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLExport

public XMLExport(UUID _commandUUID,
                 String _oid)
          throws org.efaps.util.EFapsException
Throws:
org.efaps.util.EFapsException

XMLExport

public XMLExport(AbstractUIPageObject _model)
          throws org.efaps.util.EFapsException
Throws:
org.efaps.util.EFapsException

XMLExport

public XMLExport(Object object)
          throws org.efaps.util.EFapsException
Throws:
org.efaps.util.EFapsException
Method Detail

generateDocument

public void generateDocument(MimeTypes _mimeType,
                             String _xslResourceName)
                      throws org.efaps.util.EFapsException
Throws:
org.efaps.util.EFapsException

generateDocument

public void generateDocument(MimeTypes _mimeType,
                             String _xslResourceName,
                             String _name)
                      throws org.efaps.util.EFapsException
this method creates the Document

Parameters:
_mimeType -
Throws:
org.efaps.util.EFapsException

generateXMLDocument

protected Document generateXMLDocument()
                                throws org.efaps.util.EFapsException
Generate a DOM XML document

Parameters:
_uiObject -
Returns:
Throws:
org.efaps.util.EFapsException

getHeadingElement

protected Element getHeadingElement(Document _xmlDoc,
                                    UIHeading _model)
create a DOM-Element for a Heading.

Parameters:
_xmlDoc - Document this DOMElemrnt should be added
_model - heading model
Returns:
the Element for a Heading

getFormElement

protected Element getFormElement(Document _xmlDoc,
                                 UIForm _formmodel,
                                 UIForm.FormElement _model)
create a DOM-Element for a Form.

Parameters:
_xmlDoc - Document this DOMElement should be added
_formmodel - model for the form
_model - model for the element
Returns:
the Element for a Form

getTableElement

protected Element getTableElement(Document _xmlDoc,
                                  UITable _model)
create a DOM-Element for a Table.

Parameters:
_xmlDoc - Document this DOMElemnt should be added
_model -
Returns:
the Element for a Table

generateXMLString

public static String generateXMLString(Document _xmlDoc)
                                throws org.efaps.util.EFapsException
Generate String out of the XML document object

Parameters:
_xmlDoc -
Returns:
Throws:
org.efaps.util.EFapsException

getDefaultFileStoreFolder

public static File getDefaultFileStoreFolder()
get the FileStore

Returns:

getSessionFolder

public static File getSessionFolder(File _fileStoreFolder,
                                    String _append)
Get the SessionFolder.

Parameters:
sessionId -
Returns:

getFile

public File getFile()
This is the getter method for the instance variable file.

Returns:
value of instance variable file


Copyright © 2003-2011 The eFaps Team. All Rights Reserved.