input
stringlengths 10
828
| output
stringlengths 5
107
|
|---|---|
public void test jackson processor throws unsupported encoding exception test processor new jackson processor jackson default converter
|
test de limpl mentation
|
public void test gson processor throws unsupported encoding exception test processor new gson processor gson default converter
|
test de limpl mentation
|
public void test flex json processor throws unsupported encoding exception jsonexception test processor new flex json processor flex json default converter
|
test limpl mentation
|
public void test xstream json processor throws unsupported encoding exception jsonexception test processor new xstream processor xstream json default converter
|
test limpl mentation
|
public boolean await throws interrupted exception return await this default timeout default time unit
|
await the opening of the latch
|
public void test simple search string query string java logger info logger info simple test query query string n this log searh result this search documents query string logger info n query string father logger info logger info simple test query query string n this log searh result this search documents query string logger info n
|
simple search test
|
public void set resume string resume this resume resume
|
sets the authors resume
|
public void test simple case search string query string java logger info logger info simple case test query query string n this log searh result this search documents query string logger info n
|
simple case insensitive search test
|
public void test approximate search string query string jav logger info logger info approximation test query query string n this log searh result this search documents query string logger info n
|
approximate search test
|
public void test proximity search string query string engineer uk 5 logger info logger info proximity test query query string n this log searh result this search documents query string logger info n
|
proximity search test
|
private void log searh result list document result logger info results list for document doc result logger info doc
|
logs a document search result
|
public properties get output properties properties result new properties result put all this output properties return result
|
get a copy of the xml serialization parsing properties
|
public string get output property string name throws illegal argument exception return this output properties get property name
|
return the value of the given xml serialization parsing property
|
public void set context path string context path jaxb2 marshaller set context path context path
|
sets the jaxb context path
|
private void log dbcontent criteria crit this test session create criteria document class list document doc list crit list logger debug logger debug document list for document doc doc list logger debug doc logger debug end of document list logger debug n
|
log the content of the test data base
|
public void set context paths string context paths jaxb2 marshaller set context paths context paths
|
sets multiple jaxb context paths
|
public text message get text message return this text message
|
returns the underlying
|
public void set jaxb context properties map string jaxb context properties jaxb2 marshaller set jaxb context properties jaxb context properties
|
sets the code jaxbcontext code properties
|
public void set marshaller listener listener marshaller listener jaxb2 marshaller set marshaller listener marshaller listener
|
sets the code marshaller
|
public void set marshaller properties map string object properties jaxb2 marshaller set marshaller properties properties this marshaller properties properties
|
sets the jaxb code marshaller code properties
|
public void set mtom enabled boolean mtom enabled jaxb2 marshaller set mtom enabled mtom enabled
|
indicates whether mtom support should be enabled or not
|
public void set schema resource schema resource jaxb2 marshaller set schema schema resource
|
sets the schema resource to use for validation
|
public void set schema language string schema language jaxb2 marshaller set schema language schema language
|
sets the schema language
|
public void set schemas resource schema resources jaxb2 marshaller set schemas schema resources
|
sets the schema resources to use for validation
|
public void set unmarshaller listener javax xml bind unmarshaller listener unmarshaller listener jaxb2 marshaller set unmarshaller listener unmarshaller listener
|
sets the code unmarshaller
|
public void set unmarshaller properties map string object properties jaxb2 marshaller set unmarshaller properties properties
|
sets the jaxb code unmarshaller code properties
|
public void test mqstr via api text message throws exception destination destination this session create queue default force mqstr format mqdestination destination set target client jmsc mqjms client nonjms mq message producer message producer session create producer destination text message text message session create text message hello mqstr world via mqqueue set target client int new date message producer send text message system out println sent message system out println text message
|
send raw mqstr message using
|
public void set validation event handler validation event handler validation event handler jaxb2 marshaller set validation event handler validation event handler
|
sets the jaxb validation event handler
|
public void test send xml message iso88591 throws exception string encoding iso 8859 1 source xml source new stream source new string reader root child hello queue with encoding encoding child root send xml message xml source encoding
|
send an xml
|
public void test send xml message utf8 throws exception string encoding utf 8 source xml source new stream source new string reader root child hello queue with encoding encoding child root send xml message xml source encoding
|
send an xml
|
public void set message charset message message string charset throws jmsexception unsupported charset exception if charset for name charset equals this utf8 false throw new unsupported charset exception charset
|
active mq only supports utf 8
|
public string get destination charset destination destination return this utf8 name
|
active mq only supports utf 8
|
public string get message charset message message throws jmsexception return this utf8 name
|
active mq only supports utf 8
|
public message get sent message return this sent message
|
return the sent message
|
public object parse string value class type throws exception if type money class return money parse value else return super parse value type
|
required by fit for specific types
|
protected void do static table int rows string config location new string rows for int i 0 i rows i config location i get text i 0 application context holder get application context holder set config location config location
|
set the current application context in the application context holder
|
protected string context key string object context key return object utils null safe to string context key
|
subclasses can override this to return a string representation of their
|
protected configurable application context load context string locations return new class path xml application context locations
|
load an application context from the given config locations
|
public configurable application context get application context return application context holder get context config locations
|
get the application context for the defined config location
|
public void set config location string config location this config locations config location
|
set the config locations
|
public void check comment string original string read int index arrays binary search configuration get string array junit format multiline types audio file get name substring audio file get name last index of 1 assert false format comment character not configured audio file get encoding type index 0 char new line char configuration get char array junit format multiline newlinechar index original original replace all n new line char assert equals comment not property written or read original read
|
this method will check if the comment was properly written
|
private string create string char to fill with int length char result new char length arrays fill result to fill with return new string result
|
this method will create a string of the specified code length code
|
private int test content description asf header header string to test int error count 0 content description desc header get content description try desc set author to test catch exception e error count try desc set comment to test catch exception e error count try desc set copy right to test catch exception e error count try desc set rating to test catch exception e error count try desc set title to test catch exception e error count return error count
|
this method will test the correct implementation of the
|
public of function test track enumeration test suite suite super of function test this parent suite
|
creates the test
|
private void init connexion try string db name database string login sa string pwd string url constants user properties dir file separator char db name class for name org hsqldb jdbc driver new instance connexion driver manager get connection jdbc hsqldb file url shutdown true login pwd catch exception e if debug e print stack trace
|
initialise la connexion
|
public int get bitrate return bit rate
|
this method returns the bitrate of the represented audio clip in
|
public int get channel number return channel
|
this method returns the number of audio channels the clip contains
|
public string get encoding type return type
|
returns the encoding type
|
public string get extra encoding infos return infos
|
this method returns some extra information about the encoding
|
public float get precise length return length
|
this method returns the duration of the represented audio clip in seconds
|
public int get sampling rate return sample rate
|
this method returns the sample rate the audio clip was encoded with
|
public void set bitrate int v bit rate v
|
this method sets the bitrate in quot kbps quot
|
public void set channel number int v channel v
|
sets the number of channels
|
public void set encoding type string v type v
|
sets the type of the encoding
|
public void set extra encoding infos string v infos v
|
a string contianing anything else that might be interesting
|
public void set length int v length v
|
this method sets the audio duration of the represented clip
|
public void set precise length float v length v
|
this method sets the audio duration of the represented clip
|
public void set sampling rate int v sample rate v
|
sets the sampling rate in quot hz quot br
|
public void set vbr boolean b is vbr b
|
sets the vbr flag for the represented audio clip
|
public void set encrypted boolean b is encrypted b
|
sets the encrypted flag for the represented audio clip
|
public void set secret data string to add secret data to add
|
this method adds the secret data
|
public string get secret data return secret data
|
this method gets the secret data
|
public void set protection type string to add protection type to add
|
this method appends a string
|
public string get protection type return protection type
|
this method gets the secret data
|
public void set key id string to add key id to add
|
this method appends a string
|
public void set license url string to add license url to add
|
this method appends a string
|
public string get license url return license url
|
this method gets the license url
|
public void release org mozilla javascript context exit
|
mirror of creation through new keyword release is used to tear down this
|
public void set vertical boolean vertical if vertical set orientation vertical else set orientation horizontal
|
set vertical true or false
|
public object get resource string name return resource map get name
|
get resource from resource map
|
public void do import file claml file boolean generate events enabled owl model get generate events enabled owl model set generate events enabled false try log info started importing of claml file claml file get absolute path on new date long t0 system current time millis parse claml file log info finished importing claml file in system current time millis t0 1000 seconds finally owl model set generate events enabled generate events enabled
|
method that does the actual import of the claml file given as argument
|
private void update status final int i runnable do set progress bar value new runnable public void run progress bar set value i if i 50 status field set text cla ml rendering swing utilities invoke later do set progress bar value
|
when the worker needs to update the gui we do so by queuing
|
private object do work try for int i 0 i 100 i update status i if thread interrupted throw new interrupted exception thread sleep 500 catch interrupted exception e update status 0 return interrupted swing worker get returns this return all done or this
|
this method represents the application code that wed like to
|
private rdfsnamed class get icdclass string name boolean create rdfsnamed class cls owl model get rdfsnamed class name if cls null create cls owl model create owlnamed class name cls add superclass owl model get owlthing class return cls
|
it gets or creates and icdclass
|
public rdfsnamed class get icdcategory string id return owl model get rdfsnamed class id
|
returns the icd category for the given id
|
public void set initial context initial context initial context this initial context initial context
|
set the initial context
|
private void init window frame grids grids hash set cols visible this frame frame this grids grids try control export type new jcombo box grids get grid controller get exporting formats control export type set selected index 0 jb init set size grids get grid controller get export dialog size new dimension 260 300 init grids cols visible client utils center dialog frame this set visible true catch exception ex ex print stack trace
|
constructor called by grid
|
private string encode text string text string buffer sb new string buffer for int i 0 i text length i if text char at i 46 text char at i 90 text char at i 97 text char at i 122 sb append text char at i else sb append append int text char at i append return sb to string
|
encode text with xml escape chars
|
private string encode text string text string buffer sb new string buffer for int i 0 i text length i if text char at i 46 text char at i 90 text char at i 97 text char at i 122 text char at i sb append text char at i else sb append append int text char at i append return sb to string
|
encode text with xml escape chars
|
public string get first panel id wizard panel wizard if wizard get panels length 0 return wizard get panels 0 get panel id else return null
|
method called by wizard panel when showing the panel the first time
|
public string get last panel id wizard panel wizard if wizard get panels length 0 return wizard get panels wizard get panels length 1 get panel id else return null
|
method called by wizard panel to check which panel is the last one
|
public string get back panel id wizard panel wizard if wizard get panels length 0 for int i 1 i wizard get panels length i if wizard get panels i equals wizard get current visible panel return wizard get panels i 1 get panel id return null
|
method called by wizard panel when when pressing back button
|
public string get next panel id wizard panel wizard if wizard get panels length 0 for int i 0 i wizard get panels length 1 i if wizard get panels i equals wizard get current visible panel return wizard get panels i 1 get panel id return null
|
method called by wizard panel when pressing next button
|
public string get panel id return
|
this method must be overrided
|
public string get image name return null
|
this method could be overrided
|
public boolean init pooler http servlet servlet return true
|
initialize the connection pooler
|
public void release connection connection conn servlet context context throw new unsupported operation exception this connection source does not support any database
|
release a database connection
|
public boolean init pooler http servlet servlet try create jndi context initial context ic new initial context context env ctx context ic lookup java comp env data source data source env ctx lookup jdbc servlet get init parameter data source name return data source null catch throwable ex ex print stack trace servlet get servlet context log error while creating data source ex return false
|
initialize the connection pooler
|
public void release connection connection conn servlet context context try try conn rollback catch exception ex1 conn close catch sqlexception ex context log error while releasing the database connection ex
|
release a database connection
|
public void release connection connection conn servlet context context try conn rollback conn close catch sqlexception ex context log error while releasing the database connection ex
|
release a database connection
|
public void after init servlet context context
|
method called by the init method of controller class as last instruction
|
public void destroy servlet context context
|
method called by the destroy method of controller class as last instruction
|
protected void execute operation data controller controller throws exception throw new exception the method must be overridden in the subclass
|
operation to execute when the button is pressed
|
private boolean copy to clipboard object value transferable contents null if value instanceof string contents new string selection value to string else if value instanceof java util date simple date format sdfdatetime new simple date format client settings get instance get resources get date mask consts type date time contents new string selection sdfdatetime format java util date value else if value instanceof number contents new string selection value to string if contents null toolkit get default toolkit get system clipboard set contents contents null return true else return false
|
copy data within input control to the system clipboard
|
private void maybe fire value changed event object old value object new value retrieve current value if old value null new value null old value null new value null old value null new value null old value equals new value mark the input control as changed input control set changed true fire value changed events value change event e new value change event input control input control get attribute name old value new value for int i 0 i input control get value change listeners length i input control get value change listeners i value changed e
|
method called when input control content has been changed
|
public void set max characters int max characters this max characters max characters
|
set maximum number of characters
|
public void code validated boolean validated cod box code validated validated
|
callback called on code validation
|
public void force validate cod box force validate
|
force the code validation
|
public void set enable cod box boolean enable cod box this enable cod box enable cod box if enable cod box cod box set enabled enable cod box
|
set if code field is editable
|
public color get selection foreground return list get selection foreground
|
returns the selection foreground color
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.