1.1 --- a/src/share/classes/com/sun/tools/doclets/internal/toolkit/util/DocPath.java Tue Oct 23 13:20:37 2012 -0700 1.2 +++ b/src/share/classes/com/sun/tools/doclets/internal/toolkit/util/DocPath.java Tue Oct 23 13:58:56 2012 -0700 1.3 @@ -32,6 +32,11 @@ 1.4 /** 1.5 * Abstraction for immutable relative paths. 1.6 * Paths always use '/' as a separator, and never begin or end with '/'. 1.7 + * 1.8 + * <p><b>This is NOT part of any supported API. 1.9 + * If you write code that depends on this, you do so at your own risk. 1.10 + * This code and its internal interfaces are subject to change or 1.11 + * deletion without notice.</b> 1.12 */ 1.13 public class DocPath { 1.14 private final String path; 1.15 @@ -177,6 +182,14 @@ 1.16 return path.isEmpty(); 1.17 } 1.18 1.19 + public DocLink fragment(String fragment) { 1.20 + return new DocLink(path, null, fragment); 1.21 + } 1.22 + 1.23 + public DocLink query(String query) { 1.24 + return new DocLink(path, query, null); 1.25 + } 1.26 + 1.27 /** 1.28 * Return this path as a string. 1.29 */