org.springframework.boot.origin

Class TextResourceOrigin

  • java.lang.Object
    • org.springframework.boot.origin.TextResourceOrigin
    • Constructor Detail

    • Method Detail

      • getResource

        public org.springframework.core.io.Resource getResource()
        Return the resource where the property originated.
        Returns:
        the text resource or null
      • getLocation

        public TextResourceOrigin.Location getLocation()
        Return the location of the property within the source (if known).
        Returns:
        the location or null
      • getParent

        public Origin getParent()
        Description copied from interface: Origin
        Return the parent origin for this instance if there is one. The parent origin provides the origin of the item that created this one.
        Specified by:
        getParent in interface Origin
        Returns:
        the parent origin or null
        See Also:
        Origin.parentsFrom(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
      • toString

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