input
stringlengths
10
828
output
stringlengths
5
107
public string get transaccion result return transaccion result
gets the value of the transaccion result property
public string get retiro result return retiro result
gets the value of the retiro result property
public void set retiro result string value this retiro result value
sets the value of the retiro result property
public void set consignar result string value this consignar result value
sets the value of the consignar result property
public string get realizar pago su certificado result return realizar pago su certificado result
gets the value of the realizar pago su certificado result property
public void set realizar pago su certificado result string value this realizar pago su certificado result value
sets the value of the realizar pago su certificado result property
public string get cuenta origen return cuenta origen
gets the value of the cuenta origen property
public void set cuenta origen string value this cuenta origen value
sets the value of the cuenta origen property
public string get banco origen return banco origen
gets the value of the banco origen property
public void set banco origen string value this banco origen value
sets the value of the banco origen property
public string get cuenta destino return cuenta destino
gets the value of the cuenta destino property
public void set cuenta destino string value this cuenta destino value
sets the value of the cuenta destino property
public realizar pago su certificado response create realizar pago su certificado response return new realizar pago su certificado response
create an instance of
public string get banco destino return banco destino
gets the value of the banco destino property
public realizar pago su certificado create realizar pago su certificado return new realizar pago su certificado
create an instance of
public void set banco destino string value this banco destino value
sets the value of the banco destino property
public string get clave cuenta origen return clave cuenta origen
gets the value of the clave cuenta origen property
public void set clave cuenta origen string value this clave cuenta origen value
sets the value of the clave cuenta origen property
public int get monto return monto
gets the value of the monto property
public void set monto int value this monto value
sets the value of the monto property
public string get correo usuario return correo usuario
gets the value of the correo usuario property
public void set correo usuario string value this correo usuario value
sets the value of the correo usuario property
public void test key set danger xqsql par my par new xqsql par my par put key1 value1 my par put key2 value2 my par put key3 value3 my par put key4 value4 assert equals there are 4 keys in the collection my par size 4 set test set my par key set test set remove key3 assert equals now only 3 keys are present in the collection my par size 3 assert true key3 is not present anymore my par contains key key3
working with key set is dangerous
public string ask int id properties args throws xqex string unformatted this ask id string formatted xqfmt get instance format unformatted args return formatted
ask for an external message by id to be formatted with parameters
public boolean contains key string key return my map contains key key
returns true if a key is present in the map
public string get string key return my map get key to string
returns the value converted to string corresponding to key passed
public void remove string key my map remove key
erases a key from the map if exists
public void put string key object value my map put key value
puts a pair key param val in the map
public void put string key int value my map put key new integer value
puts a pair key primitive parameter in the map
public void put string key char value my map put key new character value
puts a pair key primitive parameter in the map
public void put string key boolean value my map put key new boolean value
puts a pair key primitive parameter in the map
public int size return my map size
returns the size of the parameters collection
public boolean is empty return my map is empty
returns if the parameters collection is empty
public void put string key double value my map put key new double value
puts a double parameter named key in the collection
public void load input stream input stream throws xqex string log4j configuration system get property log4j configuration if log4j configuration null try domconfigurator configurator new domconfigurator configurator do configure input stream log manager get logger repository catch throwable t string msg cannot configure log4j throw new xqex msg t
configures the logging system
public void check not null object o throws xqcontract violated error if o null throw new xqcontract violated error null object
checks that an object is not null
public connection connect throws xqex return connect default
central point to ask for a connection looks for the default datasource
public connection connect string datasourcename throws xqex connection con try class for name net sf yapoolman jdbc pool man driver new instance con driver manager get connection jdbc poolman datasourcename xqdata sources stub xqdata sources get instance con stub connect datasourcename catch throwable t throw new xqex cannot connect to the datasourcename datasource t xqdbc get instance check open con return con
central point to ask for a connection looks for the default datasource
public void check non zero number number throws xqcontract violated error comparable zero comparable number decorator have zero number if zero compare to number 0 throw new xqcontract violated error number is zero
checks that number is not zero
public void check positive double mydouble throws xqcontract violated error this check positive new double mydouble
just a wrapper for check positive number
public string ask string key return properties get property key
called to get the value of a previously loaded parameter
public void load input stream input stream throws xqex try properties load input stream catch throwable t throw new xqex cannot parse inputstream into properties t
loads parameters key value couples into the singleton
public void load string file name throws xqex xqdbc get instance check input new file file name this file name file name try see notes on save string file name properties load new file input stream file name catch throwable t throw new xqex cannot parse inputstream from file name into properties t
loads parameters key value couples into the singleton
public void check positive int myint throws xqcontract violated error this check positive new integer myint
just a wrapper for check positive number
public result set execute select connection conn string sql throws xqex result set result set null try prepared statement stm conn prepare statement sql result set stm execute query catch throwable t throw new xqex cannot execute select query sql return result set return run select conn sql
runs a select query and returns records
public void check positive number number throws xqcontract violated error comparable zero comparable number decorator have zero number if zero compare to number 0 throw new xqcontract violated error number is lower or equal than zero
checks that number is positive
public int execute delete connection conn string sql throws xqex return run command conn sql
run a parametric delete query
public void check negative int myint throws xqcontract violated error this check negative new integer myint
just a wrapper for check negative number
public void check negative double mydouble throws xqcontract violated error this check negative new double mydouble
just a wrapper for check negative number
private int run command connection conn string sql throws xqex xqdbc get instance check open conn prepared statement ps null int ret 1 try ps conn prepare statement sql ret ps execute update catch throwable t throw new xqex problems executing statment sql t finally try ps close catch throwable t throw new xqex problems closing statment sql t return ret
runs a delete insert update sql or ddl command
public string dom2string final node node throws xqex writer writer new string writer dom2writer node writer return writer to string
serialize a dom node into a string
public void check negative number number throws xqcontract violated error comparable zero comparable number decorator have zero number if zero compare to number 0 throw new xqcontract violated error number is greater or equal than zero
checks that number is negative
public void dom2writer final node node final writer writer throws xqex domsource src new domsource node stream result result new stream result writer standardtransform src result
serialize a dom nome into a writer
public string element content final element element throws xqex try node list children element get child nodes string buffer content new string buffer for int i 0 i children get length i text text null try text text children item i catch class cast exception cce i can t really remember why i ignore this continue content append text get data return content to string catch throwable t throw new xqex can t extract the content from element with local name element get local name
extract the content from a tag
public document reader2dom final reader reader throws xqex document dom null try stream source src new stream source reader domresult result new domresult standardtransform src result dom document result get node catch throwable t string msg i can t parse the reader into a dom document log error msg t throw new xqex msg t return dom
parse a dom document into a string be careful with large documents
public void check non negative double mydouble throws xqcontract violated error this check non negative new double mydouble
just a wrapper fir check non negative number
private result set run select connection conn string sql throws xqex xqdbc get instance check open conn result set rs null prepared statement ps null try ps conn prepare statement sql rs ps execute query catch throwable t throw new xqex problems executing statement sql t return rs
runs a select query and returns records
public oqlquery get oqlquery string oql throws query exception return database get oqlquery oql
method get oqlquery
public void check non negative int myint throws xqcontract violated error this check non negative new integer myint
just a wrapper for check non negative number
public void check open connection conn throws xqcontract violated error boolean closed true try closed conn is closed catch throwable t throw new xqcontract violated error cannot check if connection is closed t if closed throw new xqcontract violated error connection is closed
checks that a connection is really open
public void check value is in aleft open range number val number min number max throws xqcontract violated error this check value is in arange val min false max true
checks that value is a left open range
public void check value is in aright open range number val number min number max throws xqcontract violated error this check value is in arange val min true max false
checks that value is in right open range
public void check value is in aclosed range number val number min number max throws xqcontract violated error this check value is in arange val min false max false
checks if val is in a closed range
public void check greater than int val int min throws xqcontract violated error this check greater than new integer val new integer min
just a wrapper for check greater than number number
public void check greater equals than double val double min throws xqcontract violated error this check greater equals than new double val new double min
just a wrapper for check greater equals than number number
public void check greater equals than int val int min throws xqcontract violated error this check greater equals than new integer val new integer min
just a wrapper for check greater equals than number number
public void check lower than double val double max throws xqcontract violated error this check lower than new double val new double max
just a wrapper for check lower than number number
public void check lower than int val int max throws xqcontract violated error this check lower than new integer val new integer max
just a wrapper for check lower than number number
public void check lower equals than int val int max throws xqcontract violated error this check lower equals than new integer val new integer max
just a wrapper for check lower equals than number number
public void check equals number val1 number val2 throws xqcontract violated error if val1 equals val2 throw new xqcontract violated error value val1 is not equal val2
check if val1 and val2 are the same value
public void check equals double val1 double val2 throws xqcontract violated error this check equals new double val1 new double val2
just a wrapper for check equals number number having
public void check equals int val1 int val2 throws xqcontract violated error this check equals new integer val1 new integer val2
just a wrapper for check equals number number having
public void check not equals number val1 number val2 throws xqcontract violated error if val1 equals val2 throw new xqcontract violated error value val1 is equal val2
check if val1 and val2 are the different values
public void check not equals double val1 double val2 throws xqcontract violated error this check not equals new double val1 new double val2
just a wrapper for check not equals number number having
public void check not equals int val1 int val2 throws xqcontract violated error this check not equals new integer val1 new integer val2
just a wrapper for check not equals number number having
public void check requested item is in array bounds object arr int pos throws xqcontract violated error if pos arr length throw new xqcontract violated error the array lenght is arr length but position of the element is pos
check that the item requested is in array bounds
public void check requested item is in array bounds boolean arr int pos throws xqcontract violated error if pos arr length throw new xqcontract violated error the array lenght is arr length but position of the element is pos
check that the item requested is in array bounds
public void check requested item is in array bounds int arr int pos throws xqcontract violated error if pos arr length throw new xqcontract violated error the array lenght is arr length but position of the element is pos
check that the item requested is in array bounds
public void check requested item is in array bounds double arr int pos throws xqcontract violated error if pos arr length throw new xqcontract violated error the array lenght is arr length but position of the element is pos
check that the item requested is in array bounds
public void check arrays have same length object arr1 object arr2 throws xqcontract violated error if arr1 length arr2 length throw new xqcontract violated error the first array is arr1 length but the second is arr2 length
compares two array length
public void check arrays have same length boolean arr1 boolean arr2 throws xqcontract violated error if arr1 length arr2 length throw new xqcontract violated error the the first array is arr1 length but the second is arr2 length
compares two array length
public void check arrays have same length int arr1 int arr2 throws xqcontract violated error if arr1 length arr2 length throw new xqcontract violated error the the first array is arr1 length but the second is arr2 length
compares two array length
public void check arrays have same length double arr1 double arr2 throws xqcontract violated error if arr1 length arr2 length throw new xqcontract violated error the the first array is arr1 length but the second is arr2 length
compares two array length
public void turn off send data 3 0 0 new int 192
switches the device off
public void show button int button if button 1 button 3 send data 4 button 0 new int 192 else throw new illegal state exception no button number button available
switches on or refreshes the display of a button
public void set brightness int brightness if brightness dark brightness normal brightness bright send data 9 brightness 0 new int 192 else throw new illegal state exception illegal brightness value brightness
sets the brightness of the display for all three buttons
private void send data int command int button int pos int data try int check command button pos 256 pos 256 out write command out write button out write pos 256 out write pos 256 for int i 0 i 192 i out write data i check check data i 256 out write check out flush in read in read catch exception e throw new error error writing data to the optimus mini device e
sends a complete command line to the optimus device and waits for a
public void set orientation int orientation if orientation 0 orientation 3 this orientation orientation else throw new illegal state exception illegal orientation value orientation
set the orientation of the device
public void run try in close out close catch ioexception e system out println error closing optimus mini serial connections e print stack trace finally in null out null
close the connection to the device irrevocably
private path draw triangle double posx double posy double size boolean upwards point p1 new point posx posy point p2 if upwards p2 new point p1 get x size 2 a4 res x p1 get y size a4 res y else p2 new point p1 get x size 2 a4 res x p1 get y size a4 res y point p3 new point p2 get x size a4 res x p2 get y path p new path p add p1 p add p2 p add p3 p add p1 return p
creates a path representing a triangle whos apex is pointing upwards
public string to string return new string lower bound upper bound
returns a string representation of this object
public payoff type get payoff type return type
returns the payoff type of this option
public void set payoff type payoff type type if type equals payoff type exchange throw new unsupported model specification exception this type type
sets the payoff type of this option model
public void set payoff type payoff type type this type type if type payoff type call digital core new call else if type payoff type put digital core new put else throw new unsupported model specification exception
sets the payoff type of this option model
public void set correlation double rho if rho 1 0 rho 1 0 throw new illegal argument exception correlation rho param up to date false
sets the constant instantaneuous correlation between the price
public string to string return lattice to string
returns a string representation of this object
public int get children int axis if axis 1 return children1 if axis 2 return children2 throw new index out of bounds exception
returns the number of children each node except the leaf nodes has
public boolean is compatible double lattice2 s other return periods other periods children1 other children1 children2 other children2
returns code true code if the specified lattice is compatible to
public string to string int absolute level bound string builder sb new string builder double nodes get nodes if nodes null nodes length 0 sb append 0 0 n node 0 0 n n for int time 1 time get periods time absolute level bound abs level bound time for int level absolute level bound level absolute level bound level step size sb append string format locale us d d n f n time level node time level sb append n else sb append super to string empty return sb to string
returns a string representation of this lattice
public int get periods return periods
returns the number of periods