Packagesoap
Classpublic class ResponseParser

ResponseParser class provides functionality to get information from the server response received



Public Properties
 PropertyDefined by
  length : int
[read-only] The number of persons defined in response
ResponseParser
Public Methods
 MethodDefined by
  
ResponseParser($response:XML)
Creates a new ResponseParser instanse
ResponseParser
  
dataText(index:int):String
Function to receive review title
ResponseParser
  
dataValue(index:int):Number
Function to receive person's production level
ResponseParser
  
getData():Array
Function to receive all person-specific data as array
ResponseParser
  
goalLevel():Number
Function to receive the goal production level
ResponseParser
  
goalRequiredLevel(index:int):Number
Function to receive person's production level
ResponseParser
  
idValue(index:int):uint
Function to receive person's id
ResponseParser
  
minimumLevel():Number
Function to receive the minimum production level
ResponseParser
  
nameText(index:int):String
Function to receive person's name
ResponseParser
Property detail
lengthproperty
length:int  [read-only]

The number of persons defined in response

Implementation
    public function get length():int
Constructor detail
ResponseParser()constructor
public function ResponseParser($response:XML)

Creates a new ResponseParser instanse

Parameters
$response:XML — response data
Method detail
dataText()method
public function dataText(index:int):String

Function to receive review title

Parameters
index:int — the number of person node in request

Returns
String — Person's name
dataValue()method 
public function dataValue(index:int):Number

Function to receive person's production level

Parameters
index:int — the number of person node in request

Returns
Number — The person's production level at the moment of request.
getData()method 
public function getData():Array

Function to receive all person-specific data as array

Returns
Array — The array of objects with properties nameText, textData, value, required.
goalLevel()method 
public function goalLevel():Number

Function to receive the goal production level

Returns
Number — Goal production level
goalRequiredLevel()method 
public function goalRequiredLevel(index:int):Number

Function to receive person's production level

Parameters
index:int

Returns
Number — person's production level at the moment of request
idValue()method 
public function idValue(index:int):uint

Function to receive person's id

Parameters
index:int — the number of person node in request

Returns
uint — The person's id.
minimumLevel()method 
public function minimumLevel():Number

Function to receive the minimum production level

Returns
Number — Minimum production level
nameText()method 
public function nameText(index:int):String

Function to receive person's name

Parameters
index:int — The number of person node in request

Returns
String — Person's name