com.esri.adf.web.tasks
Class PrintableResult

java.lang.Object
  extended by com.esri.adf.web.tasks.PrintableResult
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
AGSPrintableResult

public abstract class PrintableResult
extends Object
implements Serializable

The class is an abstract class to process the user selected ResultNode object. The subclass need to be registered as managed-bean and added in the value list of PrintTask bean The ResultNode stores a query result data object. The object is converted into the XML portion, format like this

to be presented on the print page.

See Also:
Serialized Form

Field Summary
static String DETAIL_TAG
           
static String DETAILS_TAG
           
protected  boolean isCDATA
           
static String ISCDATA_TAG
           
static String KEY_TAG
           
static String NAME_TAG
           
static String PRINTCDATA_TAG
           
static String RESULTNODE_TAG
           
static String RESULTS_TAG
           
static String VALUE_TAG
           
 
Constructor Summary
PrintableResult()
           
 
Method Summary
protected  void addResultDetail(Map<?,?> details, Element parentTag)
          The method converts a java.util.Map object into the key-value pair tags and append the given paraentTag.
protected  void addResultObject(List<Object> list, ResultNode rnode)
          Extracts the data object stored in the given ResultNode object and put into the List; if the ResultNode object has child nodes, recursively traverse all its child nodes.
 boolean isCDATA()
           
abstract  void processResult(ResultNode resultNode, Element resultTag)
          The method needs to be overridden by subclass to process the given ResultNode object;
 void setCDATA(boolean isCDATA)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RESULTNODE_TAG

public static final String RESULTNODE_TAG
See Also:
Constant Field Values

NAME_TAG

public static final String NAME_TAG
See Also:
Constant Field Values

RESULTS_TAG

public static final String RESULTS_TAG
See Also:
Constant Field Values

DETAILS_TAG

public static final String DETAILS_TAG
See Also:
Constant Field Values

DETAIL_TAG

public static final String DETAIL_TAG
See Also:
Constant Field Values

KEY_TAG

public static final String KEY_TAG
See Also:
Constant Field Values

VALUE_TAG

public static final String VALUE_TAG
See Also:
Constant Field Values

ISCDATA_TAG

public static final String ISCDATA_TAG
See Also:
Constant Field Values

PRINTCDATA_TAG

public static final String PRINTCDATA_TAG
See Also:
Constant Field Values

isCDATA

protected boolean isCDATA
Constructor Detail

PrintableResult

public PrintableResult()
Method Detail

setCDATA

public void setCDATA(boolean isCDATA)

isCDATA

public boolean isCDATA()

processResult

public abstract void processResult(ResultNode resultNode,
                                   Element resultTag)
The method needs to be overridden by subclass to process the given ResultNode object;

Parameters:
resultNode -
resultTag -

addResultDetail

protected void addResultDetail(Map<?,?> details,
                               Element parentTag)
The method converts a java.util.Map object into the key-value pair tags and append the given paraentTag.

Parameters:
details -
parentTag -

addResultObject

protected void addResultObject(List<Object> list,
                               ResultNode rnode)
Extracts the data object stored in the given ResultNode object and put into the List; if the ResultNode object has child nodes, recursively traverse all its child nodes.

Parameters:
list - - a java.util.List object
rnode - - a ResultNode object