com.esri.adf.web.tasks
Class PrintableResult
java.lang.Object
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
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 |
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
PrintableResult
public PrintableResult()
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 objectrnode
- - a ResultNode object