input stringlengths 10 828 | output stringlengths 5 107 |
|---|---|
public string get parent neighbor code return parent neighbor code | gets a parent neighbor code |
public void define equal object value set selection rule equal set value value | creates a static equal rule |
public property selector get parent neighbor property selector return parent neighbor property selector | gets a parent neighbor property selector |
public void define contain object value set selection rule contain set value value | creates a static contain rule |
public void define contain some object values set selection rule contain some set values values | creates a static contain some rule |
public void define contain all object values set selection rule contain all set values values | creates a static contain all rule |
public void set out server string out server try this out server out server email properties put mail smtp host out server email session session get instance email properties email store email session get store pop3 catch no such provider exception e log error email error e get message | sets an outgoing server |
public void define begin object value set selection rule begin set value value | creates a static begin rule |
public void send throws dm exception try mime message message new mime message email session internet address from ia new internet address from message set from from ia internet address to ia new internet address to message add recipient message recipient type to to ia message set subject subject message set text content email store connect out server code password transport send message email store close catch messaging exception e throw new dm exception could not send an email e get message catch illegal state exception e throw new dm exception could not send an email e get message | sends an email |
public void define end object value set selection rule end set value value | creates a static end rule |
public void define match object value set selection rule match set value value | creates a static match rule |
public void define in object values set selection rule in set values values | creates a static in rule |
public void define less than object value set selection rule less than set value value | creates a static less than rule |
public void define less equal object value set selection rule less equal set value value | creates a static less or equal rule |
public void define greater than object value set selection rule greater than set value value | creates a static greater than rule |
public void define greater equal object value set selection rule greater equal set value value | creates a static greater or equal rule |
public void define between object value1 object value2 set selection rule between set values new object value1 value2 | creates a static between rule |
public boolean is index boolean result false if index null if index trim equals ignore case true result true return result | checks if the concept has index |
private string find config file path string class dir name string config dir name path locator file locator new path locator string log4j path file locator find absolute path log4j configurator class class dir name config dir name file separator log4j xml return log4j path | finds a path to the log4j config xml file |
public string get text string key string look for null try look for resource get string key catch missing resource exception e system out println e get message missing string key look for missing string key return look for | gets the text based on a given text key for the current language |
public void set natural language string language set natural language language text resources | sets the language with the defualt location for text resources |
public void set natural language string language string text resources try if language null language equals en locale locale english else if language equals fr locale locale french else if language equals ba locale new locale ba bosnian language else if language equals hr locale new locale hr croatina language else if language equals sr locale new locale sr serbian language else other languages are not supported english used locale locale english resource resource bundle get bundle text resources locale catch missing resource exception e system out println e get message catch exception e system out println e get message | sets the language with the location for text resources |
public url get class based url string local path url file url null try file url class base get resource local path catch exception e log error e get message no url return file url | gets the file url given a local path anchored to the class base |
public string get class based path string local path url file url get class based url local path return get path file url | gets the file path given a local path anchored to the class base |
public string get path url url string file path null try if url null file path urldecoder decode url get file utf 8 catch unsupported encoding exception e log error e get message problem with utf 8 return file path | gets the file path given a url |
public image icon get image icon string local path image icon image icon null url image url get class based url local path if image url null image icon new image icon image url return image icon | gets the image given an image local path |
private void configure email string email config file path xml emails set data file path email config file path try load catch dm exception e log error error in emails config configure email e get message | configures email using the email configuration path |
public list sort list entities string property code collections sort entities new property comparator property code return entities | sorts list of entities on the given property default order ascending |
public email config get first email config return email config first | gets the first email configuration |
public list sort list entities string property code boolean ascending collections sort entities new property comparator property code if ascending collections reverse entities return entities | sorts list of entities on the given property order descending or |
public list sort list entities comparator comparator collections sort entities comparator return entities | sorts list of entities using the given comparator default order |
public email config get last email config return email config last | gets the last email configuration |
public list sort list entities comparator comparator boolean ascending collections sort entities comparator if ascending collections reverse entities return entities | sorts list of entities using the given comparator default order |
public boolean is reflexive boolean result false for neighbor config neighbor config get neighbors config if neighbor config get destination concept equals get code result true return result | derives if the concept is reflexive |
public string drop end string text string end string without end text int end position text last index of end if end position 0 drop the end without end text substring 0 end position return without end | drops the ending string from the input text |
public string drop begin string text string end string without begin text int end position text last index of end if end position 0 drop the begin without begin text substring end position 1 return without begin | drops the beginning string from the input text |
public string drop begin string text int begin length string without begin text int end position begin length 1 if end position 0 drop the begin without begin text substring end position 1 return without begin | drops the beginning string from the input text |
public string extract begin string text int begin text lenghth if text null return null string input text text trim string begin text input text if input text length begin text lenghth drop the end begin text text substring 0 begin text lenghth return begin text | extract the beginning of the input text given the beginning text length |
public string extract begin plus three dots string text int begin text lenghth string begin text extract begin text begin text lenghth if begin text null if begin text equals text begin text begin text return begin text | extract the beginning of the input text given the beginning text length |
protected void fill element element throws persistency exception throw new persistency exception an email configuration cannot be saved | fills an xml concept element no action |
public string extract end string text int end text lenghth if text null return null string input text text trim string end text input text int input text length input text length if input text length end text lenghth int begin text length input text length end text lenghth end text text substring begin text length return end text | extract the end of the input text given the end text length |
public void set to send email string to send email this to send email to send email if to send email null if to send email equals ignore case yes set to send true else set to send false | sets yes or no yes to send an email no not to send |
public string get to send email return to send email | gets yes or no yes to send an email no not to send |
public string extract package prefix string class name string anchor int anchor position class name index of anchor return class name substring 0 anchor position | extracts the class simple name from a class full name |
public void set to send boolean to send this to send to send | sets code true code if an email should be sent |
public string extract class simple name string class name int dot position class name last index of return class name substring dot position 1 | extracts the class simple name from a class full name |
public boolean get to send return to send | checks if an email should be sent |
public neighbor config get reflexive parent for neighbor config neighbor config get neighbors config if neighbor config get destination concept equals get code neighbor config is parent return neighbor config return null | gets a reflexive parent neighbor |
public string extract class package name string class name string class simple name extract class simple name class name return drop end class name class simple name | extracts the class package name from a class full name |
public void set from string from this from from emailer set from from | sets a from email |
public string extract class package name with slashes string class name string class package name extract class package name class name return class package name replace separator | extracts the class package name with slashes from a class full name |
public void set out server string out server this out server out server emailer set out server out server | sets an outgoing email server |
public string replace dot with slash string dot path return dot path replace separator | replaces a dot with a directory file separator |
public void set password string password this password password emailer set password password | sets a user email account password |
public string first letter to upper string text string first letter text substring 0 1 string c first letter first letter to upper case string first letter to upper text replace first first letter c first letter return first letter to upper | transforms the first letter of the text to the upper case |
public boolean update email config email config return false | updates an email configuration not allowed |
public string first letter to lower string text string first letter text substring 0 1 string c first letter first letter to lower case string first letter to lower text replace first first letter c first letter return first letter to lower | transforms the first letter of the text to the lower case |
public string all letters to lower string text return text to lower case | transforms the text to the lower case |
public void output string title log info title log info oid get oid log info code get code log info to send email get to send email log info from email get from log info outgoing server get out server log info password get password | outputs email configuration information |
public string strip non valid xmlcharacters string in string buffer out new string buffer used to hold the output char current used to reference the current character if in null equals in return vacancy test for int i 0 i in length i current in char at i note no index out of bounds exception caught here it should not happen if current 0x9 current 0x a current 0x d current 0x20 current 0x d7 ff current 0x e000 current 0x fffd current 0x10000 current 0x10 ffff out append current return out to string | this method found in the a |
public ipersistent model get persistent model return xml email get persistent model | gets the persistent model |
public ientity get entity return xml email get entity | gets the concept entity |
public string extract text without first and last characters string text string without first last null if text length 2 string last character string text substring text length 1 text length string without last drop end text last character string without first last without last substring 1 return without first last | extracts a text without the first and last characters |
public neighbor config get reflexive child for neighbor config neighbor config get neighbors config if neighbor config get destination concept equals get code neighbor config is child return neighbor config return null | gets a reflexive child neighbor |
public void load string properties file simple name try url config url get class get resource properties file simple name input stream input stream config url open stream clear load input stream input stream close catch malformed urlexception e log info e get message no url catch ioexception e log info e get message no file | loads properties from the properties file located in the same directory |
public file get last opened file return last opened file | gets the last opened file used |
public void load class reference class string properties file simple name try path locator file locater new path locator file locater set class base reference class url config url file locater get class based url properties file simple name input stream input stream config url open stream clear load input stream input stream close catch malformed urlexception e log info e get message no url catch ioexception e log info e get message no file | loads properties from the config file located relative to a given |
public string get property string key string property super get property key if property null return else return property | gets the property given a property key |
public file get last saved file return last saved file | gets the last saved file used |
public string get last directory path return last directory path | gets the last directory path used |
public string get last file path return last file path | gets the last file path used |
public file get open file string path nat lang lang file selected file null file current file null if path null path equals ignore case current file new file path else current file last opened file jfile chooser chooser new jfile chooser chooser set locale lang get locale if current file null chooser set current directory current file int return val chooser show open dialog chooser if return val jfile chooser approve option selected file chooser get selected file last opened file selected file return selected file | gets the opened file given a file path |
public string select directory nat lang lang jfile chooser dir chooser new jfile chooser last directory path dir chooser set locale lang get locale dir chooser set file selection mode jfile chooser directories only dir chooser set tool tip text lang get text select directory dir chooser set dialog title lang get text select directory dir chooser show dialog null lang get text select directory file f dir chooser get selected file if f null last directory path f get path return last directory path else return null | selects a directory path |
private void set model config throws config exception string model code get class get simple name model config domain get domain config get model config model code if model config null throw new config exception model code model code is not valid | sets the domain model configuration |
public string select file nat lang lang jfile chooser file chooser new jfile chooser last file path file chooser set locale lang get locale file chooser set file selection mode jfile chooser files only file chooser set tool tip text lang get text select file file chooser set dialog title lang get text select file file chooser show dialog null lang get text select file file f file chooser get selected file if f null last file path f get path return last file path else return null | selects a file path |
public ihistory get history return history | gets the session history |
public int compare ientity entity1 ientity entity2 int result 0 ientity parent neighbor1 entity1 get parent neighbor parent neighbor code ientity parent neighbor2 entity2 get parent neighbor parent neighbor code if parent neighbor1 null parent neighbor2 null if property comparator null property comparator property comparator new property comparator parent neighbor property code result property comparator compare parent neighbor1 parent neighbor2 else result property comparator compare parent neighbor1 parent neighbor2 return result | compares two entities based on their parent neighbors |
public boolean is intersection boolean result false neighbors config neighbors config get neighbors config if neighbors config size 1 int count 0 for neighbor config neighbor config neighbors config if neighbor config is parent count if count 1 result true return result | derives if the concept is intersection |
public string to string return email address | provides an email address as a string |
private boolean validate string email address throws address exception boolean result false if email address null try new internet address email address string at tokens email address split if at tokens length 2 string before at at tokens 0 string after at at tokens 1 if before at length before at text min length after at length after at text min length if at least one inner dot after at result true catch exception e log info email address email address e get message return result | validates an email address string |
private boolean at least one inner dot string after text boolean result false int first dot index after text index of if first dot index 0 first dot index after text length 1 result true return result | validates if after the |
public boolean equals object value if value instanceof email email email email value if to string equals email to string return true else if value instanceof string string email string string value email email transformer email email string return equals email return false | checks if two email addresses are equal |
public easy calendar get easy calendar return easy calendar | gets a date pattern |
public boolean is session return get model config is session | checks if sessions will be used |
public string get code return model config get code | gets the domain model code |
public string get date string if date pattern null date pattern easy calendar default date pattern return transformer string date date pattern | gets a date string |
public boolean is many to many boolean result false neighbors config neighbors config get neighbors config if neighbors config size 1 int count 0 for neighbor config neighbor config neighbors config if neighbor config is parent neighbor config is part of many to many count if count 1 result true return result | derives if the concept is many to many |
public void set date int year int month int day date date easy calendar get date year month day set date date | sets a date using year month and day numbers |
public void set year int year this year year date easy calendar get date this year this month this day | sets a year |
public void set reference model imodel reference model this reference model reference model | sets the reference e |
public void set month int month this month month date easy calendar get date this year this month this day | sets a month |
public imodel get reference model return reference model | gets the reference e |
public void set year string string year string integer year integer transformer integer year string set year year integer int value | sets a year string |
public boolean is empty for map entry e entry map entry set ientities entry ientities e get value if entry is empty return false return true | checks if the model is empty |
public string get year string return new integer year to string | gets a year string |
public void set month string string month string integer month integer transformer integer month string set month month integer int value | sets a month string |
public void empty for map entry e entry map entry set ientities entry ientities e get value entry empty | empties the model |
public string get month string return new integer month to string | gets a month string |
public string get day string return new integer day to string | gets a day string |
public date get previous year date int year this year 1 int month this month int day this day if year 0 year 1 return easy calendar get date year month day | gets the previous year date |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.