symplik.flower
Class Response

java.lang.Object
  extended by symplik.flower.Response
All Implemented Interfaces:
Constants

public class Response
extends java.lang.Object
implements Constants

Response class is responsible for reading and creating response.xml for silent operation. The structure of response.xml is:

 <?xml version="1.0" encoding="UTF-8"?>
 <RESPONSES CREATION_DATE="[timestamp]">
   <RESPONSE ID="[sequence no]" CLASS="[Question full-qualified class name]">[ChoiceKey | free-text answer]</RESPONSE>
   <RESPONSE ID="0" CLASS="symplik.oracle.fndload.question.OperationModeQuestion">DOWNLOAD</RESPONSE>
   <RESPONSE ID="1" CLASS="symplik.oracle.fndload.question.DownloadObjectQuestion">FND_NEW_MESSAGES</RESPONSE>
 </RESPONSES>
 
 

Version:
$Revision: 2 $
Author:
$Author: Christopher Ho $

Field Summary
private  java.util.Vector<java.lang.String> answerV
           
private  java.util.Vector<java.lang.String> questionV
           
static java.lang.String RCS_ID
           
 
Fields inherited from interface symplik.flower.Constants
CLASS_DEFAULT_START, CLASS_DIR_BROWSER, CLASS_FILE_BROWSER, DISPLAY_MODE, DISPLAY_MODE_CONSOLE, DISPLAY_MODE_GUI, DISPLAY_MODE_SLIENT, FILE_BROWSER_CURR_DIR, FILE_BROWSER_DIR, FILE_BROWSER_FILE, FLOWER_CONFIG, FLOWER_CONFIG_FILE, FLOWER_LAST_QUESTION, FLOWER_LOG_FILE, FLOWER_LOG_LEVEL, FLOWER_LOG_OUTPUT, FLOWER_RESPONSES, FLOWER_RESPONSES_FILE, LOG_DEBUG, LOG_ERROR, LOG_INFO, LOG_OUTPUT_FILE, LOG_OUTPUT_SYSTEM_OUT, LOG_WARN, SORT_AS_IS, SORT_BY_DESC, SORT_BY_DESC_CI, SORT_BY_KEY, SORT_BY_KEY_CI
 
Constructor Summary
Response()
           
 
Method Summary
 void addResponse(Question clazz, java.lang.String value)
          add a response node to the response file
 java.lang.String getAnswer(int i)
           
 java.lang.String getClassName(int i)
           
 void readResponseFile()
           
 void writeResponseFile()
          write the response xml file
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RCS_ID

public static final java.lang.String RCS_ID
See Also:
Constant Field Values

questionV

private java.util.Vector<java.lang.String> questionV

answerV

private java.util.Vector<java.lang.String> answerV
Constructor Detail

Response

public Response()
Method Detail

addResponse

public void addResponse(Question clazz,
                        java.lang.String value)
add a response node to the response file

Parameters:
clazz -
value -

writeResponseFile

public void writeResponseFile()
write the response xml file


getClassName

public java.lang.String getClassName(int i)

getAnswer

public java.lang.String getAnswer(int i)

readResponseFile

public void readResponseFile()


Copyright © 2010 Symplik Tech. Co. Ltd. All Rights Reserved.