public final class JDocDescriptor
extends java.lang.Object
Modifier and Type | Field | Description |
---|---|---|
static short |
AUTHOR |
The author descriptor.
|
static java.lang.String |
DEFAULT_VERSION |
The default version string, broken into parts so CVS does not expand it.
|
static short |
EXCEPTION |
The exception descriptor (exception).
|
static short |
PARAM |
The param descriptor (param).
|
static short |
REFERENCE |
The reference descriptor (see).
|
static short |
RETURN |
The return descriptor (return).
|
static short |
VERSION |
The version descriptor (version).
|
Modifier and Type | Method | Description |
---|---|---|
protected short |
compareTo(JDocDescriptor jdd) |
Compares the type of this JDocDescriptor with the given descriptor.
|
static JDocDescriptor |
createAuthorDesc() |
Creates a new, empty @author JavaDoc descriptor.
|
static JDocDescriptor |
createAuthorDesc(java.lang.String name) |
Creates a new @author JavaDoc descriptor with the provided author name
string.
|
static JDocDescriptor |
createExceptionDesc() |
Creates a new, empty @exception JavaDoc descriptor.
|
static JDocDescriptor |
createExceptionDesc(java.lang.String name,
java.lang.String desc) |
Creates a new @exception JavaDoc descriptor with a given exception
name and a description of when the exception is thrown.
|
static JDocDescriptor |
createParamDesc() |
Creates a new, empty @param JavaDoc descriptor.
|
static JDocDescriptor |
createParamDesc(java.lang.String name,
java.lang.String desc) |
Creates a new @param JavaDoc descriptor with the given parameter
name and description.
|
static JDocDescriptor |
createReferenceDesc() |
Creates a new, empty @reference JavaDoc descriptor.
|
static JDocDescriptor |
createReferenceDesc(java.lang.String name) |
Creates a new @reference JavaDoc descriptor with the provided
reference string.
|
static JDocDescriptor |
createReturnDesc() |
Creates a new, empty @return JavaDoc descriptor.
|
static JDocDescriptor |
createReturnDesc(java.lang.String desc) |
Creates a new @return JavaDoc descriptor with the provided
description of what is returned.
|
static JDocDescriptor |
createVersionDesc() |
Creates a new, empty @version JavaDoc descriptor.
|
static JDocDescriptor |
createVersionDesc(java.lang.String version) |
Creates a new @version JavaDoc descriptor with the provided version
string.
|
java.lang.String |
getDescription() |
Returns the description String.
|
java.lang.String |
getName() |
Returns the name of the object being described.
|
short |
getType() |
Returns the type of this JDocDescriptor.
|
void |
setDescription(java.lang.String desc) |
Sets the description String for this descriptor.
|
void |
setName(java.lang.String name) |
Sets the name value of the JavaDoc field.
|
java.lang.String |
toString() |
public static final java.lang.String DEFAULT_VERSION
public static final short PARAM
public static final short EXCEPTION
public static final short RETURN
public static final short AUTHOR
public static final short VERSION
public static final short REFERENCE
protected short compareTo(JDocDescriptor jdd)
jdd
- A JDocDescriptor to be compared to this one.public static JDocDescriptor createAuthorDesc()
public static JDocDescriptor createAuthorDesc(java.lang.String name)
name
- The author name string.public static JDocDescriptor createExceptionDesc()
public static JDocDescriptor createExceptionDesc(java.lang.String name, java.lang.String desc)
name
- The exception name.desc
- The description of when the exception is thrown.public static JDocDescriptor createParamDesc()
public static JDocDescriptor createParamDesc(java.lang.String name, java.lang.String desc)
name
- The param name.desc
- The param description string.public static JDocDescriptor createReferenceDesc()
public static JDocDescriptor createReferenceDesc(java.lang.String name)
name
- The reference name string.public static JDocDescriptor createReturnDesc()
public static JDocDescriptor createReturnDesc(java.lang.String desc)
desc
- The return description.public static JDocDescriptor createVersionDesc()
public static JDocDescriptor createVersionDesc(java.lang.String version)
version
- The version string.public java.lang.String getDescription()
public java.lang.String getName()
public short getType()
public void setDescription(java.lang.String desc)
desc
- The description of the object being described.public void setName(java.lang.String name)
name
- The name value of the JavaDoc field.public java.lang.String toString()
toString
in class java.lang.Object
Intalio Inc. (C) 1999-2008. All rights reserved http://www.intalio.com