Class BusinessType

    • Constructor Detail

      • BusinessType

        public BusinessType()
        Constructs a new empty instance.
      • BusinessType

        protected BusinessType​(boolean noInit)
        Constructs a new empty instance.
      • BusinessType

        public BusinessType​(JSONObject jsonObject)
        Construct a new instance backed by the given JSONObject, the parameter is not copied so changes to it will be reflected in this instance and vice-versa.
      • BusinessType

        public BusinessType​(BusinessType src)
        Constructs a new instance that is a deep copy of the source instance. It does not copy the bundle or changelog.
    • Method Detail

      • getBusinessTypeGroupName

        public String getBusinessTypeGroupName()
        localized business type group
      • getName

        public String getName()
        Localized business type
      • getJSONObject

        public JSONObject getJSONObject()
        Returns the internal JSONObject backing this instance, the return value is not a copy so changes to it will be reflected in this instance and vice-versa.
        Specified by:
        getJSONObject in interface JSONifiable
      • isNotNullBusinessTypeGroupCode

        public boolean isNotNullBusinessTypeGroupCode()
        Checks whether the 'businessTypeGroupCode' field is set and is not null
      • isNotNullBusinessTypeGroupName

        public boolean isNotNullBusinessTypeGroupName()
        Checks whether the 'businessTypeGroupName' field is set and is not null
      • isNotNullCode

        public boolean isNotNullCode()
        Checks whether the 'code' field is set and is not null
      • isNotNullName

        public boolean isNotNullName()
        Checks whether the 'name' field is set and is not null
      • hasBusinessTypeGroupCode

        public boolean hasBusinessTypeGroupCode()
        Checks whether the 'businessTypeGroupCode' field has been set, however the value could be null
      • hasBusinessTypeGroupName

        public boolean hasBusinessTypeGroupName()
        Checks whether the 'businessTypeGroupName' field has been set, however the value could be null
      • hasCode

        public boolean hasCode()
        Checks whether the 'code' field has been set, however the value could be null
      • hasName

        public boolean hasName()
        Checks whether the 'name' field has been set, however the value could be null
      • setBusinessTypeGroupName

        public BusinessType setBusinessTypeGroupName​(String businessTypeGroupName)
        Sets the field 'businessTypeGroupName'.
      • clearBusinessTypeGroupCode

        public void clearBusinessTypeGroupCode()
        Clears the 'businessTypeGroupCode' field, the 'has' method for this field will now return false
      • clearBusinessTypeGroupName

        public void clearBusinessTypeGroupName()
        Clears the 'businessTypeGroupName' field, the 'has' method for this field will now return false
      • clearCode

        public void clearCode()
        Clears the 'code' field, the 'has' method for this field will now return false
      • clearName

        public void clearName()
        Clears the 'name' field, the 'has' method for this field will now return false
      • containsChanges

        public boolean containsChanges()
        Returns true if this instance has any changes.
      • resetChangeLog

        public void resetChangeLog()
        Reset the log of changes made to this instance, calling copyChanges() after this would return an empty instance.
      • copyChanges

        public BusinessType copyChanges()
        Create a copy of this instance that contains only fields that were set after the constructor was called.
      • mergeChanges

        public void mergeChanges​(BusinessType src)
        Copy all the changed fields from the given source to this instance.