Programming Tutorials Browser Tutorials Articles Struts Tutorials Hibernate Tutorials

  Tutorial: JCite - Java Source Code Citation System

It really annoys users when examples copied out of the documentation simply don't work. This is why I wrote JCite.

Tutorial Details:

JCite makes it possible to cite snippets of Java source code in your HTML documents - API documentation, for instance. The snippets are copied out of real, live Java class source files, which should be part of the regular build. This guarantees that the cited snippets are always up-to-date. And if you cite from unit tests, you even get the guarantee that they still work correctly.

JCite By Example
This is a quick demo of JCite. You can use it to cite fragments of Java source code in HTML documentation. This is especially useful if the cited fragments are part of automated tests, thus ensuring their correctness.

void sampleMethod()
{

// This is a quick test of JCite.
sampleMethod();
if ("a" == "b") System.out.println( "Oops!" );
try {
int a = 1;
System.out.println( a );
}
finally {
System.out.println( "Done." );
}

}


 

Read Tutorial at: Click here to view the tutorial

Rate Tutorial:
JCite - Java Source Code Citation System

View Tutorial:
JCite - Java Source Code Citation System

Related Tutorials:

Test infect your Enterprise JavaBeans - JavaWorld May 2000
Test infect your Enterprise JavaBeans - JavaWorld May 2000
 
Navigate data with the Mapper framework
Navigate data with the Mapper framework
 
Big designs for small devices
Big designs for small devices
 
Apache Geronimo
Apache Geronimo Welcome to Apache Geronimo, the J2EE server project of the Apache Software Foundation. Please help us make this a world class, certified J2EE container!
 
Code Improvement Through Cyclomatic Complexity
Code Improvement Through Cyclomatic Complexity Software metrics often receive negative criticism, as they are viewed as an exact science, uniformly applicable to all scenarios. True, software metrics are an unbiased, objective measurement of a particul
 
JLAN Server v3.3
JLAN Server v3.3 JLAN Server is a high performance JavaTM based file server supporting Windows file sharing (SMB/CIFS), NFS and FTP protocols. Write your own virtual filesystems with the core server handling all protocol exchanges with the client. Incl
 
The eXo platform
The eXo platform The eXo platform™ software is a powerful Open Source corporate portal and content management system. Users of the platform have a customized single point of access to the company's information system and resources. The use of a corpora
 
Concurrency in JDK 5.0
Concurrency in JDK 5.0 JDK 5.0 added major new support for developing concurrent applications, including JVM changes, new low-level synchronization utilities, and higher-level, thread-safe, high-performance concurrency classes such as thread pools, concu
 
Develop MIDlets using the J2ME MIDP Development for NetBeans IDE 4.0
This release integrates with the J2ME Wireless Toolkit 2.2 to create a powerful environment for developing MIDP 2.0 applications.
 
Q&A: Glenn Weinberg, Vice President of Operating Platforms Group, Elaborates on the Solaris 10 Launch
Increasing the overall Solaris Operating System user base and creating opportunities for customers and partners was the basis for Sun's decision to open source the UNIX-based operating system, says Glenn Weinberg of Sun's Operating Platforms Group.
 
Source Code for Solaris OS Available Through OpenSolaris Program
Sun will release Solaris code under the newly OSI-approved Common Development and Distribution License (CDDL), based on the Mozilla Public License (MPL). You can now find Solaris Dynamic Tracing (DTrace) code on the OpenSolaris.org site, which is open for
 
We are providing Linux CD's for free.
We are providing Linux CD's for free. Linux! Linux! Linux! The Best Place to get your Free Linux CD's Get Your Linux CD's Today Result of 14-Jan-2003 Red Hat 8.0 Free CD Contest What is Linux? Linux is a free Operating System, Which was
 
We are providing Downloadable Version of Gentoo Linux
We are providing Downloadable Version of Gentoo Linux Gentoo Linux Now Available Gentoo Linux CD's We are providing the free downloadable version of Gentoo, which is distributed under GNU public license. You have to pay only for the CD and S&H
 
We are providing Linux CD's for free.
We are providing Linux CD's for free. Mandrake Linux Linux! Linux! Linux! The Best Place to get your Free Linux Mandrake 9.1 CD's Get Your Linux CD's Today What is Linux? Linux is a free Operating System, Which was developed by Linus Trovalds
 
We are providing Linux CD's for free.
We are providing Linux CD's for free. Linux 9.0 Linux! Linux! Linux! Get Your Linux CD's Today What is Linux? Linux is a free Operating System, Which was developed by Linus Trovalds to provide free, open source Unix-like OS. The code for Linux
 
Buy Slackware 10.0 in India from us. Slackware 10.0 is available with us.
Buy Slackware 10.0 in India from us. Slackware 10.0 is available with us. Slackware 10 Linux Now Available Linux Slackware 10 CD's Slackware 10.0 contains the GNOME 2.6.1 (including a collection of pre-compiled GNOME applications), and KDE 3.2.3,
 
Buy SuSe 9.1 Live CDs in India from us. Suse 9.1 Live is available with us.
Buy SuSe 9.1 Live CDs in India from us. Suse 9.1 Live is available with us. SuSe 9.1 Live Linux Now Available SuSe 9.1 Live CD's SuSe Linux 9.1 is Linux that boots from CD ROM. You don't have to install it on your system to use it. Simply insert
 
Buy SuSe 9.1 Professional CDs in India from us. Suse 9.1 Professional is available with us.
Buy SuSe 9.1 Professional CDs in India from us. Suse 9.1 Professional is available with us. SuSe 9.1 Professional Linux Now Available SuSe 9.1 Professional CD's SuSE Linux 9.1 is secure and stable. Its installation routine is now almost fully
 
What is Linux?
What is Linux? What is Linux? Linux is a free Unix-type operating system originally developed by Linus Torvalds and other programmers in 1991 while Linus was a student a the University of Helsinki. He began writing the code based on minix and then
 
Q&A on Open Source Development and the Solaris 10 OS
A Sun VP talks about how open source developers can work closely with Sun. Find out about a pilot program engaging with sys admins and developers to build the Solaris community. For more details visit http://opensolaris.org.
 
Site navigation
 

 

Send your comments, Suggestions or Queries regarding this site at roseindia_net@yahoo.com.

Copyright © 2006. All rights reserved.