de.h2b.taglets
Class HtmlUtil

java.lang.Object
  extended by de.h2b.taglets.HtmlUtil

@ClassLabel(copyright="Copyright (C) 2008 Hans-Hermann Bode",
            ident="$Id: HtmlUtil.java,v 1.2 2008/11/29 01:34:33 h2b Exp $")
public class HtmlUtil
extends java.lang.Object

A utility class that provides some static methods to produce certain HTML output.

Since:
h2taglets 0.1
Version:
$Revision: 1.2 $, $Date: 2008/11/29 01:34:33 $
Author:
h2b

Method Summary
static java.lang.String anchor(java.lang.String name, java.lang.String text)
          Produces an HTML anchor with given name around a text.
static java.lang.String href(java.lang.String name, java.lang.String text)
          Produces a local HTML reference to an anchor with given name around a text.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

anchor

public static java.lang.String anchor(java.lang.String name,
                                      java.lang.String text)
Produces an HTML anchor with given name around a text.

Parameters:
name - the name of the anchor
text - the surrounded text
Since:
h2taglets 0.1

href

public static java.lang.String href(java.lang.String name,
                                    java.lang.String text)
Produces a local HTML reference to an anchor with given name around a text.

Parameters:
name - the name of the anchor
text - the surrounded text
Since:
h2taglets 0.1


Copyright © 2008 Hans-Hermann Bode, Berlin, Germany. All Rights Reserved.