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.| Modifier and Type | Class and Description |
|---|---|
static class |
TextResourceOrigin.Location
A location (line and column number) within the resource.
|
| Constructor and Description |
|---|
TextResourceOrigin(org.springframework.core.io.Resource resource,
TextResourceOrigin.Location location) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
TextResourceOrigin.Location |
getLocation()
Return the location of the property within the source (if known).
|
org.springframework.core.io.Resource |
getResource()
Return the resource where the property originated.
|
int |
hashCode() |
java.lang.String |
toString() |
public TextResourceOrigin(org.springframework.core.io.Resource resource,
TextResourceOrigin.Location location)
public org.springframework.core.io.Resource getResource()
nullpublic TextResourceOrigin.Location getLocation()
nullpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object