public DocPath resolve ( String p ) { if ( p == null || p . isEmpty ( ) ) return this ; if ( path . isEmpty ( ) ) return new DocPath ( p ) ; return new DocPath ( path + "/" + p ) ; }
Return the path formed by appending the specified string to the current path .