Class MaisDocRemoteClass

java.lang.Object
org.x4o.maisdoc.model.MaisDocRemoteClass

public class MaisDocRemoteClass extends Object
ApiDocRemoteUrl defines the javadoc package-list remote url.
Version:
1.0 Aug 15, 2013
Author:
Willem Cazander
  • Field Details

  • Constructor Details

    • MaisDocRemoteClass

      public MaisDocRemoteClass(String docUrl)
      Creates the ApiDocRemoteClass with a javadoc url to fetch the package-list from.
      Parameters:
      docUrl - The remote javadoc base url.
    • MaisDocRemoteClass

      public MaisDocRemoteClass(String docUrl, String packageListUrl)
      Creates the ApiDocRemoteClass with a javadoc url. but fetched the package-list from the packageListUrl.
      Parameters:
      docUrl - The remote javadoc base url.
      packageListUrl - The remote/local package-list url.
  • Method Details

    • getRemoteUrl

      public String getRemoteUrl(Class<?> cls)
      Returns remote url for a class or null if no remote package excists for the class.
      Parameters:
      cls - The class to get the remote url for.
      Returns:
      The remote url of the class requested or null if none if found.
    • parseRemotePackageList

      public void parseRemotePackageList() throws IOException
      Fetches and parses the package-list file.
      Throws:
      IOException - If error happend.
    • getDocUrl

      public String getDocUrl()
      Returns:
      the docUrl
    • setDocUrl

      public void setDocUrl(String docUrl)
      Parameters:
      docUrl - the docUrl to set
    • getPackageListUrl

      public String getPackageListUrl()
      Returns:
      the packageListUrl
    • setPackageListUrl

      public void setPackageListUrl(String packageListUrl)
      Parameters:
      packageListUrl - the packageListUrl to set
    • getPackageList

      public List<String> getPackageList()
      Returns:
      the packageList