Class TypeModel

    • Field Detail

      • _TYPECODE

        public static final java.lang.String _TYPECODE
        Generated model type code constant.
        See Also:
        Constant Field Values
      • XMLDEFINITION

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

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

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

        public static final java.lang.String DESCRIPTION
        Generated constant - Attribute key of Type.description attribute defined at extension core.
        See Also:
        Constant Field Values
    • Constructor Detail

      • 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​(java.lang.String _code,
                         java.lang.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​(java.lang.String _code,
                         java.lang.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 Detail

      • getCode

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

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

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

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

        @Accessor(qualifier="xmldefinition",
                  type=GETTER)
        public java.lang.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​(java.lang.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​(java.lang.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​(java.lang.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​(java.lang.String value,
                                   java.util.Locale loc)
        Generated method - Setter of Type.description attribute defined at extension core.
        Parameters:
        value - the description
        loc - the value localization key
        Throws:
        java.lang.IllegalArgumentException - if localization key cannot be mapped to data language