JPF 1.5.1

org.java.plugin.tools.docgen
Class DocGenerator.Tool

java.lang.Object
  extended by org.java.plugin.tools.docgen.DocGenerator.Tool
Enclosing class:
DocGenerator

public static final class DocGenerator.Tool
extends java.lang.Object

Utility class to be used from JXP templates.

Version:
$Id$

Constructor Summary
protected DocGenerator.Tool(java.lang.String aRelativePath)
           
 
Method Summary
 java.lang.String getLink(Documentation.Reference<?> ref)
           
 boolean isAbsoluteUrl(java.lang.String url)
           
 java.lang.String processDocText(java.lang.String text)
          Substitutes all ${relativePath} variables with their values.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DocGenerator.Tool

protected DocGenerator.Tool(java.lang.String aRelativePath)
Method Detail

getLink

public java.lang.String getLink(Documentation.Reference<?> ref)
Parameters:
ref - documentation reference element
Returns:
link to be used in "href" attribute

isAbsoluteUrl

public boolean isAbsoluteUrl(java.lang.String url)
Parameters:
url - an URL to check
Returns:
true if given link is an absolute URL

processDocText

public java.lang.String processDocText(java.lang.String text)
Substitutes all ${relativePath} variables with their values.

Parameters:
text - text to be processed
Returns:
processed documentation text

JPF 1.5.1

Copyright © 2004-2007 Dmitry Olshansky. All Rights Reserved.