org.moremotion.page
Class ADOMFormatter

java.lang.Object
  extended by org.moremotion.page.ADOMFormatter

public class ADOMFormatter
extends java.lang.Object

Formats ADOMs into XML Strings.

Version:
$Id: ADOMFormatter.java 149 2008-06-11 13:35:46Z erkan $

Constructor Summary
ADOMFormatter(ADOM adom, MoreMotionRequest request, PageDataRequest pdr)
          Creates a new ADOMFormatter.
ADOMFormatter(ADOM adom, MoreMotionRequest request, java.lang.String rootTagName, java.lang.String resBundleName)
          Creates a new ADOMFormatter.
 
Method Summary
 java.lang.String format()
          Formats the ADOM and returns the formatted string
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ADOMFormatter

public ADOMFormatter(ADOM adom,
                     MoreMotionRequest request,
                     PageDataRequest pdr)
Creates a new ADOMFormatter.

Parameters:
adom - The ADOM object to be formatted.
request - MoreMotionRequest object
pdr - PageDataRequest object that specifies the data requested by the current page.

ADOMFormatter

public ADOMFormatter(ADOM adom,
                     MoreMotionRequest request,
                     java.lang.String rootTagName,
                     java.lang.String resBundleName)
Creates a new ADOMFormatter. This constructor is used when there is no PageDataRequest available for the ADOM which means a Forced Data Source.

Parameters:
adom - The ADOM object to be formatted.
request - MoreMotionRequest object
rootTagName - the name of the root tag
resBundleName - The name of the resource bundle
Method Detail

format

public java.lang.String format()
                        throws ADOMFormatingException
Formats the ADOM and returns the formatted string

Throws:
ADOMFormatingException


Copyright © 2002-2008 MOR YAZILIM. All Rights Reserved.