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.| 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(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() |
String |
toString() |
public TextResourceOrigin(org.springframework.core.io.Resource resource,
TextResourceOrigin.Location location)
public org.springframework.core.io.Resource getResource()
nullpublic TextResourceOrigin.Location getLocation()
nullCopyright © 2020 Pivotal Software, Inc.. All rights reserved.