Class Departure
java.lang.Object
org.opengis.tools.taglet.AbstractTaglet
org.opengis.tools.taglet.Departure
- All Implemented Interfaces:
Flushable, jdk.javadoc.doclet.Taglet
The
@departure tag for documenting the reasons for a departure from OGC/ISO standard.
The first word after the tag must be the departure category, one of:
constraint- Some departure are required because of Java language constraint. The most common case is the mapping of theunionconstruct, which exists in C/C++ but not in Java.integration- the departure exists for better integration with standard Java library.generalization- the departure exists in order to generalize an aspect of the specification.historic- the departure exists for historical version (e.g. for compatibility with previous GeoAPI version).rename- the departure is a method renaming for better compliance with Java usage, without any change in the method purpose, arguments and return type.
- Since:
- 2.3
- Version:
- 3.0.2
-
Nested Class Summary
Nested classes/interfaces inherited from interface jdk.javadoc.doclet.Taglet
jdk.javadoc.doclet.Taglet.Location -
Field Summary
FieldsModifier and TypeFieldDescriptionThe allowed departure categories.private final Map<String, List<DepartureElement>> All departures declared in javadoc tags. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidflush()Writes to the disk all information collected during the javadoc generation.getName()Returns the name of this custom tag.voidinit(jdk.javadoc.doclet.DocletEnvironment env, jdk.javadoc.doclet.Doclet doclet) Invoked when the doclet initializes this taglet.Given a list ofDocTrees representing this custom tag, returns its string representation.Methods inherited from class AbstractTaglet
getAllowedLocations, isInlineTag, print, textMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface jdk.javadoc.doclet.Taglet
isBlockTag
-
Field Details
-
CATEGORIES
-
departures
All departures declared in javadoc tags. The keys are the category, and the value is a list of departure for that category.
-
-
Constructor Details
-
Departure
public Departure()Constructs a@departuretaglet.
-
-
Method Details
-
init
public void init(jdk.javadoc.doclet.DocletEnvironment env, jdk.javadoc.doclet.Doclet doclet) Invoked when the doclet initializes this taglet. This method registers this taglet for execution of theflush()method after the doclet finished to generate all the javadoc.- Specified by:
initin interfacejdk.javadoc.doclet.Taglet- Overrides:
initin classAbstractTaglet- Parameters:
env- the environment in which the doclet and taglet are running.doclet- the doclet that instantiated this taglet.
-
getName
Returns the name of this custom tag.- Specified by:
getNamein interfacejdk.javadoc.doclet.Taglet- Returns:
- the tag name.
-
toString
Given a list ofDocTrees representing this custom tag, returns its string representation.- Specified by:
toStringin interfacejdk.javadoc.doclet.Taglet- Parameters:
tags- the tags to format.element- the element to which the enclosing comment belongs.- Returns:
- a string representation of the given tags.
-
flush
Writes to the disk all information collected during the javadoc generation. In the case of this taglet, this method generates a summary of all departures. This method does nothing if there is no reported departures.- Specified by:
flushin interfaceFlushable- Throws:
IOException- if an error occurred while writing the summary page.
-