public class ModelDefaults extends Object
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.
| Constructor and Description |
|---|
ModelDefaults()
Creates the defaults.
|
ModelDefaults(String str)
Creates the defaults from a string.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clears the defaults.
|
Boolean |
getAutoSelect()
Gets the [autoselect] default.
|
Boolean |
getBind()
Gets the [bind] default.
|
Boolean |
getDeletionCascaded()
Gets the cascaded delete default.
|
Boolean |
getRemote()
Gets the [remote] default.
|
Boolean |
getRoot()
Gets the root default.
|
Boolean |
getRootClassId()
Gets the rootclassid default.
|
Boolean |
getRootId()
Gets the rootid default.
|
Boolean |
getSize()
Gets the [size] default.
|
TrackType |
getTrackType()
Gets the tracktype default.
|
void |
parse(String str)
Parses the defaults from a string.
|
public ModelDefaults()
public ModelDefaults(String str) throws ModelException
str - the stringModelException - if parsing failedpublic void parse(String str) throws ModelException
str - the stringModelException - if parsing failedpublic void clear()
public TrackType getTrackType()
public Boolean getDeletionCascaded()
public Boolean getRoot()
public Boolean getRootId()
public Boolean getRootClassId()
public Boolean getBind()
public Boolean getSize()
public Boolean getAutoSelect()
public Boolean getRemote()
Tentackle - a domain driven enterprise framework