input stringlengths 10 828 | output stringlengths 5 107 |
|---|---|
public string get creator throws exception logger info get creator string res null try resource property creator rp this get resource property set get semantic binding constants rp creator res string creator rp get 0 catch exception e throw new exception e return res | allows you to see who is claiming creation of the |
public subscribe response subscribe subscribe subscribe request throws remote exception subscribe creation failed fault type topic path dialect unknown fault type resource unknown fault type system out println sbsi subscribe logger info sbsi subscribe subscribe response response subscribe provider subscribe subscribe request return response | subscribes to the topics specified by the client |
public resource property set get resource property set logger info sbr get resource property list system out println sbr get resource property set return prop set | resource property set containing the content creator grid |
public void set creator string creator throws exception logger info set creator try this prop creator set 0 creator sb state set creator creator catch exception e throw new exception e try store catch exception e throw new runtime exception e get message | allows the owner to assert authority |
public object get id logger info sbr get id system out println sbr get id this id to string return id | returns the unique id representing this sb instance |
public string archive string input throws java rmi remote exception logger info sbsi archive system out println sbsi archive semantic binding resource sb resource get resource try sb resource set validity validity enumeration archived catch exception e logger info sbsi archive failed e to string e print stack trace return null | sets the validity of the binding to archived |
public string mini query string query logger info sbr mini query system out println sbr mini query return this resource realization mini query query | allows a miniquery to be carried out on the content |
public string get sbcontent state string input throws java rmi remote exception system out println sbsi get sbcontent state logger info sbsi get content state semantic binding resource sb resource get resource resource property set set sb resource get resource property set resource property valid set get semantic binding constants rp validity string val valid get 0 to string return val | returns the state of the binding |
public string mini inference query string query string ontology file logger info sbr mini inference query system out println sbr mini inference query return this resource realization mini inference query query ontology file | allows the content of the service to be queried |
private semantic binding resource get resource throws remote exception object resource null try system out println sbsi get resource resource resource context get resource context get resource catch exception e logger info sbsi get resource failed e to string return null semantic binding resource sb resource semantic binding resource resource return sb resource | finds the resource associated with this instance |
public string get content string inp logger info sbr get content system out println sbr get content input inp return this resource realization get content inp | returns the content which is stored in the database the sb |
public validity enumeration get validity logger info sbr get validity system out println sbr get validity resource property validity rp this get resource property set get semantic binding constants rp validity return validity enumeration validity rp get 0 | returns the validity archived stable etc |
public void set termination time calendar termination time logger info set termination time this termination time termination time logger info term time is termination time get time in millis try store catch exception e throw new runtime exception e get message | sets the termination time by passing in a calendar set to |
public string get content value logger info sbr get content value system out println sbr get content value resource property content rp this get resource property set get semantic binding constants rp content return string content rp get 0 | returns the rdf description of the service semantics |
public calendar get termination time don t log since it constantly checks this logger info sbr get termination time return this termination time | returns the time which the termiantion |
public string set content value string content val throws exception logger info sbr set content value system out println sbr set content value string response try this prop content set 0 content val sb state set content value content val response success catch exception e logger info sbr set content value failed e to string response fail try store catch exception e throw new runtime exception e get message return response | allows the content of the sb to be overwritten |
public void set endpoint address java lang string port name java lang string address throws javax xml rpc service exception if master service port type equals port name set master service port type endpoint address address else unknown port name throw new javax xml rpc service exception cannot set endpoint address for unknown port port name | set the endpoint address for the specified port name |
public void set endpoint address java lang string port name java lang string address throws javax xml rpc service exception if master service factory port type port equals port name set master service factory port type port endpoint address address else unknown port name throw new javax xml rpc service exception cannot set endpoint address for unknown port port name | set the endpoint address for the specified port name |
public string get creator logger info sbr get creator system out println sbr get creator resource property creator rp this get resource property set get semantic binding constants rp creator return string creator rp get 0 | allows you to see who is claiming creation of the |
public void set creator string creator throws exception logger info sbr set creator system out println sbr set creator this prop creator set 0 creator sb state set creator creator try store catch exception e throw new runtime exception e get message | allows the owner to assert authority |
public calendar get current time logger info get current time return calendar get instance | returns the time which this sb instance has |
public topic list get topic list logger info sbr get topic list return topic list | used by services wishing to find out what rps or |
public knowledge entity reflist type get knowledge entity ref logger info sbr get keref system out println sbr get keref resource property ke rp this get resource property set get semantic binding constants rp k e ref list return knowledge entity reflist type ke rp get 0 | returns the knowledge entity references wrapped up in a |
public grid entity eprlist type get grid entity ref logger info sbr get grid entity ref system out println sbr get grid entity ref resource property ge rp this get resource property set get semantic binding constants rp g e ref return grid entity eprlist type ge rp get 0 | returns the grid entity reference attached to the sb |
public void write details javax xml namespace qname qname org apache axis encoding serialization context context throws java io ioexception context serialize qname null remove grid entity fault response | writes the exception data to the fault details |
public void set termination time calendar termination time logger info sbr set termination time system out println sbr set termination time this termination time termination time logger info term time is termination time get time in millis try store catch exception e throw new runtime exception e get message | sets the termination time by passing in a calendar set to |
public void set grid entity ref org apache axis message addressing endpoint reference type grid entity ref this grid entity ref grid entity ref | sets the grid entity ref value for this canned query response type |
public void set kind of query eu ist ontogrid metadata generated query canned query type kind of query this kind of query kind of query | sets the kind of query value for this canned query request type |
public calendar get termination time logger info sbr get termination time system out println sbr get termination time return this termination time | returns the time which the termiantion |
public void set param value str java lang string param value str this param value str param value str | sets the param value str value for this canned query request type |
public void set endpoint address java lang string port name java lang string address throws javax xml rpc service exception if metadata query port type equals port name set metadata query port type endpoint address address else unknown port name throw new javax xml rpc service exception cannot set endpoint address for unknown port port name | set the endpoint address for the specified port name |
public void set validity eu ist ontogrid metadata generated validity enumeration validity this validity validity | sets the validity value for this semantic binding resource properties type |
public calendar get current time logger info sbr get current time system out println sbr get current time return calendar get instance | returns the time which this sb instance has |
public void set content value java lang string content value this content value content value | sets the content value value for this semantic binding resource properties type |
public void set update type java lang string update type this update type update type | sets the update type value for this update notification type |
public void set new state java lang string new state this new state new state | sets the new state value for this update notification type |
public void set ontology file java lang string ontology file this ontology file ontology file | sets the ontology file value for this mini inference query request |
public void set update reason java lang string update reason this update reason update reason | sets the update reason value for this update notification type |
public void set knowledge entity reflist eu ist ontogrid metadata generated knowledge entity reflist type knowledge entity reflist this knowledge entity reflist knowledge entity reflist | sets the knowledge entity reflist value for this semantic binding resource properties type |
public void set update notification eu ist ontogrid metadata generated update notification type update notification this update notification update notification | sets the update notification value for this update notification wrapper type |
public void set service epr org apache axis message addressing endpoint reference type service epr this service epr service epr | sets the service epr value for this create semantic binding |
public void remove throws resource exception logger info sbr remove resource this get id is going to be removed get persistence helper remove this id | public synchronized void store throws resource exception |
public void set knowledge entity ref java lang string knowledge entity ref this knowledge entity ref knowledge entity ref | sets the knowledge entity ref value for this knowledge entity reflist type |
public void set endpoint address java lang string port name java lang string address throws javax xml rpc service exception if semantic binding port type port equals port name set semantic binding port type port endpoint address address else unknown port name throw new javax xml rpc service exception cannot set endpoint address for unknown port port name | set the endpoint address for the specified port name |
public void set endpoint address java lang string port name java lang string address throws javax xml rpc service exception if semantic binding factory port type port equals port name set semantic binding factory port type port endpoint address address else unknown port name throw new javax xml rpc service exception cannot set endpoint address for unknown port port name | set the endpoint address for the specified port name |
public void remove throws resource exception system out println sbr remove logger info sbr remove resource this get id is going to be removed get persistence helper remove this id | removes sb from persistence database when it is destroyed |
private file get key as file object key throws invalid resource key exception logger info sbr get key as file system out println sbr get key as file if key instanceof integer return get persistence helper get key as file key else logger info sbr get key as file failed resource invalid throw new invalid resource key exception | uses the unique sb instance identifier to return its persistence file on disk |
public body get by name string name return body this | returns body by name |
public int get attack bonus return this attack bonus | return attack bonus of weapon |
public body get body part return this body | returns the respective body part for the different armours |
public void copy file file src file dst throws ioexception if src null dst null throw new illegal argument exception src and dst mustn t be null copy new file input stream src new file output stream dst | trivial file copy could be useful |
public void copy input stream in output stream out throws ioexception if in null out null throw new illegal argument exception input stream and output stream mustn t be null transfer bytes from in to out byte buf new byte 1024 int len try while len in read buf 0 out write buf 0 len finally if in null in close if out null out close | copy streams useful for all kinds of things |
public node ref import file file file node ref target space ref string name throws ioexception return import file file target space ref null name null | convenience method for import file uses |
public node ref import file file file node ref target space ref throws ioexception return import file file target space ref null null null | convenience method for import file uses |
public void se deconnecter throws ioexception gui changer bouton connexion deconnexion false appel de la fonction du protocole qui ferme les sockets ouverts protocole se deconnecter interruption des threads if thread echange listes null thread echange listes interrupt if telechargement null telechargement is alive telechargement interrupt connecte false m morisation de l tat d connect gui reinitialiser interface | fermer la connexion avec lannuaire |
public void terminer client throws ioexception se deconnecter system exit 0 | terminer le programme client |
public void echanger liste throws exception file fichiers dossier share list files string noms fichiers new string fichiers length obtention des noms des fichiers et formatage du nom for int i 0 i noms fichiers length i noms fichiers i fichiers i get name envoi en utilisant le protocole qui nous redonne la liste des fichiers partag s sur le r seau client set liste fichiers reseau protocole envoyer liste noms fichiers | echange des listes de fichiers |
private void add trackback action final string action final map meta data if action delete equals ignore case action meta data put trackback plugin blojsom plugin trackback metadata destroy boolean true if log is debug enabled log debug marking trackback to be deleted else meta data put trackback moderation plugin blojsom trackback moderation plugin approved boolean false if log is debug enabled log debug marking trackback to be moderated | add meta data depending on the action either delete or moderate |
private graphics2 d create background final buffered image image graphics2 d graphics image create graphics graphics set paint m background color graphics fill new rectangle2 d double 0 0 image get width image get height graphics set paint m bar background color graphics fill new rectangle2 d double bar margin 1 1 m bar width 1 m bar height 1 return graphics | creates the background graphics from the buffered image |
private void draw borders final graphics2 d graphics graphics set paint m border color graphics fill new rectangle2 d double bar margin 0 bar border size m bar height graphics fill new rectangle2 d double bar margin m bar width bar border size 0 bar border size m bar height graphics fill new rectangle2 d double bar margin 0 m bar width bar border size graphics fill new rectangle2 d double bar margin m bar height m bar width bar border size | draws the borders on the graphics |
public void set background color final color background color m background color background color | sets the background color |
public void set bar background color final color bar background color m bar background color bar background color | sets the bar background color |
public void set border color final color border color m border color border color | sets the border color |
public void set bar height final int bar height if bar height 0 throw new illegal argument exception invalid bar height m bar height bar height | sets the bar height |
public void set bar width final int bar width if bar width 0 throw new illegal argument exception invalid bar width m bar width bar width | sets the bar width |
public void set font color final color font color m font color font color | sets the font color |
public void set timeline color final color timeline color m timeline color timeline color | sets the timeline color |
public void set time interval color final color time interval color m time interval color time interval color | sets the time interval color |
private list get all question answer final blog blog list question answer list new array list for iterator it m blojsom qaproviders iterator it has next blojsom qaprovider provider blojsom qaprovider it next question answer list add all provider get question answer list for iterator it m blog qaproviders iterator it has next blog qaprovider provider blog qaprovider it next question answer list add all provider get question answer list blog return question answer list | gets a list of question answer from all providers |
private void mark comment for deletion final map context map comment meta data if context contains key comment plugin blojsom plugin comment metadata comment meta data map context get comment plugin blojsom plugin comment metadata else comment meta data new hash map comment meta data put comment plugin blojsom plugin comment metadata destroy boolean true to string context put comment plugin blojsom plugin comment metadata comment meta data | marks comment for deletion by adding comment destroy to comment meta data |
private void open connection throws xmppexception if m connection null m connection is connected m connection close m connection new google talk connection | opens the google talk connection after making sure that any previously |
private void open connection throws xmppexception if m connection null m connection is connected m connection close if m port null m connection new xmppconnection m host else m connection new xmppconnection m host m port int value | opens the xmpp connection after making sure that any previously opened |
private string get url string final object url object string url string if url object null url string string value of url object else url string null return url string | gets a url string from an object |
public country get country final long ip number string sql select from iptocountry where ip from ip number and ip to ip number map result m jdbc template query for map sql return new country string value of result get column country code2 string value of result get column country code3 string value of result get column country name | gets the country code based on the specified ip number |
protected void add channel final channel channel if this channels contains key channel get name this channels put channel get name channel | adds a channel to the channel list |
public string get arguments return this arguments | gives the arguments parsed from this raw server line |
protected channel get channel final channel channel return this get channel channel get name | retrieves a shared channel object from the channel list |
protected channel get channel final string channel if this channels contains key channel return this channels get channel return null | retrieves a shared channel object from the channel list |
private int get integer final string parse try return integer parse int parse catch final number format exception ex return 1 | tries to parse given string to an integer |
public void add message listener final message listener listener if listener null this message listeners contains listener this message listeners add listener | adds a message listener to this irc connection |
public user get client return this client | retrieves the local |
protected boolean has channel final string name return this channels contains key name | checks if given channel is in the channel list |
protected void remove all this channels clear | remove all channels from the channel list |
protected void remove channel final string channel if this channels contains key channel this channels remove channel | removes a channel from the channel list |
protected void set client final user user this client user | set the local |
public int get numeric command return this cmd numeric | gives the command parsed from this raw server line |
public void add mode listener final mode listener listener if listener null this mode listeners contains listener this mode listeners add listener | adds a mode listener to this irc connection |
protected void close throws ioexception this out flush this out close | closes the output stream |
public user get sender user return this sender user | gives the sender |
public void add server listener final server listener listener if listener null this server listeners contains listener this server listeners add listener | adds a server listener to this irc connection |
public boolean has arguments return this arguments null this arguments length 0 | checks whether this line had arguments |
public boolean has message return this message null this message trim length 0 | checks whether this line had a message |
public boolean is ctcp return this ctcp | checks whether this command is a ctcp command |
public void add service final sircservice service if service null this services contains service this services add service service load this | add and load a service |
public boolean is numeric return this numeric | checks if this server line is a numeric reply |
protected void set address final string address this address address | changes the server address |
protected void set password final string password this password password | changes the server password |
public string get nick lower return this nick lower | returns the lowercase nickname for this user |
protected void add user final user user if this users null this users contains key user get nick lower this users put user get nick lower user | adds a user to the user list in this channel |
protected void set port final int port this port port | changes the server port |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.