lexx.plugins.javadoc
Class JavaDoc

java.lang.Object
  |
  +--lexx.plugins.javadoc.JavaDoc

public final class JavaDoc
extends java.lang.Object

Factory class for web address

Copyright (c) 2002-2003

Since:
14/02/2003
Version:
1.0
Author:
Mohammed Imran

Constructor Summary
JavaDoc()
           
 
Method Summary
static boolean checkAddress(java.lang.String webAddress)
          Check if address is valid
static java.lang.String getAddress(java.lang.Class c)
          Gets the web adress from the javadoc of an object
static java.lang.String getAddress(java.lang.Class c, java.lang.reflect.Field f)
          Gets the web adress from the javadoc of a field
static java.lang.String getAddress(java.lang.Class c, java.lang.reflect.Method m)
          Gets the web adress from the javadoc of a method
static java.lang.String getClassURL(java.lang.String classFileName)
           
static java.lang.String getHomeAddress()
          Users own javadoc
static java.lang.String getJDKaddress()
          Suns javadoc web address
static void setupJavaDoc()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JavaDoc

public JavaDoc()
Method Detail

getAddress

public static java.lang.String getAddress(java.lang.Class c,
                                          java.lang.reflect.Method m)
Gets the web adress from the javadoc of a method

Parameters:
c - - the class containing the method
m - - the method you wish to display the java doc for
Returns:
web address

getAddress

public static java.lang.String getAddress(java.lang.Class c,
                                          java.lang.reflect.Field f)
Gets the web adress from the javadoc of a field

Parameters:
c - - the class containing the field
f - - the field you wish to display the java doc for
Returns:
web address

getAddress

public static java.lang.String getAddress(java.lang.Class c)
Gets the web adress from the javadoc of an object

Parameters:
c - - the class you wish to display
Returns:
web address

getJDKaddress

public static java.lang.String getJDKaddress()
Suns javadoc web address

Returns:
Suns javadoc web address

getHomeAddress

public static java.lang.String getHomeAddress()
Users own javadoc

Returns:
Users own javadoc

checkAddress

public static boolean checkAddress(java.lang.String webAddress)
Check if address is valid

Parameters:
webAddress - web address you wish to view
Returns:
if the address exists or not

setupJavaDoc

public static void setupJavaDoc()

getClassURL

public static java.lang.String getClassURL(java.lang.String classFileName)