Class UsageUnitModel

  • All Implemented Interfaces:
    java.io.Serializable

    public class UsageUnitModel
    extends ItemModel
    Generated model class for type UsageUnit first defined at extension subscriptionservices.
    See Also:
    Serialized Form
    • Field Detail

      • _TYPECODE

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

        public static final java.lang.String ID
        Generated constant - Attribute key of UsageUnit.id attribute defined at extension subscriptionservices.
        See Also:
        Constant Field Values
      • NAME

        public static final java.lang.String NAME
        Generated constant - Attribute key of UsageUnit.name attribute defined at extension subscriptionservices.
        See Also:
        Constant Field Values
      • NAMEPLURAL

        public static final java.lang.String NAMEPLURAL
        Generated constant - Attribute key of UsageUnit.namePlural attribute defined at extension subscriptionservices.
        See Also:
        Constant Field Values
      • ACCUMULATIVE

        public static final java.lang.String ACCUMULATIVE
        Generated constant - Attribute key of UsageUnit.accumulative attribute defined at extension subscriptionservices.
        See Also:
        Constant Field Values
    • Constructor Detail

      • UsageUnitModel

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

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

        @Deprecated(since="4.1.1",
                    forRemoval=true)
        public UsageUnitModel​(java.lang.String _id)
        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:
        _id - initial attribute declared by type UsageUnit at extension subscriptionservices
      • UsageUnitModel

        @Deprecated(since="4.1.1",
                    forRemoval=true)
        public UsageUnitModel​(java.lang.String _id,
                              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:
        _id - initial attribute declared by type UsageUnit at extension subscriptionservices
        _owner - initial attribute declared by type Item at extension core
    • Method Detail

      • getAccumulative

        @Accessor(qualifier="accumulative",
                  type=GETTER)
        public java.lang.Boolean getAccumulative()
        Generated method - Getter of the UsageUnit.accumulative attribute defined at extension subscriptionservices.
        Returns:
        the accumulative - Accumulative
      • getId

        @Accessor(qualifier="id",
                  type=GETTER)
        public java.lang.String getId()
        Generated method - Getter of the UsageUnit.id attribute defined at extension subscriptionservices.
        Returns:
        the id - Identifier
      • getName

        @Accessor(qualifier="name",
                  type=GETTER)
        public java.lang.String getName()
        Generated method - Getter of the UsageUnit.name attribute defined at extension subscriptionservices.
        Returns:
        the name - Name
      • getName

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

        @Accessor(qualifier="namePlural",
                  type=GETTER)
        public java.lang.String getNamePlural()
        Generated method - Getter of the UsageUnit.namePlural attribute defined at extension subscriptionservices.
        Returns:
        the namePlural - Name (Plural)
      • getNamePlural

        @Accessor(qualifier="namePlural",
                  type=GETTER)
        public java.lang.String getNamePlural​(java.util.Locale loc)
        Generated method - Getter of the UsageUnit.namePlural attribute defined at extension subscriptionservices.
        Parameters:
        loc - the value localization key
        Returns:
        the namePlural - Name (Plural)
        Throws:
        java.lang.IllegalArgumentException - if localization key cannot be mapped to data language
      • setAccumulative

        @Accessor(qualifier="accumulative",
                  type=SETTER)
        public void setAccumulative​(java.lang.Boolean value)
        Generated method - Setter of UsageUnit.accumulative attribute defined at extension subscriptionservices.
        Parameters:
        value - the accumulative - Accumulative
      • setId

        @Accessor(qualifier="id",
                  type=SETTER)
        public void setId​(java.lang.String value)
        Generated method - Initial setter of UsageUnit.id attribute defined at extension subscriptionservices. Can only be used at creation of model - before first save.
        Parameters:
        value - the id - Identifier
      • setName

        @Accessor(qualifier="name",
                  type=SETTER)
        public void setName​(java.lang.String value)
        Generated method - Setter of UsageUnit.name attribute defined at extension subscriptionservices.
        Parameters:
        value - the name - Name
      • setName

        @Accessor(qualifier="name",
                  type=SETTER)
        public void setName​(java.lang.String value,
                            java.util.Locale loc)
        Generated method - Setter of UsageUnit.name attribute defined at extension subscriptionservices.
        Parameters:
        value - the name - Name
        loc - the value localization key
        Throws:
        java.lang.IllegalArgumentException - if localization key cannot be mapped to data language
      • setNamePlural

        @Accessor(qualifier="namePlural",
                  type=SETTER)
        public void setNamePlural​(java.lang.String value)
        Generated method - Setter of UsageUnit.namePlural attribute defined at extension subscriptionservices.
        Parameters:
        value - the namePlural - Name (Plural)
      • setNamePlural

        @Accessor(qualifier="namePlural",
                  type=SETTER)
        public void setNamePlural​(java.lang.String value,
                                  java.util.Locale loc)
        Generated method - Setter of UsageUnit.namePlural attribute defined at extension subscriptionservices.
        Parameters:
        value - the namePlural - Name (Plural)
        loc - the value localization key
        Throws:
        java.lang.IllegalArgumentException - if localization key cannot be mapped to data language