Class ExceptionPathSegment


  • public class ExceptionPathSegment
    extends java.lang.Object
    An ExceptionPathSegment represents a segment in a path that is used to match leafs or nodes in a tree of exceptions.

    If a segment consists of more than one name, it matches the names provided if 'negate' is false or missing, or it matches anything except the names provided if 'negate' is true.

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)  
      java.lang.String[] getNames()
      Depending on the value of 'negate' the names that should match or not match.
      java.lang.Boolean getNegate()
      If false or missing this segment matches the names provided, otherwise it matches anything except the names provided.
      int hashCode()  
      void setNames​(java.lang.String[] names)
      Depending on the value of 'negate' the names that should match or not match.
      void setNegate​(java.lang.Boolean negate)
      If false or missing this segment matches the names provided, otherwise it matches anything except the names provided.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • ExceptionPathSegment

        public ExceptionPathSegment()
    • Method Detail

      • getNegate

        public java.lang.Boolean getNegate()
        If false or missing this segment matches the names provided, otherwise it matches anything except the names provided.

        This is an optional property.

      • setNegate

        public void setNegate​(java.lang.Boolean negate)
        If false or missing this segment matches the names provided, otherwise it matches anything except the names provided.

        This is an optional property.

      • getNames

        public java.lang.String[] getNames()
        Depending on the value of 'negate' the names that should match or not match.
      • setNames

        public void setNames​(java.lang.String[] names)
        Depending on the value of 'negate' the names that should match or not match.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object