input
stringlengths 10
828
| output
stringlengths 5
107
|
---|---|
public void ignore case get example ignore case | ignores the case sensitive in strings |
protected list find by criteria class clazz return find by criteria clazz criterion null | use this inside subclasses as a convenience method |
public void add order string property boolean ascending order property list add new order property ascending | adds an order property |
public boolean from if string str object param final condition conditions if if chk param conditions from str param return true return false | adds the sentence if the parameter match the conditions |
public object convert class type object value object resp default value deal with a null value if value null return default value deal with the no conversion needed case if value instanceof integer value instanceof int return value else convert if default value instanceof integer resp convert integer array value else if default value instanceof int resp convert int array value return resp | convert the specified input object into an output object of the |
public object convert class type object value deal with a null value if value null return default value deal with the no conversion needed case if value instanceof string return value string resp string default value if value get class is array resp convert to array string value if value instanceof collection resp convert to array string collection value to array if value instanceof map resp convert to array string map value values to array converter converter string bean helper util lookup string class resp new string string converter string convert string class value return resp | convert the specified input object into an output object of the |
public void set count rows integer count rows this count rows count rows | the number of rows |
public integer get page number return page number | starts in number 1 page |
public integer get next page return get has next get page number 1 get page number | returns the next if has next pages |
public void set result list t result this result result | sets the collection with result |
public void set problem email domain string value problem email domain value | sets the problem email domain |
public void reset total to show null record group null display type null no total label null show as table null show headings null show record table null model null colors null report style null coordinates null total dict null total count 1 | resets cached values |
public void set response code int code response code code | sets the response code for an request |
public void set proxy string type string host int port socket address sa new inet socket address host port if socks equals ignore case type proxy new proxy proxy type socks sa else if http equals ignore case type proxy new proxy proxy type http sa else throw new illegal argument exception unknown proxy type | sets a http or socks proxy for the connection |
public void remove proxy proxy null | removes the proxy and enables a direct connection |
public void set provider key string provider key this provider key provider key | sets your provider key |
public string get provider key return provider key | retrieves the provider key |
public string get prowl url return default prowl urlbuilder get prowl api url | retrieves the prowl server url |
public void set prowl url string url default prowl urlbuilder set prowl api url url | sets the prowl server url |
public void update org umlmda demo partner ipartner to update java util date validity date throws remote exception org umlmda demo common not found exception delegate update to update validity date | updates a partner which data valid for the given date |
public void set persistent this persistent true | sets the businessobjekt to persistent |
public partner hierarchie read string id java util date validity date try string id webservice utils convert from ws id java util date validity date webservice utils convert from ws validity date org umlmda demo partner ipartner result null utils resolve references result delegate read id validity date utils reset references partner hierarchie converted result utils create result utils resolve references return converted result finally utils reset references | reads a partner which data valid at the given date |
public void update partner hierarchie to update java util date validity date throws not found exception try org umlmda demo partner ipartner to update utils create to update java util date validity date webservice utils convert from ws validity date utils resolve references delegate update to update validity date catch org umlmda demo common not found exception e throw utils create e finally utils reset references | updates a partner which data valid for the given date |
public int get mandator id return mandator id | get key attribute mandator id |
public itime dependent create time dependent return new time dependent | create businessinterface for time dependent |
public itime dependent create time dependent java util date valid from return new time dependent valid from | create businessinterface for time dependent giving the |
public string get full name user section begin person get full name string buffer buf new string buffer if string utils is not empty get name buf append get name if string utils is not empty get firstname buf append buf append get firstname return buf to string user section end person get full name | delivers the full name of the partner |
public void set partner pkey ipartner pkey pkey this pkey pkey | setter for the primary key |
public int get mandator id return get partner pkey get mandator id | get parent key attribute mandator id |
public string get full name user section begin partner get full name return get name user section end partner get full name | delivers the full name of the partner |
public item create special item string name if pcdata equals name empty equals name return new special item name else if any equals name all equals name return new special item any else throw new runtime exception invalid special item name | create special items namely pcdata any empty all |
public string to string string buffer buf new string buffer element name model if list size 0 buf append n attlist name n for iterator j list iterator j has next buf append t j next if j has next buf append n buf append return buf to string | prints element as well as associated attributes |
protected xmlreader create parser if system get property org xml sax driver null system set property org xml sax driver default parser try xmlreader parser xmlreader factory create xmlreader parser set dtdhandler this parser set error handler this parser set property http xml org sax properties declaration handler this parser set property http xml org sax properties lexical handler this parser set feature http xml org sax features validation true parser set feature http apache org xml features nonvalidating load external dtd true return parser catch saxexception e1 system err println e1 get message return null | called to create sax parser |
protected input source create input source define dummy root node foo is there a better name string xml xml version 1 0 n doctype dummy system source n element dummy empty n dummy n byte array input stream stream new byte array input stream xml get bytes file input stream stream null try stream new file input stream home dahm java xxl uni xmi catch exception e system err println e return new input source stream | called to create dummy input stream that only references the given dtd |
public void start entity string name throws saxexception system out println entity name | ignored since entities are already resolved by the sax parser |
protected string make name string name char chars name to char array string buffer buf new string buffer for int i 0 i chars length i char ch chars i if ch chars i 1 buf append i else if character is letter or digit ch buf append ch else buf append return buf to string | convert rose identifier to normal one |
public void add realized class class c class super class c add implemented interface get class name super class todo add inherited methods | alias for add implemented interface |
public inheritance relationship add super use case use case caze return add super classifier caze | add super use case of this use case i |
public void init super init get root register class this | intialize this class by registering it by its quid and |
public inheritance relationship add super class class clazz return add super classifier clazz | add super class of this class i |
public realize relationship add implemented interface class inter realize relationship rel petal object factory get instance create realize relationship this inter rel init parent is already set add to list realized interfaces realize rel list rel return rel | add implemented interface to this class i |
public uses relationship add used class class inter uses relationship rel petal object factory get instance create uses relationship this inter rel init parent is already set add to list used nodes uses relationship list rel return rel | add used to this class i |
public void add to view use case view view int index add to views list view view set location new location get x get y item label label view get label if label null label set parent view new tag index label view get stereotype if label null label set parent view new tag index | adds a use case view to the presentation view sets location and tags |
public void add to view inherit view view view set parent this add relationship view inheritance relationship view get referenced object | class and super class and the according views must have been added |
public void add operation operation o add to list operations operations o | add an operation to this class |
public operation add operation string name string result string qualifier string param types string param names list list new list parameters operation op petal object factory get instance create operation name result list op set export control qualifier if param types null for int i 0 i param types length i string type param types i string n param names i parameter p new parameter op java util arrays as list new string n p set type type list add p op set parent this op init add operation op return op | add an operation to this class |
public class attribute add class attribute string name string type string qualifier class attribute attr petal object factory get instance create class attribute name type attr set parent this attr set export control qualifier attr init add class attribute attr return attr | add a class attribute aka field to this class |
public class attribute add class attribute string name string type return add class attribute name type private | add a class attribute aka field to this class |
public void add class attribute class attribute o add to list class attributes class attribute list o | add a class attribute aka field to this class |
public class diagram get first class diagram return class diagram lookup diagram class diagram class | typically every logical view has just one main class diagram |
public void set superclass list list c define property superclasses c | set list of inheritance relationship objects |
public inheritance relationship add super classifier inheritable clazz inheritance relationship rel cb util petal object factory get instance create inheritance relationship this clazz rel init parent is already set add to list superclasses inheritance relationship list rel return rel | add super classifier of this use case class i |
public void add to model use case caze add caze | add a use case to the model |
public use case diagram get first use case diagram return use case diagram lookup diagram use case diagram class | typically every use case view has just one main use case diagram |
public role get first role return role get roles get elements get 0 | an association contains exactly two roles |
public role get second role return role get roles get elements get 1 | an association contains exactly two roles |
public void init super init get root register association this class clazz get association class if clazz null clazz is association class true | register this association internally i |
public void set association class string qual name define property association class qual name | set association class via its fully qualified name like |
public list get logical models return list get property logical models | the returned values depend on what kind of class category this |
public list get logical presentations return list get property logical presentations | this returns a list of diagrams class diagram objects e |
public void add to model class clazz add clazz | add a class to the model |
public int get child count java lang object node petal node p petal node node return p get child count | returns the number of children of parent |
public void value for path changed tree path path java lang object new value system out println value for path changed path new value | messaged when the user has altered the value for the item |
public void set containment string o define property containment o | possible values are by value and by reference |
public void init get root register quid object this | registers this object |
public void add to view note view view int index add to views list view view set location new location get x get y don t set location on labels item label label view get label if label null label set parent view new tag index label set location view get location | adds a note view to the presentation view sets location and tags |
public void add attach view note view from view to attach view view cb util petal object factory get instance create attach view int index add to views list view view set supplier new tag from get tag view set client new tag to get tag | attach note to some already added view object |
public void add to view class view view int index add to views list view view set location new location get x get y cb petal class clazz cb petal class view get referenced object this is just heuristic if clazz is actor dimension dim get class view size view view set width dim width view set height dim height don t set location on labels item label label view get label if label null label set parent view new tag index label view get stereotype if label null label set parent view new tag index | adds a class view to the presentation view sets location and tags |
public void add to view uses view view view set parent this add relationship view uses relationship view get referenced object | classes and the according views must have been added |
public void add to view realize view view view set parent this add relationship view realize relationship view get referenced object | class and interface and the according views must have been added |
public use case create use case string name use case caze new use case caze set quid petal file get quid caze set parameter list new array list arrays as list new string name return caze | creates use case object with just the name and the quid set |
public void define property string name int value define property name new integer literal value | override property if exists already or add it if not |
public operation create operation string name string result cb petal list params operation op operation get template operation op set quid petal file get quid op set name parameter name if result null op set result result else op remove property result op set parameters params return op | creates new operation aka method |
public void start d accept model should read model accept this | start generation of petal file |
public class attribute create class attribute string name string type class attribute attr new class attribute null arrays as list new string name attr set quid petal file get quid attr set type type return attr | creates new class attribute aka field |
public use case category create use case category string name use case category cat use case category get template use case category cat set quid petal file get quid cat set name parameter name cat get first use case diagram set quid petal file get quid return cat | creates empty class category use case view |
public void define property string name boolean value define property name new boolean literal value | override property if exists already or add it if not |
public logical category create logical category string name logical category cat logical category get template logical category cat set quid petal file get quid cat set name parameter name cat get first class diagram set quid petal file get quid cat remove property quidu cat remove property subsystem cat remove property global return cat | creates empty class category logical view |
public void define property string name double value define property name new float literal value | override property if exists already or add it if not |
public void remove property string name remove property names index of name | remove property with given name |
public void remove property int index if index 0 names remove index values remove index | remove property at given index |
public mclassifier create basic type string name mclassifier clazz new mdata type impl clazz set name name clazz set stereotype get stereotype utility return clazz | create classifier for data type not directly contained in the model |
public void move property int from int to if from to return string name string names get from petal node value petal node values get from if from to to remove property from names add to name values add to value | move property within list of properties i |
protected mclassifier get classifier for string type mclassifier clazz mclassifier gen search element type mclassifier class if clazz null clazz create basic type type gen get model add owned element clazz return clazz | look for classifier in model or create a new data type |
public association create association string name use case case1 use case case2 return create association name case1 case2 | create association between two use cases |
protected void add to list string prop name string list name petal object o list list list get property prop name if list null list new list list name define property prop name list list add o | add object to some given list and create the list if necessary |
public association create association use case case1 use case case2 return create association get anonymous name case1 case2 | create association without explicit name it will have an invisible |
protected void remove from list string prop name petal object o list list list get property prop name if list null list remove o | remove object from some given list |
public string get qualified name petal node n this get parent string result named this get name parameter while n instanceof design n instanceof named result named n get name parameter result n petal object n get parent return result | get fully qualified name for an object that must implement the named interface |
protected xmifactory get factory return new xmifactory tree this | override this if you dont like the default factory |
private void align int fill if column align at fill align at column system err println align at column fill else fill 8 column 8 system err println align at column fill int spaces 4 fill 4 for int i 0 i spaces i out print column spaces fill spaces if fill 0 int tabs fill 8 if fill 8 0 tabs for int i 0 i tabs i out print t for int i 0 i fill i out print column fill | insert spaces up to next 8 column boundary |
private void indent int tabs level 2 4 spaces indent 1 tab int spaces level 2 for int i 0 i tabs i out print t for int i 0 i spaces i out print column level 4 | initial indentation of line depend on current nesting level to 4 column boundary |
public void visit association assoc massociation a argo uml poseidon can t handle association class correctly cb petal class clazz assoc get association class if clazz null a massociation get classifier clazz get quid factory setup association assoc a else a factory create association assoc pack add owned element a | if this association contains an association class use that object |
public mmodel element search element string name java lang class clazz return search element model name clazz | search for element of given name in model and all sub packages |
public petal file parse petal object petal design petal file file new petal file current parent file petal parse object design parse object file set petal petal petal file set design design design return file | top level construct are always petal and design objects |
public use case view create use case view use case caze use case view view string stereo caze get stereotype if stereo null view use case view get template use case stereotype view item label label item label view get property stereotype label set label stereo else view use case view get template use case view view set quidu caze get quid view set qualified name parameter caze get qualified name item label label item label view get property label label set label caze get name parameter return view | creates use case view for given class and sets the qualified name |
public void set current dir file dir if dir is directory dir dir get parent file current dir | set current i |
public petal file parse petal object petal design petal file file new petal file current parent file petal parse object design parse object file set petal petal petal file set design design design file set model name model name return file | top level construct are always petal and design objects |
public col maximum list col cols list col mins list new array list col cols col pom for int i 0 i mins list size 1 i if mins list get i 1 get value mins list get i get value pom mins list get i mins list set i mins list get i 1 mins list set i 1 pom return mins list get mins list size 1 | method return col that have maximum value of columns in list |
public col minimum list col cols list col mins list new array list col cols col pom for int i 0 i mins list size 1 i if mins list get i 1 get value mins list get i get value pom mins list get i mins list set i mins list get i 1 mins list set i 1 pom return mins list get mins list size 1 | method return col that have maximum value of columns in list |
Subsets and Splits