On the other hand, since the JCR interface is based around Strings, there will be a need to convert back and forth anyway.
They would certainly make parsing easier... And we could still keep WikiPage.getName() (to return a String), while the internal core would use WikiPage.getPath().
Though care must be taken to make sure that we don't mix Wiki paths and JCR paths in the developer's mind - JCR paths are internal to the system.
public class WikiPath
/** Constructs a WikiPath from a full string */
public WikiPath( String path );
/** Resolves a Wikipath relative to a current path. For example, if currPath = "MyWiki:Foo",
* and path = "Bar" returns "MyWiki:Bar". If path = "/Bar" returns "MyWiki:Foo/Bar".
public WikiPath resolve( WikiPath currPath, String path );
/** Resolves a path with respect to the current context */
public WikiPath resolve( WikiContext context, String path );
/** Returns the WikiPath as a full path ("MyWiki:MainPage/SubPage") */
public String toString();