Class TypeModel

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
AtomicTypeModel, CollectionTypeModel, ComposedTypeModel, MapTypeModel

public class TypeModel extends TypeManagerManagedModel
Generated model class for type Type first defined at extension core.
See Also:
  • Field Details

    • _TYPECODE

      public static final String _TYPECODE
      Generated model type code constant.
      See Also:
    • XMLDEFINITION

      public static final String XMLDEFINITION
      Generated constant - Attribute key of Type.xmldefinition attribute defined at extension core.
      See Also:
    • CODE

      public static final String CODE
      Generated constant - Attribute key of Type.code attribute defined at extension core.
      See Also:
    • DEFAULTVALUE

      public static final String DEFAULTVALUE
      Generated constant - Attribute key of Type.defaultValue attribute defined at extension core.
      See Also:
    • DESCRIPTION

      public static final String DESCRIPTION
      Generated constant - Attribute key of Type.description attribute defined at extension core.
      See Also:
  • Constructor Details

    • TypeModel

      public TypeModel()
      Generated constructor - Default constructor for generic creation.
    • TypeModel

      public TypeModel(ItemModelContext ctx)
      Generated constructor - Default constructor for creation with existing context
      Parameters:
      ctx - the model context to be injected, must not be null
    • TypeModel

      @Deprecated(since="4.1.1", forRemoval=true) public TypeModel(String _code, Boolean _generate)
      Deprecated, for removal: This API element is subject to removal in a future version.
      since 4.1.1 Please use the default constructor without parameters
      Generated constructor - Constructor with all mandatory attributes.
      Parameters:
      _code - initial attribute declared by type Type at extension core
      _generate - initial attribute declared by type TypeManagerManaged at extension core
    • TypeModel

      @Deprecated(since="4.1.1", forRemoval=true) public TypeModel(String _code, Boolean _generate, ItemModel _owner)
      Deprecated, for removal: This API element is subject to removal in a future version.
      since 4.1.1 Please use the default constructor without parameters
      Generated constructor - for all mandatory and initial attributes.
      Parameters:
      _code - initial attribute declared by type Type at extension core
      _generate - initial attribute declared by type TypeManagerManaged at extension core
      _owner - initial attribute declared by type Item at extension core
  • Method Details

    • getCode

      @Accessor(qualifier="code", type=GETTER) public String getCode()
      Generated method - Getter of the Type.code attribute defined at extension core.
      Returns:
      the code
    • getDefaultValue

      @Accessor(qualifier="defaultValue", type=GETTER) public Object getDefaultValue()
      Generated method - Getter of the Type.defaultValue attribute defined at extension core.
      Returns:
      the defaultValue
    • getDescription

      @Accessor(qualifier="description", type=GETTER) public String getDescription()
      Generated method - Getter of the Type.description attribute defined at extension core.
      Returns:
      the description
    • getDescription

      @Accessor(qualifier="description", type=GETTER) public String getDescription(Locale loc)
      Generated method - Getter of the Type.description attribute defined at extension core.
      Parameters:
      loc - the value localization key
      Returns:
      the description
      Throws:
      IllegalArgumentException - if localization key cannot be mapped to data language
    • getXmldefinition

      @Accessor(qualifier="xmldefinition", type=GETTER) public String getXmldefinition()
      Generated method - Getter of the Type.xmldefinition attribute defined at extension core.
      Returns:
      the xmldefinition
    • setCode

      @Accessor(qualifier="code", type=SETTER) public void setCode(String value)
      Generated method - Initial setter of Type.code attribute defined at extension core. Can only be used at creation of model - before first save.
      Parameters:
      value - the code
    • setDefaultValue

      @Accessor(qualifier="defaultValue", type=SETTER) public void setDefaultValue(Object value)
      Generated method - Setter of Type.defaultValue attribute defined at extension core.
      Parameters:
      value - the defaultValue
    • setDescription

      @Accessor(qualifier="description", type=SETTER) public void setDescription(String value)
      Generated method - Setter of Type.description attribute defined at extension core.
      Parameters:
      value - the description
    • setDescription

      @Accessor(qualifier="description", type=SETTER) public void setDescription(String value, Locale loc)
      Generated method - Setter of Type.description attribute defined at extension core.
      Parameters:
      value - the description
      loc - the value localization key
      Throws:
      IllegalArgumentException - if localization key cannot be mapped to data language