input
stringlengths
10
828
output
stringlengths
5
107
public void check for new version boolean first run new thread new update checker first run start
checks for a new version when firstrun there wont be an error message
public void add recipients jtable table for int i 0 i table get row count i if new boolean table get value at i 0 to string string add if to field get text length 0 add to field get text add table get value at i 2 table get value at i 1 to field set text add
adds the recipients choosen in the addressbook to the to field
public void enable send buttons boolean value send button set enabled value send later button set enabled value
disables the send buttons
public string get sender phone return sender phone
phone number msisdn of the message sender
public string get recipient phone return recipient phone
phone number msisdn the message was sent to
public short get parts count return parts count
number of parts the message text was divided into
public string get coutry code return coutry code
code of a country the phone number registered in
public delivery state get delivery state return delivery state
current state of delivering progress
public string get reply number return reply number
phone number msisdn the message recipient can reply to
public big decimal get credits cost return credits cost
the cost of the sent message
public string convert string text try string builder result new string builder for int i 0 i text length i if text char at i i text length 1 text char at i 1 u short int val short value of text substring i 2 i 6 16 result append new string short to byte array int val utf 16 i 5 else result append text char at i return result to string catch unsupported encoding exception ex throw new illegal state exception text text contains utf 16 codes but utf 16 encoding is not supported ex
convert raw string with hex codes to decoded string
public date get completed time return completed time
time when delivering was completed
public void set invoker http service invoker invoker this invoker invoker
sets alternative http service invoker implementation
public void set parser text magic response parser parser this parser parser
sets alternative text magic response parser implementation
protected void validate phones format list string phones for string phone phones if msisdn format matcher phone matches throw new illegal argument exception phone phone has invalid format
checks whether all phones in provided list have correct msisdn format
public big decimal account throws service backend exception service technical exception map string string parameters collections empty map try string response invoke account command parameters return parser parse account response response catch response parsing exception ex throw new service technical exception ex get message ex
returns current text magic account balance
public long delete reply long message id throws service backend exception service technical exception list long list delete reply arrays as list message id if list size 1 throw new service technical exception the server response is unexpected the response object was not populated with single result arrays to string list to array return list get 0
deletes the exact inbound sms message from server
private void add icopanel final jpanel p parent final icofile p icofile final jpanel l icofile panel create icofile panel p icofile p parent add l icofile panel final iterator l desc it p icofile get descriptors iterator while l desc it has next final bitmap descriptor l descriptor bitmap descriptor l desc it next final image l image create image p icofile l descriptor if l image null continue add bitmap l icofile panel l descriptor l image
create and add a panel containing all icons in the ico file
public void internal set is outermost list this is outermost list true
internal method to the sql orm project
public int internal size return and ors size
internal method to the sql orm project
public insert builder generate question marks for int i 0 i insert columns size i values add return this
generate for prepared statements
public string to sql final string builder sb new string builder to sql sb return sb to string
call this method for generating an sql expression from your object
public void to sql final string builder sb string indent sb append indent sb append insert into sb append table name sb append to sql column names sb indent
internal method for sql generation
public int internal size return list internal size
internal method dont use it
public itf select builder select final string column column identifier expr expr new column identifier expr column if select columns contains expr false select columns add expr return this
select a column
public itf select builder select final string column final string alias column identifier expr expr new column identifier expr column alias if select columns contains expr false select columns add expr return this
select a column
public void to sql final string builder sb string indent if is nested select sb append n indent indent indent delta sb append indent to sql select sb indent to sql from sb indent to sql where sb indent to sql group by sb indent to sql having sb indent to sql order by sb indent if is nested select sb append select alias sb append select alias equals as select alias
internal method for sql generation
public string get deployment directory return this deployment directory
getter for property deployment directory
public void set deployment directory string deployment directory this deployment directory deployment directory
setter for property deployment directory
public hash map get hibernate properties return hibernate properties
getter for property hibernate properties
public void set hibernate properties hash map hibernate properties this hibernate properties hibernate properties
setter for property hibernate properties
public string get uml file location return this uml file location
getter for property uml file location
public void set uml file location string uml file location this uml file location uml file location
setter for property uml file location
public string get jmatter directory return this jmatter directory
getter for property jmatter directory
public void set jmatter directory string jmatter directory this jmatter directory jmatter directory
setter for property jmatter directory
public multi line string get name holder return this name holder
getter for property name
public void set name holder multi line string name this name holder name
setter for property name
public boolean is abstract class return this abstract class
getter for property abstract class
public void set abstract class boolean abstract class this abstract class abstract class if abstract class name holder set text abstract n name else name holder set text name
setter for property abstract class
public void set name string name holder this name holder set text name holder this name name holder
setter for property name holder
public void set annotation name value java util hash map annotation name value this annotation name value annotation name value
setter for property annotation name value
public void set attribute name type java util linked hash map string string attribute name type this attribute name type attribute name type
setter for property attribute name type
public void set attribute annotations java util hash map string java util hash map attribute annotations this attribute annotations attribute annotations
setter for property attribute annotations
public deployment information get deployment info return this info
getter for property jmatter dir
public void set generator generator if generator this generator generator panel set generator this generator
setter for property generator
public boolean get start navigable return this start navigable
getter for property start navigable
public void set start navigable boolean start navigable if start navigable this start arrow head arrow head v else this start arrow head arrow head none this start navigable start navigable
setter for property start navigable
public string get start multiplicity return this start multiplicity
getter for property start multiplicity
public void set start multiplicity string start multiplicity this start multiplicity start multiplicity calculate start label
setter for property start multiplicity
public string get end multiplicity return this end multiplicity
getter for property end multiplicity
public void set end multiplicity string end multiplicity this end multiplicity end multiplicity calculate end label
setter for property end multiplicity
public string get start name return this start name
getter for property start name
public void set start name string start name this start name start name calculate start label
setter for property start name
public string get end name return this end name
getter for property end name
public void set end name string end name this end name end name calculate end label
setter for property end name
public multi line string get start annotations return this start annotations
getter for property start annotations
public void set start annotations multi line string start annotations this start annotations start annotations
setter for property start annotations
public multi line string get end annotations return this end annotations
getter for property end annotations
public void set end annotations multi line string end annotations this end annotations end annotations
setter for property end annotations
public void close if m leaked exception null get connection manager shutdown m leaked exception null
release resources associated with this client
private boolean is loggable return log is loggable tag level
returns true if logging is turned on for this configuration
private void println string message log println level tag message
prints a message using this configuration
public void enable curl logging string name int level if name null throw new null pointer exception name if level log verbose level log assert throw new illegal argument exception level is out of range log verbose log assert curl configuration new logging configuration name level
enables c url request logging for this client
public void disable curl logging curl configuration null
disables c url logging for this client
public void start transition int duration millis m from 0 m to 255 m alpha 0 m original duration m duration duration millis m reverse false m transition state m start m end transition starting transition none invalidate self
begin the second layer on top of the first layer
public void reset transition m alpha 0 m transition state transition none invalidate self
show only the first layer
public void set cross fade enabled boolean enabled m cross fade enabled
enables or disables the cross fade of the drawables
public string get absolute name return this abs path name
get the absolute file entry name
public long get size if is root return 1 else return this get name length
get the size of this entry
public long get time if is root return 1 l else return this entry get published get value
the creation time of the entry
public void show address sender prompt and send sms address if message box get string trim length 0 error message alert set string invalid message display set current error message alert message box return display set current destination address box
prompt for and send the message
public void run send sms sms destination address box get string
send the message
private string add query string url string query if query null if url index of 0 return url query return url query return url
appends the query string to the url nicely
public void register graph type idiagram plugin new graph type this registry put new graph type get graph class new graph type
registers a new graph type
private undo redo compound behavior get undo redo behavior ieditor part active editor part workspace get editor part ieditor part behavior manager behavior manager active editor part get behavior manager list undo redo compound behavior found behavior manager get behaviors undo redo compound behavior class if found size 1 return null return found get 0
looks for undo redo behavior on the current editor part
private cut copy paste behavior get cut copy paste behavior ieditor part active editor part workspace get editor part ieditor part behavior manager behavior manager active editor part get behavior manager list cut copy paste behavior found behavior manager get behaviors cut copy paste behavior class if found size 1 return null return found get 0
looks for cut copy paste behavior on the current editor part
private boolean is new file if this current filename null this current directory null return true return false
indicates if this file is new
public void inject object o class extends object implementation type o get class managed bean annotation implementation type get annotation managed bean class if annotation null class extends default application context context annotation application context this inject o context return if annotation null this inject o default application context class
injects beans on fields annotated with
public void reset this dao reset
clear user preferences
private boolean is field null field a field object o try object current value a field get o if current value null return true catch illegal argument exception e1 throw new manioc exception error while getting field value of bean managed by the bean factory field a field get name e1 catch illegal access exception e1 throw new manioc exception error while getting field value of bean managed by the bean factory field a field get name e1 return false
checks if a field is empty null value
public enum bean scope singleton prototype
scope of a bean
private void update tabbed pane ui uimanager put tabbed pane content border insets new insets 1 1 1 1
inits tabbed pane look and feel
private void set default preferred size set preferred size new dimension max text width int get preferred size get height
sets default preferred size to ensure a constant width for all buttons
private void set default layout this set layout new box layout this box layout line axis
sets default layout used when both icon and text are visible
public void set text visible boolean is visible this text label set visible is visible if is visible set default preferred size set default layout if is visible super set preferred size null flow layout layout new flow layout flow layout center 0 0 set layout layout
shows hides button text
private void assert valid input transformer config config transformer template template string builder error message builder new string builder the following error s has occured boolean assertion failed false if config null error message builder append transformer config is null assertion failed true if template null if assertion failed error message builder append and error message builder append transformer template is null assertion failed true if assertion failed string message error message builder to string log error pre transformation tests failed message throw new assertion error message log debug pre transformation tests successful
assert that the transformation can be started
private string get prefix field field object target string selected prefix null class extends object clazz target get class list string declared methods new array list string for method method clazz get declared methods declared methods add method get name for string prefix getter variants string name helper generate getter name field get name prefix if declared methods contains name selected prefix prefix break return selected prefix
attempts to find a suitable prefix for the getter for the given field
public void info string message if this log is info enabled this log info message
logs a information message if information logging is enabled
public void error string message throwable error if error null this log error message error else this log error message
logs an error message with attached exception trace
public boolean is iterable object target boolean return statement false class extends object clazz target get class if list class is assignable from clazz return statement true else if clazz is array return statement true return return statement
check if the object implements any iterable interface
public transformer helper decrease tab this tab count return this
decrease the tab count by 1 and return this instance
public transformer helper increase tab this tab count return this
increase the tab count by 1 and return this instance
public boolean is using string match masking return string match masking
use string match masking e
public transformer helper increase recursive count this recursive count return this
increase the recursive count and return this instance
public boolean is line breaks return line breaks
use line breaks in the output
public string get transformed object object obj transformer config config transformer template template throws transformation exception try synchronized this encoder string xml this encoder transform obj config template if config is using string match masking xml run string match replace xml log debug transformation successful execution time config get execution time ms return xml catch transformation exception e throw e
transforms given object to xml
public boolean is indentation return indentation
use indentation in the output
private string run string match replace string string matcher matcher pattern matcher string string masked message string if matcher find masked message matcher replace all mask return masked message
replaces all string matches in the input with the given replacement
public boolean is recursive count reached boolean return statement false if this get current recursive count this config get max depth 1 return statement true if this config get max depth 1 return statement false return return statement
checks the config if the max depth has been reached or not
public boolean is indentation return this config is indentation
same as transformer config