input stringlengths 10 828 | output stringlengths 5 107 |
|---|---|
protected void set source entities ientities t source entities this source entities source entities | sets the source entities |
public void generate generate web xml generate start properties generate domain app properties generate start generate domain app for model config model config domain config get models config for concept config concept config model config get concepts config generate domain model concept concept config | generates web xml configuration start properties domain application |
public void set propagate to source boolean propagate to source this propagate to source propagate to source | sets the propagate to source switch which is true by default |
public void generate gen concept concept config concept config generate gen entity concept config generate gen entities concept config | generates concept generic classes |
public boolean is propagate to source return propagate to source | checks the propagate to source switch which is true by default |
public void set pre boolean pre this pre pre | sets to code true code if the pre action will be done |
public void generate empty xml data files try list concept config entry concept config list model config get concepts config get entry concept config list for concept config entry concept config entry concept config list generate empty xml data file entry concept config catch exception e log error error in domain model generator generate xml data files e get message | generates empty xml data files for entry concepts |
private string get model authors domain config domain config string model authors list string author list new array list string for model config model config domain config get models config string author model config get author if author list contains author author list add author int count 0 int list size author list size for string model author author list if list size count model authors model authors model author else model authors model authors model author return model authors | creates a list of unique authors from model authors |
private void create code directory string code directory path file code directory new file code directory path if code directory exists code directory mkdir | creates the source code directory where the code will be generated |
public string get code directory path return code directory path | gets code directory path |
public string generate code directory code directory generator code directory generator new code directory generator domain config get config return code directory generator get code directory path | generates code directory path if it does not exist |
public string generate domain authors domain authors generator domain authors generator new domain authors generator domain config return domain authors generator get authors | generates domain authors from model authors |
public void generate domain domain generator domain generator new domain generator domain config authors code directory path domain generator generate | generates domain with models |
public void generate gen classes try domain generator domain generator new domain generator domain config authors code directory path domain generator generate gen classes catch exception e log error error in dm lite generator generate gen classes e get message | generates domain generic class with model generic classes |
public void generate domain wicket domain wicket generator domain wicket generator new domain wicket generator domain config authors code directory path domain wicket generator generate | generates domain wicket application |
public string to string return unique number to string | provides the unique number string |
public boolean equals oid oid if this unique number equals oid get unique number return true return false | checks if two oids are equal |
public boolean equals object object if object instanceof oid oid oid oid object return equals oid else if object instanceof string string oid string string object if oid string equals this to string return true return false | checks if two oid objects are equal |
public int compare to object object throws class cast exception oid oid oid object int result unique number compare to oid get unique number return result | compares two oids based on unique numbers |
public void set post boolean post this post post | sets to code true code if the post action will be done |
public void set config config config this config config | sets the configuration |
public string get code with first letter as upper return text handler first letter to upper get code | gets the domain code that starts with a capital letter |
public string get code with first letter as lower return text handler first letter to lower get code | gets the domain code that starts with a lower letter |
public void load element root try iterate through child elements of the root for iterator i root element iterator i has next element concept element element i next concept config concept config new concept config concept config get xml concept load concept element concepts config add concept config catch dm exception e log error error in xml concepts load e get message | loads the concept root element |
public string get code in lower letters return text handler all letters to lower get code | gets the domain code in lower letters |
public boolean is post return pre | checks if the post action will be done |
public domain config get domain config string domain code return domain config retrieve by code domain code | gets the domain configuration based on the domain configuration code |
public string get domain name return get code with first letter as upper | gets the domain name that starts with a capital letter |
protected boolean pre add domain config new domain config boolean validation true string new domain code new domain config get code if new domain code null for domain config domain config this if domain config get code equals new domain code validation false log info new domain code domain code must be unique within the domain configuration break else validation false log info domain code is required return validation | checks if the new domain code is unique within the domain configuration |
protected boolean post add domain config domain config domain config set config config return true | sets the dm lite configuration for a new model configuration |
public void set abstraction string abstraction this abstraction abstraction | sets the domain abstraction flag true string if it is an abstraction |
public void output string title list domain config list get list log info title for domain config domain config list string class name domain config get class get name text handler text extractor new text handler string class simple name text extractor extract class simple name class name domain config output class simple name | outputs the domain configuration information |
public string get abstraction return abstraction | gets the domain abstraction flag true string if it is an abstraction |
public ipersistent model get persistent model return xml domains config get persistent model | gets the persistent domain |
public boolean is abstraction boolean result false if abstraction null if abstraction trim equals ignore case true result true return result | checks if it is an abstraction |
public void set default construct string default construct this default construct default construct | sets the domain default construct flag true string if the domain will be |
public void set concept config concept config concept config this concept config concept config | sets the concept configuration |
public string get default construct return default construct | gets the domain default construct flag true string if the domain will be |
public int size return entity list size | returns the number of entities |
public concept config get concept config return concept config | gets the concept configuration |
public boolean is default construct boolean result false if default construct null if default construct trim equals ignore case true result true return result | checks if the domain will be constructed by default |
public neighbor config get neighbor config string neighbor code return neighbor config retrieve by code neighbor code | gets the neighbor configuration for a given neighbor code |
protected boolean post add neighbor config neighbor config neighbor config set concept config concept config return true | sets the parent concept configuration for a new neighbor configuration |
public void set package code string package code this package code package code | sets the domain package code |
public void output string title list neighbor config list get list log info title for ientity config list neighbor config neighbor config neighbor config config string class name neighbor config get class get name text handler text extractor new text handler string class simple name text extractor extract class simple name class name neighbor config output class simple name | outputs the neighbors configuration information |
public string get package code if package code null package code trim equals return get domain package code else if package prefix null package prefix trim equals return package code else return package prefix package code | gets the domain package code |
public xml neighbors config get xml neighbors return xml neighbors | gets xml neighbors |
public boolean is empty return entity list is empty | checks if the entities are empty |
private string get domain package code if package prefix null package prefix trim equals return get code in lower letters else return package prefix get code in lower letters | gets derives the domain package code |
public ipersistent model get persistent model return xml neighbors get persistent model | gets the persistent model |
public string get domain class return get package code get domain name | gets derives the domain class |
public ientities get entities return xml neighbors get entities | gets the neighbor entities |
public void set reference model string reference model this reference model reference model | sets the reference model |
public string get reference model if reference model null if get config get domains config size 1 model config model config get models config first reference model model config get code else if is signin log info the domain configuration does not have the reference model needed for sign in get code return reference model | gets the reference model |
public boolean any neighbor extension boolean result false for neighbor config neighbor config this if neighbor config is extension result true break return result | checks if there is any neighbor extension |
public boolean is reference model if reference model null return false else return true | checks derives if there is a reference model |
public void empty entity list clear | empties the entities |
public neighbor config get last parent config neighbor config last parent config null for ientity config get list neighbor config neighbor config neighbor config config if neighbor config is parent neighbor config is internal last parent config neighbor config for ientity config get list neighbor config neighbor config neighbor config config if neighbor config is parent neighbor config is external last parent config neighbor config return last parent config | gets the last parent neighbor configuration |
public void set i18n string i18n this i18n i18n | sets the model i18n flag true string if i18n is on |
public neighbor config get last mandatory parent config neighbor config last mandatory parent config null for ientity config get list neighbor config neighbor config neighbor config config if neighbor config is parent neighbor config is mandatory neighbor config is internal last mandatory parent config neighbor config for ientity config get list neighbor config neighbor config neighbor config config if neighbor config is parent neighbor config is mandatory neighbor config is external last mandatory parent config neighbor config return last mandatory parent config | gets the last mandatory parent neighbor configuration |
public string get i18n return i18n | gets the model i18n flag true string if i18n is on |
public neighbor config get last optional parent config neighbor config last optional parent config null for ientity config get list neighbor config neighbor config neighbor config config if neighbor config is parent neighbor config is optional neighbor config is internal last optional parent config neighbor config for ientity config get list neighbor config neighbor config neighbor config config if neighbor config is parent neighbor config is optional neighbor config is external last optional parent config neighbor config return last optional parent config | gets the last optional parent neighbor configuration |
public boolean is i18n boolean result false if i18n null if i18n trim equals ignore case true result true return result | checks if i18n is on |
public void set signin string signin this signin signin | sets the model default application sign in flag true string if there |
public neighbor config get internal parent config for ientity config get list neighbor config neighbor config neighbor config config if neighbor config is internal neighbor config is parent return neighbor config return null | gets the internal parent neighbor configuration |
public string get signin return signin | gets the model default application sign in flag true string if there |
public neighbor config get last external parent config neighbor config last external parent config null for ientity config get list neighbor config neighbor config neighbor config config if neighbor config is external neighbor config is parent last external parent config neighbor config return last external parent config | gets the last external parent neighbor configuration |
public boolean is signin boolean result false if signin null if signin trim equals ignore case true if get signin concept null result true return result | checks if there will be a sign in for the model default application |
public string get signin concept if signin concept null if is signin log info the model does not have the sign in concept get code return signin concept | for the model default application gets the sign in concept e |
public void set short text default length string short text default length this short text default length short text default length | for the model default application sets the default length as a string |
public string get short text default length if short text default length null return 48 return short text default length | for the model default application gets the default length as a string |
public int get short text default length int int length 0 integer length integer transformer integer get short text default length if length integer null length length integer int value return length | for the model default application gets the default length as an int |
public void set page block default size string page block default size this page block default size page block default size | for the model default application sets the default size as a string of |
public string get page block default size if page block default size null return 16 return page block default size | for the model default application gets the default size as a string of |
public int get page block default size int int size 0 integer size integer transformer integer get page block default size if size integer null size size integer int value return size | for the model default application gets the default size as an int |
public void set validate form string validate form this validate form validate form | sets the model default application validate form flag true string if a |
public string get neighbor name return get code with first letter as upper | gets the neighbor name that starts with a capital letter |
private boolean oid exists t entity boolean oid exists false oid oid entity get oid if oid null t entity exists retrieve by oid entity get oid if entity exists null oid exists true return oid exists | if an entity exists based on its oid |
public string get validate form return validate form | gets the model default application validate form flag true string if a |
public boolean is validate form boolean result true if validate form null if validate form trim equals ignore case false result false return result | checks if a form will be validated in the model default application |
public void set confirm remove string confirm remove this confirm remove confirm remove | sets the model default application confirm remove flag true string if |
public string get confirm remove return confirm remove | gets the model default application confirm remove flag true string if |
public boolean is extension boolean result false if extension null if extension trim equals ignore case true result true return result | checks if there is an extension |
public boolean is confirm remove boolean result true if confirm remove null if confirm remove trim equals ignore case false result false return result | checks if the remove action will be confirmed in the model default |
private boolean valid max cardinality int add entities count boolean validation true if get model null string entities max size string get concept config get max integer entities max size integer transformer integer entities max size string if entities max size integer null int entities max size entities max size integer int value if size add entities count entities max size validation false string error key get concept config get entities code max cardinality string error get concept config get entities code cannot have more than entities max size string entities get errors add error key error return validation | validates the entities max |
public string get extension neighbor if is extension extension neighbor null log error get code neighbor does not have the extension neighbor return extension neighbor | gets the extension neighbor |
public boolean update domain config domain config return false | updates the domain configuration not allowed |
public xml domain config get xml domain return xml domain | gets the xml persistent domain |
private boolean valid min cardinality int remove entities count boolean validation true if get model null int entities min size get concept config get min int if size remove entities count entities min size validation false string error key get concept config get entities code min cardinality string error get concept config get entities code cannot have less than entities min size entities get errors add error key error return validation | validates the entities min |
public ientity get entity return xml domain get entity | gets the model entity |
public concept config get destination concept config model config model config get concept config get model config concepts config concepts config model config get concepts config concept config concept config concepts config get concept config get destination concept return concept config | gets the neighbor destination concept configuration |
protected void fill element element throws persistency exception throw new persistency exception a property configuration cannot be saved | fills an xml concept element no action |
protected void fill element element throws persistency exception throw new persistency exception a neighbor configuration cannot be saved | fills an xml concept element no action |
public string get destination concept class string destination concept class null concept config destination concept config get destination concept config if is parent get max equals 1 destination concept class destination concept config get entity class else destination concept class destination concept config get entities class return destination concept class | gets the neighbor destination concept class name complete name |
public void set domain config domain config domain config this domain config domain config | sets the domain configuration |
public string get inverse neighbor if is extension inverse neighbor null string derived inverse neighbor derive inverse neighbor if derived inverse neighbor null return derived inverse neighbor else log info the neighbor does not have the inverse neighbor get code return inverse neighbor | gets the inverse neighbor |
private string derive inverse neighbor string inverse neighbor null concept config context concept config get concept config string code if is child code context concept config get code with first letter as lower else code context concept config get entities code with first letter as lower concept config destination concept config get destination concept config neighbors config destination concept neighbors config destination concept config get neighbors config neighbor config inverse neighbor config destination concept neighbors config get neighbor config code if inverse neighbor config null inverse neighbor inverse neighbor config get code return inverse neighbor | derives the inverse neighbor code |
public string get model name return get code with first letter as upper | gets the model name that starts with a capital letter |
public string get inverse neighbor first letter as upper if get inverse neighbor null return text handler first letter to upper get inverse neighbor return null | gets the concept neighbor code that starts with a capital letter |
protected boolean post add t entity if is post return true boolean validation true concept config concept config entity get concept config if concept config null model model model get model if model is initialized model meta model meta model get model meta if concept config get unique config is empty validation model meta unique id this entity validation if validation concept config is index oid index add entity if concept config get unique config is not empty unique index add entity if concept config get index config is not empty index add entity return validation | checks if the add postcondition is code true code |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.