input
stringlengths
10
828
output
stringlengths
5
107
public void set max length string max length this max length max length
sets the property maximal length
public model config get model config return model config
gets the model configuration
protected boolean pre add concept config new concept config boolean validation true string new concept code new concept config get code if new concept code null for concept config concept config this if concept config get code equals new concept code validation false log info new concept code concept code must be unique within the model break else validation false log info concept code is required return validation
checks if the new concept code is unique within the model
protected boolean post add concept config concept config concept config set model config model config return true
sets the parent model configuration for a new concept configuration
public void output string title list concept config list get list log info title for concept config concept config list string class name concept config get class get name text handler text extractor new text handler string class simple name text extractor extract class simple name class name concept config output class simple name
outputs the concepts configuration information
public string get max length return max length
gets the property maximal length
public ipersistent model get persistent model return xml concepts get persistent model
gets the persistent model
public t last t last null if size 0 array list t list array list t get list last t list get list size 1 return last
returns the last entity based on the order
public boolean any concept extension boolean result false for concept config concept config this if concept config is extension concept config any attribute extension result true break return result
checks if there is any concept extension directly or indirectly through
public int get max length int int max length int 0 integer max length integer transformer integer get max length if max length integer null max length int max length integer int value return max length int
gets the property maximal length as an int number
public boolean is max length boolean result false if get max length int 0 result true return result
checks if the property maximal length is not null and greater than 0
public void set required string required this required required
sets the required property flag true string if the property is required
public t next t entity t next null int size size if size 0 t current retrieve by oid entity get oid if current null array list t list array list t get list int current index list index of entity int next index current index 1 if next index size next t list get next index return next
returns the next entity with respect to a given entity based on the
public boolean is required boolean result false if required null if required trim equals ignore case true result true return result
checks if the property is required
public void set sensitive string sensitive this sensitive sensitive
sets the sensitive property flag true string if the property is
public t prior t entity t prior null if size 0 t current retrieve by oid entity get oid if current null array list t list array list t get list int current index list index of entity int prior index current index 1 if prior index 0 prior t list get prior index return prior
returns the prior entity with respect to a given entity based on the
public boolean is sensitive boolean result false if sensitive null if sensitive trim equals ignore case true result true set required false return result
checks if the property is sensitive
public string get entities code with first letter as upper return text handler first letter to upper get entities code
gets the entities code that starts with a capital letter
public string get entities code with first letter as lower return text handler first letter to lower get entities code
gets the entities code that starts with a lower letter
public t random int random index random generator next int size return locate random index
returns the random entity based on the size of entities and its order
public string get entities code in lower letters return text handler all letters to lower get entities code
gets the entities code in lower letters
public void set auto increment string auto increment this auto increment auto increment
sets the auto increment property flag true string if the property is
public string get concept name return get code with first letter as upper
gets the concept name
public string get auto increment return auto increment
gets the auto increment property flag true string if the property is
public string get concepts name return get entities code with first letter as upper
gets the concepts name
public boolean is auto increment boolean result false if auto increment null if auto increment trim equals ignore case true result true return result
checks if the property is auto increment
public t locate int position t entity null int upper bound size 1 if position 0 position upper bound entity entity list get position return entity
locates the entity positioned based on the order of entities
public void export ientities t taken entities boolean export sensitive ientities t copied entities deep copy taken entities get model export sensitive for t entity copy copied entities if taken entities add entity copy log info export error entity copy get oid get unique number
exports the base entities to the taken entities
public boolean is extensible return is extension any attribute extension
checks if the concept is extensible
public boolean is reference boolean result false if reference null if reference trim equals ignore case true result true return result
checks if the property is reference
public boolean any attribute extension return get properties config any property extension get neighbors config any neighbor extension
checks if there is any property or neighbor attribute extension
public string get reference neighbor if reference neighbor null if is extension is reference log info the reference property does not have the reference neighbor get code return reference neighbor
gets the reference neighbor concept code
public string get extension domain if is extension extension domain null set extension domain get model config get domain config get code return extension domain
gets the extension domain
public string get extension model if is extension extension model null set extension model get model config get code return extension model
gets the extension model
public string get extension concept if is extension extension concept null log error get code concept does not have the extension concept return extension concept
gets the extension concept
public void set extension with neighbors string extension with neighbors this extension with neighbors extension with neighbors
sets the concept extension with neighbors flag true string if there is
public void set display length string display length this display length display length
sets the property display length
public string get extension with neighbors return extension with neighbors
gets the concept extension with neighbors flag true string if there is
public string get display length if display length null if is extension get max length int 0 return get max length return display length
gets the property display length
public boolean is extension with neighbors boolean result false if extension with neighbors null if extension with neighbors trim equals ignore case true result true return result
checks if there is an extension with neighbors
public int get display length int int display length int 0 integer display length integer transformer integer get display length if display length integer null display length int display length integer int value return display length int
gets the property display length as an int number
public void set essential string essential this essential essential
sets the essential property flag true string if the property is
public string get essential if essential null if is extension return get required return essential
gets the essential property flag true string if the property is
private void update indexes t entity if 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
updates the entitiess indexes with the update entity
public boolean is essential boolean result false string essential get essential if essential null if essential trim equals ignore case true result true else if is extension result is required return result
checks if the property is essential
protected void fill element element throws persistency exception throw new persistency exception a concept configuration cannot be saved
fills an xml concept element no action
public void set scramble string scramble this scramble scramble
sets the scramble property value flag true string if the property will
public string get package code if package code null package code trim equals return get concept package code return package code
gets the concept package code
public property config get property config string property code return property config retrieve by code property code
gets the peoperty configuration for a given property code
public string get scramble return scramble
gets the scramble property value flag true string if the property will
protected boolean post add property config property config property config set concept config concept config return true
sets the parent concept configuration for a new property configuration
public void output string title list property config list get list log info title for ientity config list property config property config property config config string class name property config get class get name text handler text extractor new text handler string class simple name text extractor extract class simple name class name property config output class simple name
outputs the properties configuration information
private string get concept package code string concept package code null string model package code get model config get package code concept package code model package code get code in lower letters return concept package code
gets derives the concept package
public boolean is scramble boolean result false if scramble null if scramble trim equals ignore case true result true return result
checks if the property will be scrambled in a display
public ientities get entities return xml properties get entities
gets the property entities
public string get entity class return get package code get concept name
gets derives the concept entity class class full name
public boolean update property config property config return false
updates the property configuration not allowed
public boolean any property extension boolean result false for property config property config this if property config is extension result true break return result
checks if there is any property extension
public property config get first max text size property config property config max text size property config null int max text size 0 for ientity config this property config property config property config config if property config get property class object string class int current size property config get display length int if current size max text size max text size current size max text size property config property config return max text size property config
gets the first property configuration that has the maximal text size
public string get entities class return get package code get concepts name
gets derives the concept entities class class full name
public xml property config get xml property return xml property
gets the xml persistent property
public property config get first unique property config property config unique property config null for ientity config this property config property config property config config if property config is unique unique property config property config break return unique property config
gets the first property configuration that is unique
public property config get first boolean property config property config first boolean property config null for ientity config this property config property config property config config if property config get property class equals java lang boolean first boolean property config property config break return first boolean property config
gets the first property configuration that has the boolean class
public property config get first essential property config property config first essential property config null for ientity config this property config property config property config config if property config is essential first essential property config property config break return first essential property config
gets the first property configuration that is essential for a table
private boolean base class property config property config property config boolean base class property config false if property config get property class equals java lang string property config get property class equals java lang boolean property config get property class equals java lang integer property config get property class equals java lang long property config get property class equals java lang float property config get property class equals java lang double base class property config true return base class property config
checks if a property configuration has a base class
public ipersistent model get persistent model return xml property get persistent model
gets the persistent model
public property config get last required without default property config property config required property without default config null for ientity config get list property config property config property config config if property config is required if property config get default value null property config get default value trim equals required property without default config property config return required property without default config
gets the last required and without default value property configuration
public property config get last must have property config property config must have property config null for ientity config get list property config property config property config config if property config is required property config is reference property config is auto increment if property config get default value null property config get default value trim equals must have property config property config return must have property config
gets the last must have property value configuration
public ientity get entity return xml property get entity
gets the property entity
public string get min if min null if is extension return 0 return min
gets the concept minimal cardinality required minimal number of
private string find path relative to anchor string relative path string path null class reference class this get class try string ancho dir name properties locator get property anchor directory key path locator path locator new path locator path path locator find absolute path reference class ancho dir name relative path catch exception e log error path relative to anchor error e get message return path
finds a path relative to the anchor directory
private string find path relative to class string relative path string path null class reference class this get class try string class dir name properties locator get property class directory key path locator path locator new path locator path path locator find absolute path reference class class dir name relative path catch exception e log error path relative to class error e get message return path
finds a path relative to the class directory
private void load string config file path try if config file path null domains config get xml domains config set data file path config file path domains config load catch dm exception e log error error in config load e get message
loads the configurations given the configuration file path
private void extend with property property config extension property config extend property config null fields extension property config set extended true
extends null fields of the property configuration
public domains config get domains config return domains config
gets the domains configuration
public domain config get domain config string domain code domain config domain config domains config retrieve by code domain code return domain config
gets the domain configuration based on the domain code
public string get data path relative to class model config model config string persistence relative path null try persistence relative path model config get persistence relative path if persistence relative path null return null catch exception e log error data path error e get message return find path relative to class persistence relative path
gets a data directory path relative to the class directory
public string get max if max null if is extension return n return max
gets the concept maximal cardinality maximal number of entities
public string get data path relative to anchor model config model config string data dir name null string persistence relative path null try data dir name properties locator get property data directory key persistence relative path model config get persistence relative path if persistence relative path null return null catch exception e log error data directory path error e get message return find path relative to anchor data dir name separator persistence relative path
gets a data directory path relative to the anchor directory
public string get template path relative to anchor string template dir name null try template dir name properties locator get property template directory key catch exception e log error template directory path error e get message return find path relative to anchor template dir name
gets a directory path of velocity templates relative to the anchor
public string get code path relative to anchor string code dir name null try code dir name properties locator get property code directory key catch exception e log error code directory path error e get message return find path relative to anchor code dir name
gets a directory path for the generated code relative to the anchor
public void set entry string entry this entry entry
sets the entry concept flag true string if the concept is entry
public string get web path relative to anchor string web dir name null try web dir name properties locator get property web directory key if web dir name equals return null catch exception e log error web directory path error e get message return find path relative to anchor web dir name
gets a directory path for the web directory
public email config get email config return find email config relative to class
gets the email configuration
public void output string title log info title domains config output dm lite configuration
outputs the dm lite configuration information
public boolean is entry boolean result false if entry null if entry trim equals ignore case true result true return result
checks if the concept is entry
public boolean is empty boolean empty false if size 0 empty true return empty
if the map of errors is empty
public void empty if is empty errors map new hash map string string
empties the map of errors if there are errors
public int size return errors map size
gets the size of the map of errors
public void output string title if errors map size 0 out tester output map errors map title else out tester output text there are no errors
outputs the error messages
public string get file name if file name null if is extension get model config is persistent is entry return get code in lower letters xml return file name
gets the concept data file name
public string get property code return property code
gets a property code used
public object get value if values null values length 0 return values 0 return null
gets a value the first one if there is more than one
private void set values object values this values values
sets an array of values
public void define all set selection rule all
creates a static all rule
public int size return model list size
returns the number of domain models
public void define none set selection rule none
creates a static none rule
public boolean is empty return model list is empty
checks if the domain models are empty
public void define null set selection rule null
creates a static null rule
public void close for t model model list model close
closes the domain models