org.schmant.task.template.jdk.javadoc
Class AbstractJavadocTask<T extends AbstractJavadocTask<T>>
java.lang.Object
org.schmant.support.AbstractArgumentChecker
org.schmant.task.stub.AbstractTask<T>
org.schmant.task.stub.AbstractActionTask<T>
org.schmant.task.template.jdk.javadoc.AbstractJavadocTask<T>
- All Implemented Interfaces:
- TaskDependency, ActionTaskConfigurable<T>, ActionTaskSpec<T>, LoggingConfigurable<T>, SourceConfigurable<T>, SourceConfigured, Task, TaskRunnable, TaskSpecification<T>
- Direct Known Subclasses:
- ExtJavadocTask
public abstract class AbstractJavadocTask<T extends AbstractJavadocTask<T>>
- extends AbstractActionTask<T>
Abstract base class for Javadoc task implementations.
- Since:
- 0.5
- Author:
- Karl Gustafsson
Methods inherited from class org.schmant.task.stub.AbstractActionTask |
addSource, addSources, clearSources, getRelativeToBase, getSource, getSources, isSourcesMandatory, setRelativeToBase, setSource, setSources, toString |
Methods inherited from class org.schmant.task.stub.AbstractTask |
cancel, createTask, getDefaultLogFooter, getDefaultLogHeader, getDependencyForTasksScheduledByThisTask, getDependencyObservable, getFailureCause, getLogFooter, getLogHeader, getSatisfiedStateLock, getThis, isCancelled, isDone, isInterrupted, isRunning, isSatisfied, isSuccessful, run, runInternal, setLogFooter, setLogHeader, setReportLevel, setTraceLogging |
AbstractJavadocTask
public AbstractJavadocTask()
getPackageNames
protected final Collection<String> getPackageNames()
isSubPackages
protected final boolean isSubPackages()
getSourceFileNames
protected final Collection<String> getSourceFileNames()
getClasspathEntries
protected final List<Object> getClasspathEntries()
getClasspathDecorators
protected final List<PathDecorator<?,?>> getClasspathDecorators()
getOverview
protected final Object getOverview()
getVisibilityLevel
protected final JavadocVisibilityLevel getVisibilityLevel()
getSourceCodeVersion
protected final String getSourceCodeVersion()
getExcludePackages
protected final Collection<String> getExcludePackages()
getExtDirectories
protected final List<Object> getExtDirectories()
isBreakIterator
protected final boolean isBreakIterator()
getLocale
protected final String getLocale()
getEncoding
protected final String getEncoding()
getDecorators
protected final List<JavadocTaskDecorator> getDecorators()
getClasspathFromDecorators
protected List<Object> getClasspathFromDecorators()
- Get a list of classpath entries from all registered
PathDecorator
:s.
- Returns:
- A list of classpath entries.
isMoreThanOneSourceAllowed
protected boolean isMoreThanOneSourceAllowed()
- Description copied from class:
AbstractActionTask
- Is more than one source object allowed? This method returns
false
. Subclasses override this method to return true
if they
allow several sources.
This method will only be called if AbstractActionTask.isSourcesMandatory()
returns
true
.
- Overrides:
isMoreThanOneSourceAllowed
in class AbstractActionTask<T extends AbstractJavadocTask<T>>
- Returns:
false
, always
validate
protected Collection<String> validate(Report r)
- Description copied from class:
AbstractActionTask
- Override the method inherited from
AbstractTask
to give a validation
error if no source is set (and AbstractActionTask.isSourcesMandatory()
is true
).
Subclasses may override this to add their own validations.
- Overrides:
validate
in class AbstractActionTask<T extends AbstractJavadocTask<T>>
- Parameters:
r
- A report to log warning and debug messages to. Validation errors
should not be logged, though. They are logged later.
- Returns:
- A collection of error messages.
copyProperties
public void copyProperties(T spec)
- Description copied from class:
AbstractActionTask
- Override the implementation from
AbstractTask
to copy the
source properties. Subclasses must override this to copy their own
properties.
- Specified by:
copyProperties
in interface TaskSpecification<T extends AbstractJavadocTask<T>>
- Overrides:
copyProperties
in class AbstractActionTask<T extends AbstractJavadocTask<T>>
- Parameters:
spec
- The specification to copy properties to.