Class ModelDefaults

java.lang.Object
org.tentackle.model.ModelDefaults

public class ModelDefaults extends Object
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 Details

    • ModelDefaults

      public ModelDefaults()
      Creates the defaults.
    • ModelDefaults

      public ModelDefaults(String str) throws ModelException
      Creates the defaults from a string.
      Parameters:
      str - the string
      Throws:
      ModelException - if parsing failed
  • Method Details

    • parse

      public void parse(String str) throws ModelException
      Parses the defaults from a string.
      Parameters:
      str - the string
      Throws:
      ModelException - if parsing failed
    • clear

      public void clear()
      Clears the defaults.
    • getTrackType

      public TrackType getTrackType()
      Gets the tracktype default.
      Returns:
      the track type
    • getDeletionCascaded

      public Boolean getDeletionCascaded()
      Gets the cascaded delete default.
      Returns:
      the cascaded delete
    • getRoot

      public Boolean getRoot()
      Gets the root default.
      Returns:
      true if determine root option according to model
    • getRootId

      public Boolean getRootId()
      Gets the rootid default.
      Returns:
      true if determine rootid option according to model
    • getRootClassId

      public Boolean getRootClassId()
      Gets the rootclassid default.
      Returns:
      true if determine rootclassid option according to model
    • getBind

      public Boolean getBind()
      Gets the [bind] default.
      Returns:
      true if set [bind] option
    • getSize

      public Boolean getSize()
      Gets the [size] default.
      Returns:
      true if set [size] option
    • getAutoSelect

      public Boolean getAutoSelect()
      Gets the [autoselect] default.
      Returns:
      true if set [autoselect] option
    • getRemote

      public Boolean getRemote()
      Gets the [remote] default.
      Returns:
      true i set [remote] option