Class ValidationDetails

    • Constructor Detail

      • ValidationDetails

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

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

        public ValidationDetails​(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.
      • ValidationDetails

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

      • getValidationCode

        public String getValidationCode()
        Code signifying what kind of validation error occurred
      • getValidationCodeDesc

        public String getValidationCodeDesc()
        Description of validation code
      • getValidationCodeStatus

        public String getValidationCodeStatus()
        Validation code status
      • 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
      • isNotNullValidationCode

        public boolean isNotNullValidationCode()
        Checks whether the 'validationCode' field is set and is not null
      • isNotNullValidationCodeDesc

        public boolean isNotNullValidationCodeDesc()
        Checks whether the 'validationCodeDesc' field is set and is not null
      • isNotNullValidationCodeStatus

        public boolean isNotNullValidationCodeStatus()
        Checks whether the 'validationCodeStatus' field is set and is not null
      • hasValidationCode

        public boolean hasValidationCode()
        Checks whether the 'validationCode' field has been set, however the value could be null
      • hasValidationCodeDesc

        public boolean hasValidationCodeDesc()
        Checks whether the 'validationCodeDesc' field has been set, however the value could be null
      • hasValidationCodeStatus

        public boolean hasValidationCodeStatus()
        Checks whether the 'validationCodeStatus' field has been set, however the value could be null
      • setValidationCode

        public ValidationDetails setValidationCode​(String validationCode)
        Sets the field 'validationCode'.
      • setValidationCodeDesc

        public ValidationDetails setValidationCodeDesc​(String validationCodeDesc)
        Sets the field 'validationCodeDesc'.
      • setValidationCodeStatus

        public ValidationDetails setValidationCodeStatus​(String validationCodeStatus)
        Sets the field 'validationCodeStatus'.
      • clearValidationCode

        public void clearValidationCode()
        Clears the 'validationCode' field, the 'has' method for this field will now return false
      • clearValidationCodeDesc

        public void clearValidationCodeDesc()
        Clears the 'validationCodeDesc' field, the 'has' method for this field will now return false
      • clearValidationCodeStatus

        public void clearValidationCodeStatus()
        Clears the 'validationCodeStatus' 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 ValidationDetails copyChanges()
        Create a copy of this instance that contains only fields that were set after the constructor was called.
      • mergeChanges

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