input
stringlengths
10
828
output
stringlengths
5
107
public void test float2 boolean try message message sender session create message store a value that can be converted to boolean message set float property prop 127 0 f message get boolean property prop fail 3 5 4 the unmarked cases of table 0 4 should raise a jms message format exception n catch message format exception e catch jmsexception e fail e
if a property is set as a code float code
public void remove change listener final change listener listener synchronized change listeners if listener null change listeners remove listener
remove a state change listener
public property group get property group string basename int index string name make index property name basename index return get property group name
get a property group for the given property base at the given index
public string get full method name return class name method name
get the fully qualified method name for this entry
protected void fire state changed final change event event assert event null change listener listeners synchronized change listeners listeners change listener change listeners to array new change listener change listeners size for int i 0 i listeners length i listeners i state changed event
send a change event to all listeners
public void test long2 string try message message sender session create message message set long property prop 127 l assert equals 127 message get string property prop catch jmsexception e fail e
if a property is set as a code long code
public string get source file name return source file name
get the source file name for this entry
public state get previous state return previous
the previous state of the machine
public void test long2 double try message message sender session create message message set long property prop 127 l message get double property prop fail 3 5 4 the unmarked cases of table 0 4 should raise a jms message format exception n catch message format exception e catch jmsexception e fail e
if a property is set as a code long code
public state get current state return current
the current state of the machine
public string to string final string prefix string buffer buff new string buffer if prefix null buff append prefix buff append class name append append method name append append source file name if line number equals unknown buff append append line number buff append return buff to string
return a string representation of this with the given prefix
public string to string return to string empty prefix
return a string representation of this
public void test long2 float try message message sender session create message message set long property prop 127 l message get float property prop fail 3 5 4 the unmarked cases of table 0 4 should raise a jms message format exception n catch message format exception e catch jmsexception e fail e
if a property is set as a code long code
public state machine get state machine return state machine get source
the state machine which generated the event
public int hash code return hash code generate new string class name method name source file name line number
return the hash code of this object
public void test long2 long try message message sender session create message message set long property prop 127 l assert equals 127 l message get long property prop catch jmsexception e fail e
if a property is set as a code long code
public boolean equals final object obj if obj this return true if obj null obj get class get class entry entry entry obj return entry class name equals class name entry method name equals method name entry source file name equals source file name entry line number equals line number return false
check the equality of a given object with this
public void test long2 int try message message sender session create message message set long property prop 127 l message get int property prop fail 3 5 4 the unmarked cases of table 0 4 should raise a jms message format exception n catch message format exception e catch jmsexception e fail e
if a property is set as a code long code
public void print final print writer writer final string prefix writer println this to string prefix
print this stack trace entry
public void test long2 short try message message sender session create message store a value that can t be converted to short message set long property prop 127 l message get short property prop fail 3 5 4 the unmarked cases of table 0 4 should raise a jms message format exception n catch message format exception e catch jmsexception e fail e
if a property is set as a code long code
public void print final print writer writer writer println this to string
print this stack trace entry
public void print final print stream stream final string prefix stream println this to string prefix
print this stack trace entry
public void test long2 byte try message message sender session create message store a value that can t be converted to byte message set long property prop 127 l message get byte property prop fail 3 5 4 the unmarked cases of table 0 4 should raise a jms message format exception n catch message format exception e catch jmsexception e fail e
if a property is set as a code long code
public void print final print stream stream stream println this to string
print this stack trace entry
public void test long2 boolean try message message sender session create message store a value that can be converted to boolean message set long property prop 127 l message get boolean property prop fail 3 5 4 the unmarked cases of table 0 4 should raise a jms message format exception n catch message format exception e catch jmsexception e fail e
if a property is set as a code long code
public void test int2 string try message message sender session create message message set int property prop int 127 assert equals 127 message get string property prop catch jmsexception e fail e
if a property is set as an code int code
public void test int2 double try message message sender session create message message set int property prop int 127 message get double property prop fail 3 5 4 the unmarked cases of table 0 4 should raise a jms message format exception n catch message format exception e catch jmsexception e fail e
if a property is set as a code int code
public void test int2 float try message message sender session create message message set int property prop int 127 message get float property prop fail 3 5 4 the unmarked cases of table 0 4 should raise a jms message format exception n catch message format exception e catch jmsexception e fail e
if a property is set as a code int code
protected entry create entry final string raw throws ioexception return new entry raw
create a stack trace entry for the given raw trace entry
public void test int2 long try message message sender session create message message set int property prop int 127 assert equals 127 l message get long property prop catch jmsexception e fail e
if a property is set as an code int code
public void test int2 int try message message sender session create message message set int property prop int 127 assert equals int 127 message get int property prop catch jmsexception e fail e
if a property is set as an code int code
public void test int2 short try message message sender session create message store a value that can t be converted to short message set int property prop integer max value message get short property prop fail 3 5 4 the unmarked cases of table 0 4 should raise a jms message format exception n catch message format exception e catch jmsexception e fail e
if a property is set as a code int code
public void test int2 byte try message message sender session create message store a value that can t be converted to byte message set int property prop integer max value message get byte property prop fail 3 5 4 the unmarked cases of table 0 4 should raise a jms message format exception n catch message format exception e catch jmsexception e fail e
if a property is set as a code int code
public void test int2 boolean try message message sender session create message store a value that can be converted to boolean message set int property prop integer max value message get boolean property prop fail 3 5 4 the unmarked cases of table 0 4 should raise a jms message format exception n catch message format exception e catch jmsexception e fail e
if a property is set as a code int code
public void test short2 string try message message sender session create message message set short property prop short 127 assert equals 127 message get string property prop catch jmsexception e fail e
if a property is set as a code short code
public void test short2 double try message message sender session create message message set short property prop short 127 message get double property prop fail 3 5 4 the unmarked cases of table 0 4 should raise a jms message format exception n catch message format exception e catch jmsexception e fail e
if a property is set as a code short code
public void test short2 float try message message sender session create message message set short property prop short 127 message get float property prop fail 3 5 4 the unmarked cases of table 0 4 should raise a jms message format exception n catch message format exception e catch jmsexception e fail e
if a property is set as a code short code
public void test short2 long try message message sender session create message message set short property prop short 127 assert equals 127 l message get long property prop catch jmsexception e fail e
if a property is set as a code short code
public void test short2 int try message message sender session create message message set short property prop short 127 assert equals int 127 message get int property prop catch jmsexception e fail e
if a property is set as a code short code
public void test short2 short try message message sender session create message message set short property prop short 127 assert equals short 127 message get short property prop catch jmsexception e fail e
if a property is set as a code short code
public void test short2 byte try message message sender session create message message set short property prop short 127 message get byte property prop fail 3 5 4 the unmarked cases of table 0 4 should raise a jms message format exception n catch message format exception e catch jmsexception e fail e
if a property is set as a code short code
public void test short2 boolean try message message sender session create message store a value that can t be converted to boolean message set short property prop short 127 message get boolean property prop fail 3 5 4 the unmarked cases of table 0 4 should raise a jms message format exception n catch message format exception e catch jmsexception e fail e
if a property is set as a code short code
public void test byte2 string try message message sender session create message message set byte property prop byte 127 assert equals 127 message get string property prop catch jmsexception e fail e
if a property is set as a code byte code
public void test byte2 double try message message sender session create message message set byte property prop byte 127 message get double property prop fail 3 5 4 the unmarked cases of table 0 4 should raise a jms message format exception n catch message format exception e catch jmsexception e fail e
if a property is set as a code byte code
public void test byte2 float try message message sender session create message message set byte property prop byte 127 message get float property prop fail 3 5 4 the unmarked cases of table 0 4 should raise a jms message format exception n catch message format exception e catch jmsexception e fail e
if a property is set as a code byte code
public void test byte2 long try message message sender session create message message set byte property prop byte 127 assert equals 127 l message get long property prop catch jmsexception e fail e
if a property is set as a code byte code
public void test byte2 int try message message sender session create message message set byte property prop byte 127 assert equals int 127 message get int property prop catch jmsexception e fail e
if a property is set as a code byte code
public void test byte2 short try message message sender session create message message set byte property prop byte 127 assert equals short 127 message get short property prop catch jmsexception e fail e
if a property is set as a code byte code
public void test byte2 byte try message message sender session create message message set byte property prop byte 127 assert equals byte 127 message get byte property prop catch jmsexception e fail e
if a property is set as a code byte code
public void test byte2 boolean try message message sender session create message store a value that can t be converted to boolean message set byte property prop byte 127 message get boolean property prop fail 3 5 4 the unmarked cases of table 0 4 should raise a jms message format exception n catch message format exception e catch jmsexception e fail e
if a property is set as a code byte code
public void test boolean2 string try message message sender session create message message set boolean property prop true assert equals true message get string property prop catch jmsexception e fail e
if a property is set as a code boolean code
public void test boolean2 double try message message sender session create message store a value that can t be converted to double message set boolean property prop true message get double property prop fail 3 5 4 the unmarked cases of table 0 4 should raise a jms message format exception n catch message format exception e catch jmsexception e fail e
if a property is set as a code boolean code
public void test boolean2 float try message message sender session create message store a value that can t be converted to float message set boolean property prop true message get float property prop fail 3 5 4 the unmarked cases of table 0 4 should raise a jms message format exception n catch message format exception e catch jmsexception e fail e
if a property is set as a code boolean code
public void test boolean2 long try message message sender session create message store a value that can t be converted to long message set boolean property true true message get long property true fail 3 5 4 the unmarked cases of table 0 4 should raise a jms message format exception n catch message format exception e catch jmsexception e fail e
if a property is set as a code boolean code
public void test boolean2 int try message message sender session create message store a value that can t be converted to int message set boolean property prop true message get int property prop fail 3 5 4 the unmarked cases of table 0 4 should raise a jms message format exception n catch message format exception e catch jmsexception e fail e
if a property is set as a code boolean code
public void test boolean2 short try message message sender session create message store a value that can t be converted to short message set boolean property prop true message get short property prop fail 3 5 4 the unmarked cases of table 0 4 should raise a jms message format exception n catch message format exception e catch jmsexception e fail e
if a property is set as a code boolean code
public void test boolean2 byte try message message sender session create message store a value that can t be converted to byte message set boolean property prop true message get byte property prop fail 3 5 4 the unmarked cases of table 0 4 should raise a jms message format exception n catch message format exception e catch jmsexception e fail e
if a property is set as a code boolean code
public void test boolean2 boolean try message message sender session create message message set boolean property prop true assert equals true message get boolean property prop catch jmsexception e fail e
if a property is set as a code boolean code
private jscroll pane get jscroll pane if this j scroll pane null this j scroll pane new jscroll pane this get jtext area this j scroll pane set layout new scroll pane layout return this j scroll pane
this method initializes j content pane
private jtext area get jtext area if this j text area null this j text area new jtext area this j text area set editable false this j text area set background color white this j text area set foreground color black this j text area set font new font courier new font italic 12 this j text area set wrap style word true return this j text area
this method initializes j text area
private jtext field get text path if this text path null this text path new jtext field return this text path
this method initializes text path
private jtext field get text desc if this text desc null this text desc new jtext field return this text desc
this method initializes text desc
private jtext field get text db name if this text db name null this text db name new jtext field return this text db name
this method initializes text db name
private jbutton get jbutton display tree if this j button display tree null this j button display tree new jbutton this j button display tree set text this language get word display this j button display tree add action listener new java awt event action listener public void action performed java awt event action event e goym gui this wrapper display tree goym gui this text db name get text return this j button display tree
this method initializes j button display tree
private jtext field get text artist if this text artist null this text artist new jtext field return this text artist
this method initializes text artist
private jtext field get text album if this text album null this text album new jtext field return this text album
this method initializes text album
private jtext field get tex title if this tex title null this tex title new jtext field return this tex title
this method initializes tex title
private jpanel get jcontent pane if this j content pane null this j label artist new jlabel this j label artist set text this language get word artist this j content pane new jpanel this j content pane set layout new border layout this j content pane add this get jcontent pane1 border layout north return this j content pane
this method initializes j content pane
public string get base uri xxx we could use reflection in dom level 3 to get this value return null
return the base uri of the document containing this node always fails
public string lookup prefix string namespace uri xxx this could be implemented see http www w3 org tr 2004 rec dom level 3 core 20040407 namespaces algorithms html lookup namespace urialgo it hardly seems worth the effort though throw new unsupported operation exception changing interfaces in a jdk blows chunks
return the prefix bound to this namespace uri within the scope
public string lookup namespace uri string prefix xxx this could be implemented see http www w3 org tr 2004 rec dom level 3 core 20040407 namespaces algorithms html lookup namespace urialgo it hardly seems worth the effort though throw new unsupported operation exception changing interfaces in a jdk blows chunks
return the namespace uri mapped to the specified
public object get parent node object o node node node o if node get node type node attribute node return attr node get owner element return node get parent node
return the xpath parent of this dom node
public void action performed final action event e final string command e get action command if command equals close command this dispose else if command equals copy command this panel copy system properties to clipboard
handles action events generated by the user
public int get row count return this tags size
returns the number of rows in the table model
public object get value at final int row final int column object result null final gtag tag this tags get row if column 0 result tag get disk desc else if column 1 result tag get artist else if column 2 result tag get album else if column 3 result tag get title else if column 4 result tag get track else if column 5 result tag get path return result
returns the value for a cell in the table model
public jtext field get text path if this text path null this text path new jtext field return this text path
this method initializes text path
public jtext field get text desc if this text desc null this text desc new jtext field return this text desc
this method initializes text desc
public jtext field get text db name if this text db name null this text db name new jtext field return this text db name
this method initializes text db name
public jtext field get text artist if this text artist null this text artist new jtext field return this text artist
this method initializes text artist
public jtext field get text album if this text album null this text album new jtext field return this text album
this method initializes text album
public jtext field get tex title if this tex title null this tex title new jtext field return this tex title
this method initializes tex title
private jbutton get jbutton display tree if this j button display tree null this j button display tree new jbutton this j button display tree set text this language get word display this j button display tree add action listener new java awt event action listener public void action performed java awt event action event e main gui this wrapper display tree main gui this text db name get text return this j button display tree
this method initializes j button display tree
private jbutton get jbutton search system out println this text db name get text gui if this j button search null this j button search new jbutton this j button search set text this language get word search this j button search add action listener new goym ui action listeners search button this return this j button search
this method initializes j button search
private void init this sanitize keys true this primitive as string false this compress enable true this compress threshold compress thresh this default encoding utf 8 this pool name this pool name null default this pool name local cache new concurrent hash map string object get a pool instance to work with for the life of this instance this pool sock iopool get instance pool name
initializes client object to defaults
public http connection get unmanaged connection string url if url null url trim length 0 return is internal url get data protocol connection url get external connection url return null
creates a connection and returns it
public void enqueue requested resource resource browser content referrer if browser referrer queue remove all elements browser referrer queue add element resource
adds a new element to download
public void run if queue is empty process resource main invoke later this queue is empty 250 1 false
downloads all queued resources
public boolean accept string instruction return instruction null instruction starts with code
able to run the i call i command
public string execute string instruction switch get command instruction case search command return navigator contact manager contacts navigator contact manager contacts concat get agenda by name joe return null
invokes internal phone application
public string execute string instruction if alert is vibrate supported alert start vibrate get vibrate duration instruction return null
checks if the phone has the require vibration module and
public string execute string instruction string number get number instruction if number null invoke invoke application invoke app type phone new phone arguments phone arguments arg call number return null
invokes internal phone application
public string execute string instruction switch get command instruction case picture command ui application get ui application remove file system journal listener listener return navigator camera picture photo path case invoke command photo path null ui application get ui application add file system journal listener listener invoke invoke application invoke app type camera new camera arguments return null
invokes internal camera application
public void clear position position null
deletes the last valid obtained position
public string process instruction string instruction for int index 0 index commands length index command command command commands index if command accept instruction try return command execute instruction catch exception e system out println exception executing command instruction e get message return null
receives a request for execution and fulfills it as long as one of
m app view load url javascript on receive sms senders number sms content
call back to java script
http entity entity null try default http client httpclient new default http client http get httpget new http get url http response response httpclient execute httpget entity response get entity catch exception e e print stack trace return null return entity
get the http entity at a given url
if filter contains sms intent filter m filter new intent filter android provider telephony sms received m ctx register receiver m sms listener m filter
starts the listener for incoming notifications of type filter
if filter contains sms m ctx unregister receiver m sms listener
stops the listener for incoming notifications of type filter
public int delete directory string dir if file manager delete directory dir return 0 else return 1
delete a specific directory
public int delete file string file if file manager delete file file return 0 else return 1
delete a specific file