alvinalexander.com | career | drupal | java | mac | mysql | perl | scala | uml | unix  

Java example source code file (AnchorTest.java)

This example Java source code file (AnchorTest.java) is included in the alvinalexander.com "Java Source Code Warehouse" project. The intent of this project is to help you "Learn Java by Example" TM.

Learn more about this Java project at its project page.

Java - Java tags/keywords

anchortest

The AnchorTest.java Java example source code

/*
 * @test /nodynamiccopyright/
 * @bug 8004832
 * @summary Add new doclint package
 * @build DocLintTester
 * @run main DocLintTester -ref AnchorTest.out AnchorTest.java
 */

/** */
public class AnchorTest {
    // tests for <a name=value>

    /**
     * <a name=foo>
     */
    public void a_name_foo() { }

    /**
     * <a name=foo>
     */
    public void a_name_already_defined() { }

    /**
     * <a name=>
     */
    public void a_name_empty() { }

    /**
     * <a name=123 >
     */
    public void a_name_invalid() { }

    /**
     * <a name >
     */
    public void a_name_missing() { }

    // tests for <a id=value>

    /**
     * <a id=a_id_foo>
     */
    public void a_id_foo() { }

    /**
     * <a id=foo>
     */
    public void a_id_already_defined() { }

    /**
     * <a id=>
     */
    public void a_id_empty() { }

    /**
     * <a id=123 >
     */
    public void a_id_invalid() { }

    /**
     * <a id >
     */
    public void a_id_missing() { }

    // tests for id=value on non-<a> tags

    /**
     * <p id=p_id_foo>text

*/ public void p_id_foo() { } /** * <p id=foo>text

*/ public void p_id_already_defined() { } /** * <p id=>text

*/ public void p_id_empty() { } /** * <p id=123 >text

*/ public void p_id_invalid() { } /** * <p id >text

*/ public void p_id_missing() { } }

Other Java examples (source code examples)

Here is a short list of links related to this Java AnchorTest.java source code file:

... this post is sponsored by my books ...

#1 New Release!

FP Best Seller

 

new blog posts

 

Copyright 1998-2024 Alvin Alexander, alvinalexander.com
All Rights Reserved.

A percentage of advertising revenue from
pages under the /java/jwarehouse URI on this website is
paid back to open source projects.