Class AbstractResponse<T>

    • Constructor Detail

      • AbstractResponse

        protected AbstractResponse()
        Default constructor is only intended to be used for deserialization by tools like Jackson for JSON. For "normal" object creation builder should be used instead.
      • AbstractResponse

        protected AbstractResponse​(AbstractResponse.Builder<T> pBuilder)
        Initialize object using the passed builder.
        Parameters:
        pBuilder - Builder that should be used to initialize this object. The parameter must not be null.
    • Method Detail

      • getErrors

        public java.util.List<Message> getErrors()
        Method returns association errors.
        Returns:
        List Value to which errors is set. The method never returns null and the returned collection is modifiable.
      • addToErrors

        public void addToErrors​(Message pErrors)
        Method adds the passed object to errors.
        Parameters:
        pErrors - Object that should be added to errors. The parameter must not be null.
      • addToErrors

        public void addToErrors​(java.util.Collection<Message> pErrors)
        Method adds all passed objects to errors.
        Parameters:
        pErrors - Collection with all objects that should be added to errors. The parameter must not be null.
      • removeFromErrors

        public void removeFromErrors​(Message pErrors)
        Method removes the passed object from errors.
        Parameters:
        pErrors - Object that should be removed from errors. The parameter must not be null.
      • clearErrors

        public void clearErrors()
        Method removes all objects from errors.
      • getWarnings

        public java.util.List<Message> getWarnings()
        Method returns association warnings.
        Returns:
        List Value to which warnings is set. The method never returns null and the returned collection is modifiable.
      • addToWarnings

        public void addToWarnings​(Message pWarnings)
        Method adds the passed object to warnings.
        Parameters:
        pWarnings - Object that should be added to warnings. The parameter must not be null.
      • addToWarnings

        public void addToWarnings​(java.util.Collection<Message> pWarnings)
        Method adds all passed objects to warnings.
        Parameters:
        pWarnings - Collection with all objects that should be added to warnings. The parameter must not be null.
      • removeFromWarnings

        public void removeFromWarnings​(Message pWarnings)
        Method removes the passed object from warnings.
        Parameters:
        pWarnings - Object that should be removed from warnings. The parameter must not be null.
      • clearWarnings

        public void clearWarnings()
        Method removes all objects from warnings.
      • toStringBuilder

        public java.lang.StringBuilder toStringBuilder​(java.lang.String pIndent)
        Method returns a StringBuilder that can be used to create a String representation of this object. The returned StringBuilder also takes care about attributes of super classes.
        Returns:
        StringBuilder StringBuilder representing this object. The method never returns null.
      • toString

        public java.lang.String toString()
        Method creates a new String with the values of all attributes of this class. All references to other objects will be ignored.
        Overrides:
        toString in class java.lang.Object
        Returns:
        String String representation of this object. The method never returns null.