Class DocLink


  • @Deprecated
    public class DocLink
    extends java.lang.Object
    Deprecated.
    Abstraction for simple relative URIs, consisting of a path, an optional query, and an optional fragment. DocLink objects can be created by the constructors below or from a DocPath using the convenience methods, fragment and query.

    This is NOT part of any supported API. If you write code that depends on this, you do so at your own risk. This code and its internal interfaces are subject to change or deletion without notice.

    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) java.lang.String fragment
      Deprecated.
       
      (package private) java.lang.String path
      Deprecated.
       
      (package private) java.lang.String query
      Deprecated.
       
    • Constructor Summary

      Constructors 
      Constructor Description
      DocLink​(DocPath path)
      Deprecated.
      Create a DocLink representing the URI path.
      DocLink​(DocPath path, java.lang.String query, java.lang.String fragment)
      Deprecated.
      Create a DocLink representing the URI path?query#fragment.
      DocLink​(java.lang.String path, java.lang.String query, java.lang.String fragment)
      Deprecated.
      Create a DocLink representing the URI path?query#fragment.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      static DocLink fragment​(java.lang.String fragment)
      Deprecated.
      Create a DocLink representing the URI #fragment.
      private static boolean isEmpty​(java.lang.String s)
      Deprecated.
       
      java.lang.String toString()
      Deprecated.
      Return the link in the form "path?query#fragment", omitting any empty components.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • path

        final java.lang.String path
        Deprecated.
      • query

        final java.lang.String query
        Deprecated.
      • fragment

        final java.lang.String fragment
        Deprecated.
    • Constructor Detail

      • DocLink

        public DocLink​(DocPath path)
        Deprecated.
        Create a DocLink representing the URI path.
      • DocLink

        public DocLink​(DocPath path,
                       java.lang.String query,
                       java.lang.String fragment)
        Deprecated.
        Create a DocLink representing the URI path?query#fragment. query and fragment may be null.
      • DocLink

        public DocLink​(java.lang.String path,
                       java.lang.String query,
                       java.lang.String fragment)
        Deprecated.
        Create a DocLink representing the URI path?query#fragment. Any of the component parts may be null.
    • Method Detail

      • fragment

        public static DocLink fragment​(java.lang.String fragment)
        Deprecated.
        Create a DocLink representing the URI #fragment.
      • toString

        public java.lang.String toString()
        Deprecated.
        Return the link in the form "path?query#fragment", omitting any empty components.
        Overrides:
        toString in class java.lang.Object
      • isEmpty

        private static boolean isEmpty​(java.lang.String s)
        Deprecated.