java.nio.file.Path, to directly populate a Path
property instead of using a String property as bridge.
Based on Paths#get(URI)'s resolution algorithm, checking
registered NIO file system providers, including the default file system
for "file:..." paths. Also supports Spring-style URL notation: any fully
qualified standard URL and Spring's special "classpath:" pseudo-URL, as
well as Spring's context-specific relative file paths. As a fallback, a
path will be resolved in the file system via Paths#get(String)
if no existing context-relative resource could be found.
java.nio.file.Path , Paths#get(URI), ResourceEditor, org.springframework.core.io.ResourceLoader , FileEditor, URLEditor
| Modifier and Type | Field and Description |
|---|---|
| private final ResourceEditor |
| Access | Constructor and Description |
|---|---|
| public | |
| public | PathEditor(ResourceEditor
the ResourceEditor to use resourceEditor)Create a new PathEditor, using the given ResourceEditor underneath. |
| Modifier and Type | Method and Description |
|---|---|
| public String | getAsText()
Overrides java. Implements java. |
| public void | setAsText(String
The string to be parsed. text)Overrides java. Implements java. |
| resourceEditor | back to summary |
|---|---|
| private final ResourceEditor resourceEditor | |
| PathEditor | back to summary |
|---|---|
| public PathEditor() Create a new PathEditor, using the default ResourceEditor underneath. | |
| PathEditor | back to summary |
|---|---|
| public PathEditor(ResourceEditor resourceEditor) Create a new PathEditor, using the given ResourceEditor underneath.
| |
| getAsText | back to summary |
|---|---|
| public String getAsText() Overrides java. Implements java. Doc from java. Gets the property value as a string suitable for presentation to a human to edit. | |
| setAsText | back to summary |
|---|---|
| public void setAsText(String text) throws IllegalArgumentException Overrides java. Implements java. Doc from java. Sets the property value by parsing a given String. May raise java.lang.IllegalArgumentException if either the String is badly formatted or if this kind of property can't be expressed as text. | |