org.efaps.ui.xml
Class XMLExport

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

public class XMLExport
extends java.lang.Object

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

Version:
$Id: XMLExport.java 3447 2009-11-29 22:46:39Z tim.moxter $
Author:
jmox

Nested Class Summary
static class XMLExport.XML
           
 
Constructor Summary
XMLExport(java.lang.Object object)
           
XMLExport(UIAbstractPageObject _model)
           
XMLExport(java.util.UUID _commandUUID, java.lang.String _oid)
           
 
Method Summary
 void generateDocument(MimeTypes _mimeType, java.lang.String _xslResourceName)
           
 void generateDocument(MimeTypes _mimeType, java.lang.String _xslResourceName, java.lang.String _name)
          this method creates the Document
protected  org.w3c.dom.Document generateXMLDocument()
          Generate a DOM XML document
static java.lang.String generateXMLString(org.w3c.dom.Document _xmlDoc)
          Generate String out of the XML document object
static java.io.File getDefaultFileStoreFolder()
          get the FileStore
 java.io.File getFile()
          This is the getter method for the instance variable file.
protected  org.w3c.dom.Element getFormElement(org.w3c.dom.Document _xmlDoc, UIForm _formmodel, UIForm.FormElement _model)
          create a DOM-Element for a Form.
protected  org.w3c.dom.Element getHeadingElement(org.w3c.dom.Document _xmlDoc, UIHeading _model)
          create a DOM-Element for a Heading.
static java.io.File getSessionFolder(java.io.File _fileStoreFolder, java.lang.String _append)
          Get the SessionFolder.
protected  org.w3c.dom.Element getTableElement(org.w3c.dom.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(java.util.UUID _commandUUID,
                 java.lang.String _oid)
          throws org.efaps.util.EFapsException
Throws:
org.efaps.util.EFapsException

XMLExport

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

XMLExport

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

generateDocument

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

generateDocument

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

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

generateXMLDocument

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

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

getHeadingElement

protected org.w3c.dom.Element getHeadingElement(org.w3c.dom.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 org.w3c.dom.Element getFormElement(org.w3c.dom.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 org.w3c.dom.Element getTableElement(org.w3c.dom.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 java.lang.String generateXMLString(org.w3c.dom.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 java.io.File getDefaultFileStoreFolder()
get the FileStore

Returns:

getSessionFolder

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

Parameters:
sessionId -
Returns:

getFile

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

Returns:
value of instance variable file


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