java.lang.Object
org.tentackle.model.ModelDefaults
Defaults for model parsing.
Simply set a default attribute to a non-null value to be honored during model parsing. Only logically "higher" values will be copied to the model. For example: fulltracked will overwrite tracked, but a default of tracked will not overwrite fulltracked if already defined in the model. Accordingly deletionCascaded will never clear the model setting to false if true.
- Author:
- harald
-
Constructor Summary
ConstructorsConstructorDescriptionCreates the defaults.ModelDefaults(String str) Creates the defaults from a string. -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()Clears the defaults.Gets the [autoselect] default.getBind()Gets the [bind] default.Gets the cascaded delete default.Gets the [remote] default.getRoot()Gets the root default.Gets the rootclassid default.Gets the rootid default.getSize()Gets the [size] default.Gets the tracktype default.voidParses the defaults from a string.
-
Constructor Details
-
ModelDefaults
public ModelDefaults()Creates the defaults. -
ModelDefaults
Creates the defaults from a string.- Parameters:
str- the string- Throws:
ModelException- if parsing failed
-
-
Method Details
-
parse
Parses the defaults from a string.- Parameters:
str- the string- Throws:
ModelException- if parsing failed
-
clear
public void clear()Clears the defaults. -
getTrackType
Gets the tracktype default.- Returns:
- the track type
-
getDeletionCascaded
Gets the cascaded delete default.- Returns:
- the cascaded delete
-
getRoot
Gets the root default.- Returns:
- true if determine root option according to model
-
getRootId
Gets the rootid default.- Returns:
- true if determine rootid option according to model
-
getRootClassId
Gets the rootclassid default.- Returns:
- true if determine rootclassid option according to model
-
getBind
Gets the [bind] default.- Returns:
- true if set [bind] option
-
getSize
Gets the [size] default.- Returns:
- true if set [size] option
-
getAutoSelect
Gets the [autoselect] default.- Returns:
- true if set [autoselect] option
-
getRemote
Gets the [remote] default.- Returns:
- true i set [remote] option
-