Class LinkFactory

  • Direct Known Subclasses:
    LinkFactoryImpl

    @Deprecated
    public abstract class LinkFactory
    extends Object
    Deprecated.
    A factory that constructs links from given link information.

    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.

    Since:
    1.5
    Author:
    Jamie Ho
    • Constructor Detail

      • LinkFactory

        public LinkFactory()
        Deprecated.
    • Method Detail

      • newContent

        protected abstract Content newContent()
        Deprecated.
        Return an empty instance of a content object.
        Returns:
        an empty instance of a content object.
      • getLink

        public Content getLink​(LinkInfo linkInfo)
        Deprecated.
        Constructs a link from the given link information.
        Parameters:
        linkInfo - the information about the link.
        Returns:
        the output of the link.
      • getClassLink

        protected abstract Content getClassLink​(LinkInfo linkInfo)
        Deprecated.
        Return the link to the given class.
        Parameters:
        linkInfo - the information about the link to construct.
        Returns:
        the link for the given class.
      • getTypeParameterLink

        protected abstract Content getTypeParameterLink​(LinkInfo linkInfo,
                                                        Type typeParam)
        Deprecated.
        Return the link to the given type parameter.
        Parameters:
        linkInfo - the information about the link to construct.
        typeParam - the type parameter to link to.
      • getTypeParameterLinks

        public Content getTypeParameterLinks​(LinkInfo linkInfo)
        Deprecated.
        Return the links to the type parameters.
        Parameters:
        linkInfo - the information about the link to construct.
        Returns:
        the links to the type parameters.
      • getTypeParameterLinks

        public Content getTypeParameterLinks​(LinkInfo linkInfo,
                                             boolean isClassLabel)
        Deprecated.
        Return the links to the type parameters.
        Parameters:
        linkInfo - the information about the link to construct.
        isClassLabel - true if this is a class label. False if it is the type parameters portion of the link.
        Returns:
        the links to the type parameters.
      • getTypeAnnotationLinks

        public Content getTypeAnnotationLinks​(LinkInfo linkInfo)
        Deprecated.