类 TextResourceOrigin

java.lang.Object
org.springframework.boot.origin.TextResourceOrigin
所有已实现的接口:
Origin

public class TextResourceOrigin extends 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. If the provided resource provides an Origin (e.g. it is an OriginTrackedResource), then it will be used as the origin parent.
从以下版本开始:
2.0.0
作者:
Madhura Bhave, Phillip Webb
另请参阅:
  • 构造器详细资料

  • 方法详细资料

    • getResource

      public Resource getResource()
      Return the resource where the property originated.
      返回:
      the text resource or null
    • getLocation

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

      public Origin getParent()
      从接口复制的说明: 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.
      指定者:
      getParent 在接口中 Origin
      返回:
      the parent origin or null
      另请参阅:
    • equals

      public boolean equals(Object obj)
      覆盖:
      equals 在类中 Object
    • hashCode

      public int hashCode()
      覆盖:
      hashCode 在类中 Object
    • toString

      public String toString()
      覆盖:
      toString 在类中 Object