@Test public void marshal() { String value = "/somepath/to"; Path path = Paths.get(value, "someplace"); String result = pathAdapter.marshal(path); assertThat(result).isEqualTo("/somepath/to/someplace"); }
@Override public String marshal(final Path input) { return (input == null) ? null : input.toAbsolutePath().toString(); }
PathAdapter extends XmlAdapter<String,Path> { @Override public String marshal(final Path input) { return (input == null) ? null : input.toAbsolutePath().toString(); } }
PathAdapter extends XmlAdapter<String,Path> { @Override public String marshal(final Path input) { return (input == null) ? null : input.toAbsolutePath().toString(); }  }
PathAdapter extends XmlAdapter<String,Path> { @Override public String marshal(final Path input) { return (input == null) ? null : input.toAbsolutePath().toString(); }  @Override Path unmarshal(final String input); @Override String marshal(final Path input); }
PathAdapter extends XmlAdapter<String,Path> { @Override public String marshal(final Path input) { return (input == null) ? null : input.toAbsolutePath().toString(); }  @Override Path unmarshal(final String input); @Override String marshal(final Path input);  }