public DocumentPath parent ( ) { if ( pathElements . size ( ) <= 1 ) { return null ; } return new DocumentPath ( this . pathElements . subList ( 0 , pathElements . size ( ) - 1 ) ) ; }
Returns a path for the parent of this node .