Package com.iizix.run

Class BuilderError


  • public class BuilderError
    extends java.lang.Object
    Class to hold a builder error for verification.
    Author:
    Christopher Mindus
    • Field Summary

      Fields 
      Modifier and TypeFieldDescription
      java.lang.Stringerror
      The error.
      booleanisError
      The severity: true for error, false for warning.
      java.lang.Stringlocation
      The location.
      java.lang.Stringname
      The property name in error.
    • Constructor Summary

      Constructors 
      ConstructorDescription
      BuilderError​(PropCnr pc, int index)
      Constructor from a remote property error container.
      BuilderError​(java.lang.String name, java.lang.String location, boolean isError, java.lang.String error)
      Constructor.
      BuilderError​(java.lang.String name, java.lang.String location, java.lang.String error)
      Constructor for isError = true.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethodDescription
      voidadd​(PropCnr pc, int index)
      Adds an error to a remote property container for errors.
      booleanequals​(java.lang.Object o)
      Checks for equality.
      java.lang.StringtoString()
      Outputs to string for debug purposes.
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • name

        public final java.lang.String name
        The property name in error.
      • location

        public final java.lang.String location
        The location.
      • isError

        public final boolean isError
        The severity: true for error, false for warning.
      • error

        public final java.lang.String error
        The error.
    • Constructor Detail

      • BuilderError

        public BuilderError​(java.lang.String name,
                            java.lang.String location,
                            java.lang.String error)
        Constructor for isError = true.
        Parameters:
        name - The property name in error.
        location - The location.
        error - The error.
      • BuilderError

        public BuilderError​(java.lang.String name,
                            java.lang.String location,
                            boolean isError,
                            java.lang.String error)
        Constructor.
        Parameters:
        name - The property name in error.
        location - The location.
        isError - The severity: true for error, false for warning.
        error - The error.
      • BuilderError

        public BuilderError​(PropCnr pc,
                            int index)
        Constructor from a remote property error container.
        Parameters:
        pc - The property container.
        index - The index.
    • Method Detail

      • add

        public void add​(PropCnr pc,
                        int index)
        Adds an error to a remote property container for errors.
        Parameters:
        pc - The property container.
        index - The index.
      • equals

        public boolean equals​(java.lang.Object o)
        Checks for equality.
        Overrides:
        equals in class java.lang.Object
      • toString

        public java.lang.String toString()
        Outputs to string for debug purposes.
        Overrides:
        toString in class java.lang.Object