Fix javadocs, add package.html.

git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@379195 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
ltheussl 2006-02-20 18:36:49 +00:00
parent 99b5475d07
commit dc4c4aa5a7
5 changed files with 123 additions and 42 deletions

View File

@ -36,29 +36,37 @@ import java.util.Locale;
*/ */
public class JxrBean public class JxrBean
{ {
/* /** List of source directories to be cross-referenced. */
* See the doc comments for the corresponding getter/setter methods
*/
private List sourceDirs; private List sourceDirs;
/** The destination directory for jxr output. */
private String destDir; private String destDir;
/** The locale. */
private Locale locale; private Locale locale;
/** The inputEncoding. */
private String inputEncoding; private String inputEncoding;
/** The outputEncoding. */
private String outputEncoding; private String outputEncoding;
/** Used to cross-reference with javadoc pages. */
private String javadocDir; private String javadocDir;
/** Used by DirectoryIndexer. */
private String windowTitle; private String windowTitle;
/** Used by DirectoryIndexer. */
private String docTitle; private String docTitle;
/** Used by DirectoryIndexer. */
private String bottom; private String bottom;
/** Where the navigation templates are located. */
private String templateDir; private String templateDir;
/** Used for logging. */
private final Log log = LogFactory.getLog( JxrBean.class ); private final Log log = LogFactory.getLog( JxrBean.class );
/** /**
@ -71,6 +79,7 @@ public class JxrBean
/** /**
* Starts the cross-referencing and indexing. * Starts the cross-referencing and indexing.
* @throws JxrException JxrException
*/ */
public void xref() public void xref()
throws JxrException throws JxrException
@ -119,7 +128,6 @@ public class JxrBean
/** /**
* Sets a single source directory to be cross-referenced. * Sets a single source directory to be cross-referenced.
*
* @param sourceDir The source directory to be cross-referenced. * @param sourceDir The source directory to be cross-referenced.
*/ */
public void setSourceDir( String sourceDir ) public void setSourceDir( String sourceDir )
@ -133,7 +141,6 @@ public class JxrBean
/** /**
* Adds a directory to the list of those to be cross-referenced. * Adds a directory to the list of those to be cross-referenced.
*
* @param sourceDir The source directory to be cross-referenced. * @param sourceDir The source directory to be cross-referenced.
*/ */
public void addSourceDir( String sourceDir ) public void addSourceDir( String sourceDir )
@ -144,44 +151,52 @@ public class JxrBean
/** /**
* DestDir is the directory in which jxr will write its output * DestDir is the directory in which jxr will write its output
* * @param newDestDir the destination directory for jxr output
* @param destDir the destination directory for jxr output
*/ */
public void setDestDir( String destDir ) public void setDestDir( String newDestDir )
{ {
this.destDir = destDir; this.destDir = newDestDir;
} }
/** /**
* see setDestDir(String) * see setDestDir(String)
* @return destDir
*/ */
public String getDestDir() public String getDestDir()
{ {
return destDir; return destDir;
} }
/**
* Returns the locale.
* @return the locale.
*/
public Locale getLocale() public Locale getLocale()
{ {
return locale; return locale;
} }
public void setLocale( Locale locale ) /**
*Sets the locale.
* @param newLocale the locale.
*/
public void setLocale( Locale newLocale )
{ {
this.locale = locale; this.locale = newLocale;
} }
/** /**
* InputEncoding is the encoding of source files. * InputEncoding is the encoding of source files.
* * @param newInputEncoding encoding of source files
* @param inputEncoding encoding of source files
*/ */
public void setInputEncoding( String inputEncoding ) public void setInputEncoding( String newInputEncoding )
{ {
this.inputEncoding = inputEncoding; this.inputEncoding = newInputEncoding;
} }
/** /**
* see setInputEncoding(String) * see setInputEncoding(String)
* @return inputEncoding
*/ */
public String getInputEncoding() public String getInputEncoding()
{ {
@ -191,16 +206,16 @@ public class JxrBean
/** /**
* OutputEncoding is the encoding of output files. * OutputEncoding is the encoding of output files.
* * @param newOutputEncoding encoding of output files
* @param outputEncoding encoding of output files
*/ */
public void setOutputEncoding( String outputEncoding ) public void setOutputEncoding( String newOutputEncoding )
{ {
this.outputEncoding = outputEncoding; this.outputEncoding = newOutputEncoding;
} }
/** /**
* see setOutputEncoding(String) * see setOutputEncoding(String)
* @return outputEncoding
*/ */
public String getOutputEncoding() public String getOutputEncoding()
{ {
@ -214,15 +229,16 @@ public class JxrBean
* *
* If <code>null</code>, no javadoc link will be added. * If <code>null</code>, no javadoc link will be added.
* *
* @param javadocDir The root directory containing javadocs * @param newJavadocDir The root directory containing javadocs
*/ */
public void setJavadocDir( String javadocDir ) public void setJavadocDir( String newJavadocDir )
{ {
this.javadocDir = javadocDir; this.javadocDir = newJavadocDir;
} }
/** /**
* see setJavadocDir(String) * see setJavadocDir(String)
* @return javadocDir
*/ */
public String getJavadocDir() public String getJavadocDir()
{ {
@ -231,18 +247,17 @@ public class JxrBean
/** /**
* see DirectoryIndexer * see DirectoryIndexer
* * @param newWindowTitle used by DirectoryIndexer
* @param windowTitle used by DirectoryIndexer
* @see DirectoryIndexer#setWindowTitle(String) setWindowTitle(String) * @see DirectoryIndexer#setWindowTitle(String) setWindowTitle(String)
*/ */
public void setWindowTitle( String windowTitle ) public void setWindowTitle( String newWindowTitle )
{ {
this.windowTitle = windowTitle; this.windowTitle = newWindowTitle;
} }
/** /**
* see DirectoryIndexer * see DirectoryIndexer
* * @return windowTitle
* @see DirectoryIndexer#setWindowTitle(String) setWindowTitle(String) * @see DirectoryIndexer#setWindowTitle(String) setWindowTitle(String)
*/ */
public String getWindowTitle() public String getWindowTitle()
@ -252,18 +267,17 @@ public class JxrBean
/** /**
* see DirectoryIndexer * see DirectoryIndexer
* * @param newDocTitle used by DirectoryIndexer
* @param docTitle used by DirectoryIndexer
* @see DirectoryIndexer#setDocTitle(String) setDocTitle(String) * @see DirectoryIndexer#setDocTitle(String) setDocTitle(String)
*/ */
public void setDocTitle( String docTitle ) public void setDocTitle( String newDocTitle )
{ {
this.docTitle = docTitle; this.docTitle = newDocTitle;
} }
/** /**
* see DirectoryIndexer * see DirectoryIndexer
* * @return docTitle
* @see DirectoryIndexer#setDocTitle(String) setDocTitle(String) * @see DirectoryIndexer#setDocTitle(String) setDocTitle(String)
*/ */
public String getDocTitle() public String getDocTitle()
@ -273,18 +287,17 @@ public class JxrBean
/** /**
* see DirectoryIndexer * see DirectoryIndexer
* * @param newBottom used by DirectoryIndexer
* @param bottom used by DirectoryIndexer
* @see DirectoryIndexer#setBottom(String) setBottom(String) * @see DirectoryIndexer#setBottom(String) setBottom(String)
*/ */
public void setBottom( String bottom ) public void setBottom( String newBottom )
{ {
this.bottom = bottom; this.bottom = newBottom;
} }
/** /**
* see DirectoryIndexer * see DirectoryIndexer
* * @return bottom
* @see DirectoryIndexer#setBottom(String) setBottom(String) * @see DirectoryIndexer#setBottom(String) setBottom(String)
*/ */
public String getBottom() public String getBottom()
@ -294,16 +307,16 @@ public class JxrBean
/** /**
* TemplateDir is where the navigation templates are located * TemplateDir is where the navigation templates are located
* * @param newTemplateDir the template directory
* @param templateDir the template directory
*/ */
public void setTemplateDir( String templateDir ) public void setTemplateDir( String newTemplateDir )
{ {
this.templateDir = templateDir; this.templateDir = newTemplateDir;
} }
/** /**
* see setTemplateDir(String) * see setTemplateDir(String)
* @return templateDir
*/ */
public String getTemplateDir() public String getTemplateDir()
{ {

View File

@ -0,0 +1,22 @@
<!--
/*
* Copyright 2006 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-->
<html>
<body>
<p>A bean to interact with the maven JXR code.</p>
</body>
</html>

View File

@ -1,13 +1,35 @@
package org.apache.maven.jxr; package org.apache.maven.jxr;
/* ====================================================================
* Copyright 2001-2004 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* ====================================================================
*/
import junit.framework.TestCase; import junit.framework.TestCase;
/** A test class for JxrBean. */
public class JxrBeanTest public class JxrBeanTest
extends TestCase extends TestCase
{ {
/** A JxrBean. */
private JxrBean jxrBean; private JxrBean jxrBean;
/** Setup.
* @throws Exception Exception
*/
protected void setUp() protected void setUp()
throws Exception throws Exception
{ {
@ -24,6 +46,9 @@ public class JxrBeanTest
jxrBean.setBottom( "copyright" ); jxrBean.setBottom( "copyright" );
} }
/** testXref.
* @throws Exception Exception
*/
public void testXref() public void testXref()
throws Exception throws Exception
{ {

View File

@ -1 +0,0 @@
package org.apache.maven.jxr;

View File

@ -0,0 +1,22 @@
<!--
/*
* Copyright 2006 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-->
<html>
<body>
<p>Test class for JXRBean.</p>
</body>
</html>