public abstract class Documentation
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected boolean |
deprecated |
protected java.lang.String |
description |
protected java.lang.String |
name |
protected java.lang.String |
type |
protected java.lang.Class<?> |
typeClass |
Modifier | Constructor and Description |
---|---|
protected |
Documentation(java.lang.Class<?> typeClass,
java.lang.String type,
java.lang.String name,
java.lang.String description)
Create a documentation object with the given type, name, and description
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
java.lang.String |
getDescription()
Returns the description of the documented object
|
java.lang.String |
getName()
Returns the name of the documented object
|
java.lang.String |
getNonNullDescription()
Returns the description of the documented object (or empty string if we have none)
|
java.lang.String |
getType()
Returns the type of the documented object
|
java.lang.Class<?> |
getTypeClass()
Returns the type of the object as a class, if known, or null otherwise
|
int |
hashCode() |
boolean |
isDeprecated()
Returns whether this item is marked as deprecated
|
void |
setDeprecated(boolean deprecated)
Sets whether of not this is deprecated
|
java.lang.String |
toString() |
@NotNull protected java.lang.String name
@NotNull protected java.lang.String type
@Nullable protected java.lang.Class<?> typeClass
@Nullable protected java.lang.String description
protected boolean deprecated
protected Documentation(@Nullable java.lang.Class<?> typeClass, @NotNull java.lang.String type, @NotNull java.lang.String name, @Nullable java.lang.String description)
typeClass
- The actual class of the documented object if knowntype
- The type of the object this documentsname
- The name of the object this documentsdescription
- A description of the object this documents (as HTML)@NotNull public java.lang.String getName()
@NotNull public java.lang.String getType()
@Nullable public java.lang.Class<?> getTypeClass()
@Nullable public java.lang.String getDescription()
@NotNull public java.lang.String getNonNullDescription()
public void setDeprecated(boolean deprecated)
deprecated
- Whether or not this is deprecatedpublic boolean isDeprecated()
@NotNull public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object