org.springframework.boot.origin

Class TextResourceOrigin

  • java.lang.Object
    • org.springframework.boot.origin.TextResourceOrigin
  • All Implemented Interfaces:
    Origin


    public class TextResourceOrigin
    extends java.lang.Object
    implements Origin
    Origin for an item loaded from a text resource. Provides access to the original Resource that loaded the text and a TextResourceOrigin.Location within it.
    Since:
    2.0.0
    • 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
      • 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