Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / February 2007

Tip: Looking for answers? Try searching our database.

Javadoc including "java.lang.String" instead of just "String" for return values

Thread view: 
Randolf Richardson - 02 Feb 2007 01:26 GMT
    How does one get the javadoc utility to show just "String" instead of  
"java.lang.String" in its output?

    I've noticed that, for example, Sun's "awt.TextField.ParamString()"  
method is documented as follows, and I'd like to make mine appear this way  
for extremely well-known objects such as "String" as well:

        protected  String    paramString()

    Thanks in advance.

Signature

Randolf Richardson - kingpin+nntp@lumbercartel.ca
The Lumber Cartel, local 42 (Canadian branch)
http://www.lumbercartel.ca/

Thomas Fritsch - 02 Feb 2007 10:21 GMT
>     How does one get the javadoc utility to show just "String" instead
> of  "java.lang.String" in its output?
[quoted text clipped - 4 lines]
>
>         protected  String    paramString()

You can use the "-link" (or may be the "linkoffline") option in your
javadoc-run. This will for example generate
        protected  String    paramString()
where "String" is a HTML-link to the JavaDoc page of java.lang.String.

See http://java.sun.com/j2se/1.5.0/docs/tooldocs/windows/javadoc.html#link
http://java.sun.com/j2se/1.5.0/docs/tooldocs/windows/javadoc.html#linkoffline

Signature

Thomas

Randolf Richardson - 03 Feb 2007 07:14 GMT
>>    How does one get the javadoc utility to show just "String" instead  
>> of  "java.lang.String" in its output?
[quoted text clipped - 13 lines]
> http://java.sun.com/j2se/1.5.0/docs/tooldocs/windows/javadoc.html#link
> http://java.sun.com/j2se/1.5.0/docs/tooldocs/windows/javadoc.html#linkoffline

    Thanks for the suggestion, and for the URI.  It looks like "-link" is not  
exactly what I'm after, but in reading the document you referenced I found  
my answer -- for those who might be interested, the "-noqualifier"  
parameter solved my problem (specifically, I'm using "-noqualifier  
java.lang" since this section of the Java API is so well-known).

    Your help is greatly appreciated, and was what I needed to get the right  
solution.  Thanks again!

Signature

Randolf Richardson - kingpin+nntp@lumbercartel.ca
The Lumber Cartel, local 42 (Canadian branch)
http://www.lumbercartel.ca/



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.