input
stringlengths 10
828
| output
stringlengths 5
107
|
|---|---|
private string buffer docombo options collection label value combo options string selected throws argument not found exception string buffer buf new string buffer if combo options null for label value value combo options string val value get value string buffer bf new string buffer parser doc get instance get combooptions util replace value val bf if selected null val equals selected util replace selected selected bf else util clean label selected bf util replace label value get label bf buf append bf return buf
|
does the parse of the combo contents
|
private portlet preferences get preferences faces context ctx faces context get current instance external context e ctx ctx get external context return portlet request e ctx get request get preferences
|
returns the portlet preferences
|
private portlet session get portlet session faces context ctx faces context get current instance external context e ctx ctx get external context return portlet session e ctx get session false
|
returns the portlet session
|
public string buffer get buffer return this buffer
|
getter for property buffer
|
public void parse page page throws throwable parse page get action page get start action page
|
does the initial parse
|
event set unicast true public interface callback extends service control callback
|
this event set interface provides support for the on async failure event
|
public dice int n int b base b number n modifier 0
|
constructs dice using only a number and a base
|
public dice int n int b int m base b number n modifier m
|
the modifier must also be specified
|
public int get next value double tmp 0 0 for int i 0 i number i math random base 1 0 base 1 so we always add 1 tmp math random base 1 1 return int math round tmp modifier
|
gets the next pseudo random value based on the number base and modifier
|
public int value return current
|
gets the current score for this ability
|
public int get value return current
|
gets the current score for this ability
|
public void set value int value current value
|
sets the current score for this ability
|
public void adjust value int value current value
|
add the supplied value to the current score
|
public int max value return max
|
gets the maximum value for this ability score
|
public void set max int value max value
|
sets the maximum value for this ability score
|
public void set description string descrip description descrip
|
sets the description for this object
|
public void characters char ch int start int length throws saxexception element value new string ch start length
|
method called to read data between xml tags
|
public void set maximum int value max value
|
sets the maximum value for this ability score
|
public void characters char ch int start int length throws saxexception string new str new string ch start length names add new str system out println t added new str
|
method called to read data between xml tags
|
public void core register core register input this
|
tells the input source to register itself at the core
|
public void core unregister core un register input this
|
tells the input source to unregister itself from the core
|
public int get session nr return this session nr
|
returns the session nr
|
public date get receive date return this receive date
|
returns the date when the packet was received
|
public string get gps data return this gps data
|
returns the gps position data stored in the abstracted packet
|
public boolean is registered distribution target dist data targets target check if bitflag of the passed component is set in core targets if target get value this core targets 0 return true return false
|
checks if a component is meant to receive this instance
|
public dist data sources get core distribution source return this core source
|
returns the component that send this instance to the core for distribution
|
public void init todo start asynchronous download of heavy resources try swing utilities invoke and wait new runnable public void run hoofd paneel hfdpaneel new hoofd paneel set content pane hfdpaneel hfdpaneel request focus catch exception e system err println foutje
|
initialization method that will be called after the applet is loaded
|
public level attributes get study attributes return study attributes
|
get the study attributes element value
|
public void set study attributes level attributes study attributes this study attributes study attributes
|
list the study attributes element value
|
public int get tag throws number format exception return study io hex2int tag
|
get the tag attribute value
|
public void set tag int tag this tag study io int2hex tag
|
set the tag attribute value
|
public void set version big decimal version this version version
|
set the version attribute value
|
public string get string tag return tag
|
get the tag attribute value
|
public void set string tag string tag this tag tag
|
set the tag attribute value
|
public void set vr string vr this vr vr
|
set the vr attribute value
|
public void add attribute type level attribute level attribute add attribute type level attribute get tag level attribute get desc
|
for ji bx
|
public string get vm return vm
|
get the vm attribute value
|
public void set vm string vm this vm vm
|
set the vm attribute value
|
public void add element final element type element add elements element get string tag to char array 0 element
|
add an element item
|
public unknown attribute get unknown attributes return unknown attributes
|
get the unknown attributes attribute value
|
public void set unknown attributes final unknown attribute unknown attributes this unknown attributes unknown attributes
|
set the unknown attributes attribute value
|
public void put attribute final attribute attr attribute map put attr get tag attr
|
puts an attribute into the series attributes are unique per tag
|
public void remove attribute final int tag attribute map remove tag
|
removes the attribute with the given tag from the series
|
public void add item final item item items add item
|
puts an item into the attribute
|
public void remove item final int index items remove index
|
removes the item at the given index in the list
|
public void put series final series series series map put series get series instance uid series
|
puts an series into the study series are unique per uid
|
public void remove series final string uid series map remove uid
|
removes the series with the given uid from the study
|
public void set tag string hex this tag study io hex2int hex
|
set the tag attribute value
|
public void set study instance uid string study instance uid this study instance uid study instance uid
|
set the study instance uid attribute value
|
public string get vr return vr
|
get the vr attribute value
|
public void set bid int bid if bid 1 bid 1 this bid bid
|
set the bid attribute value
|
private void set instance count final int instance count do nothing
|
this is here only to satisfy ji bx
|
public void set excluded boolean excluded this excluded excluded
|
set the exclude attribute value
|
public void put normalized instance attribute final attribute attr normalized instance attribute map put attr get tag attr
|
puts a normalized instance attribute into the series attributes are unique per tag
|
public void remove normalized instance attribute final int tag normalized instance attribute map remove tag
|
removes the normalized instance attribute with the given tag from the series
|
public void put instance final instance inst instances put inst get sopinstance uid inst
|
puts an instance into the series instances are unique per xfer
|
public instance remove instance final string sop instance uid return instances remove sop instance uid
|
removes an instance from the series based on its sop instance uid
|
public instance get instance final string sop instance uid return instances get sop instance uid
|
gets an instance from the series based on its sop instance uid
|
public void set sopinstance uid string sop instance uid this sop instance uid sop instance uid
|
set the sop instance uid attribute value
|
public string get transfer syntax uid return transfer syntax uid
|
get the transfer syntax uid attribute value
|
public void set transfer syntax uid string transfer syntax uid this transfer syntax uid transfer syntax uid
|
set the transfer syntax uid attribute value
|
private date get date date time dt calendar calendar dt to calendar null return calendar get time
|
converts the given joda date time object into a java date object
|
public void finish study utils normalize study meta binary pair get metadata
|
completes the build of the meta data and returns the results
|
private file get study dicom dir file study dicom dir null try string mint home system getenv mint home file studies root new file mint home studies file study dir studies root list files 0 for file f study dir list files if f get name equals dicom study dicom dir f log info study folder found study dicom dir to string catch exception e something failed so returning null log error unable to find a study folder e return study dicom dir
|
dont care which study all of them should work
|
public iprocessor factory method return new pget available2 dgames
|
retorna un instancia de la clase con sus campos internos inicializados
|
public iprocessor factory method return new pabort quest
|
retorna un instancia de la clase con sus campos internos inicializados
|
public string get string query name string value m queries get property query name if value null value super get query name if value null system err println sqlfactory query query name not found in sql properties return value
|
get the value for the query name
|
public string get string query name string value null if value m queries get property query name null system err println sqlfactory query query name not found in sql properties return value
|
get the value for the query name
|
public void close throws default exception
|
dispose of a used connection
|
public void close throws default exception try ds null catch exception ex throw new default exception cannot close jndi connection
|
dispose of a used connection
|
public int delete log content string log id throws default exception string delsql delete from log content where tserial num log id sqlhelper helper new default sqlhelper db data return helper exec update delsql
|
log content tserial num logid
|
public list get tree data string nodeid throws default exception list tree data new array list string str where str where and parent type nodeid system out println the str where is str where target tree vo vo new target tree vo sqlhelper helper helper new default sqlhelper db data tree data array list helper query by list vo tree sql str where vo return tree data
|
get tree data
|
public list get pop3 config by user id string user id throws default exception sqlhelper s helper new default sqlhelper super db data string buffer sb new string buffer sb append this query sql sb append and pop3 mailsetup user code sb append user id sb append and pop3 mailsetup use flag 1 order by pop3 mailsetup use flag desc return list s helper query by list vo sb to string new pop3 config vo
|
id pop3config vo
|
private void send pop3 mail mail vo mail vo hash map mail map set pop3 mail mgr dao mail map put view this get pop3 config vo mail map put main note mail vo get content system out println mail reciever address is mail vo get receive address system out println server path is server path string pop3 send result pop3 mail mgr dao set server path this server path pop3 send result pop3 mail mgr dao send mails mail map mail vo array list this attach list mail map put pop3 send result pop3 send result
|
send pop3 mail
|
public string do update goa action config cfg boolean is back throws default exception exception string forword null forword super do update cfg is back cfg get session set attribute operate update return forword
|
request update result
|
public string do insert goa action config cfg boolean is back throws default exception exception string forword null forword super do insert cfg is back cfg get session set attribute operate insert return forword
|
request insert result
|
public string do delete goa action config cfg throws default exception exception string forword null http servlet request request cfg get request cfg get request set attribute delete ids cfg get request get parameter values fid try forword super do delete cfg cfg get session set attribute operate delete cfg get session set attribute operate id cfg get request get parameter values fid catch default exception e if e get message equals pk request set attribute error msg return this forword list page return forword
|
request delete result
|
private boolean revert mail from garbage dir string mail id connection conn boolean is success true string update sql revert mail dir sql 1 mail id revert mail dir sql 2 mail id system out println update sql is update sql try statement stmt conn create statement if stmt execute update update sql 1 is success false catch sqlexception ex ex print stack trace is success false return is success
|
revert mail from garbage dir
|
public void set move generators move generator black move generator white move gen black black move gen white white
|
indstil tr k generatorer
|
private void create domtree create the root element element root ele dom create element xml dom append child root ele write fileinfo and version element file info dom create element fileinfo element appname dom create element appname appname set attribute version 1 text appname text dom create text node da crypt pad appname append child appname text file info append child appname root ele append child file info element entries dom create element entries element element node to xml model get root node entries append child element root ele append child entries
|
the real workhorse which creates the xml structure
|
public usage get usage return usage
|
returns the wrong way of using the operator
|
public boolean can handle string config url return config url ends with properties
|
dummy implementation of can handle
|
private history get history history history history histories get if history null history new history histories set history return history
|
lazily create a new history instance for the current thread
|
public string to string string buffer sb new string buffer user username sb append username if username null sb append firstname sb append firstname sb append lastname sb append lastname sb append return sb to string
|
return a string representation of this object
|
public console get console return this console
|
get console method
|
private int parse fields int i int array position i field list clear while array position arguments length arguments array position starts with this field list add arguments array position return array position
|
gets all the arguments in between two commands denoted by a dash e
|
public void run if this get wakeup value 0 this lender list clear this console parse arguments reset and update list if this get console is error occurred this output this get console print borrowed items if this get console use console output system out println this output if this get console use email output this email results this get console get email address this get console get smtp server
|
required for extension of timer task class that runs on wake up
|
public void create uh manoa library string id number string last name uh manoa library lender new uh manoa library this create lender lender id number last name
|
creates a new instance of uh manoa library
|
public void create hawaii state public library string id number string last4 phone digits hawaii state public library lender new hawaii state public library this create lender lender id number last4 phone digits
|
creates a new instance of hawaii state public library
|
public void print usage info system out println system out println usage java jar duedates jar lender field1 field2 sort library duedate within number system out println system out println supported lenders are system out println uh manoa library uhm id last name system out println hawaii state public library hsl id last4 digits of phone number system out println system out println example query 2 libraries sort by due date due within 5 days system out println due dates jar uhm 12345678 test hsl 12345678 1234 sort duedate within 5
|
prints usage info for due dates
|
public void log in all lenders throws log in exception for lender lender lender list try lender log in catch log in exception e throw new log in exception lender get lender name e get message e
|
logs in all the lenders in the lender list
|
public boolean use console output return this console output
|
returns whether to use console output
|
public void query all lenders throws log in exception parse item exception for lender lender lender list try lender query borrowed items catch log in exception e throw new log in exception lender get lender name e get message e catch parse item exception e throw new parse item exception lender get lender name e get message e
|
queries all the lenders in the lender list for the borrowed books
|
public boolean use email output return this email output
|
returns whether to use email output
|
public void sort by lender name collections sort lender list
|
sorts the lender list by lender name
|
public void sort by due date for lender lender lender list collections sort lender get item list
|
sorts the lender lists borrowed items by due date
|
test public void test to string method assert equals testing to string method due 01 02 2008 test item to string
|
test to string method
|
public void set login fields string f1 string f2 this field1 value f1 this field2 value f2
|
sets the fields required to log into the system
|
public string get lender name return lender name
|
returns the lenders name
|
public void sort collections sort this item list
|
sorts the item list by earliest due date
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.