public abstract class AbstractDocumentationWriter extends Object implements ExtensionDocumentationWriter
| Constructor and Description |
|---|
AbstractDocumentationWriter() |
| Modifier and Type | Method and Description |
|---|---|
protected String |
getDescription(ConfigurableComponent component) |
protected List<DynamicProperty> |
getDynamicProperties(ConfigurableComponent configurableComponent) |
private DynamicRelationship |
getDynamicRelationship(Processor processor) |
protected ExtensionType |
getExtensionType(ConfigurableComponent component) |
private InputRequirement.Requirement |
getInputRequirement(ConfigurableComponent component) |
private List<ReadsAttribute> |
getReadsAttributes(Processor processor) |
private List<SystemResourceConsideration> |
getSystemResourceConsiderations(ConfigurableComponent component) |
protected List<String> |
getTags(ConfigurableComponent component) |
private List<WritesAttribute> |
getWritesAttributes(Processor processor) |
void |
initialize(ConfigurableComponent component)
Calls initialize on the component.
|
protected void |
initialize(ControllerService service) |
protected void |
initialize(ParameterProvider parameterProvider) |
protected void |
initialize(Processor processor) |
protected void |
initialize(ReportingTask reportingTask) |
void |
write(ConfigurableComponent component)
Write the documentation for the given component.
|
void |
write(ConfigurableComponent component,
Collection<ServiceAPI> providedServices,
Map<String,ServiceAPI> propertyServices)
Writes the documentation for the given component.
|
protected void |
writeBody(ConfigurableComponent component,
Map<String,ServiceAPI> propertyServices) |
protected abstract void |
writeDefaultSchedule(DefaultSchedule defaultSchedule) |
protected abstract void |
writeDefaultSettings(DefaultSettings defaultSettings) |
protected abstract void |
writeDeprecationNotice(DeprecationNotice deprecationNotice) |
protected abstract void |
writeDescription(String description) |
protected abstract void |
writeDynamicProperties(List<DynamicProperty> dynamicProperties) |
protected abstract void |
writeDynamicRelationship(DynamicRelationship dynamicRelationship) |
protected abstract void |
writeEventDriven(EventDriven eventDriven) |
protected abstract void |
writeExtensionName(String extensionName) |
protected abstract void |
writeExtensionType(ExtensionType extensionType) |
protected abstract void |
writeFooter(ConfigurableComponent component) |
protected abstract void |
writeHeader(ConfigurableComponent component) |
protected abstract void |
writeInputRequirementInfo(InputRequirement.Requirement requirement) |
protected abstract void |
writePrimaryNodeOnly(PrimaryNodeOnly primaryNodeOnly) |
protected abstract void |
writeProperties(List<PropertyDescriptor> properties,
Map<String,ServiceAPI> propertyServices) |
protected abstract void |
writeProvidedServices(Collection<ServiceAPI> providedServices) |
protected abstract void |
writeReadsAttributes(List<ReadsAttribute> attributes) |
protected abstract void |
writeRelationships(Set<Relationship> relationships) |
protected abstract void |
writeRestrictedInfo(Restricted restricted) |
protected abstract void |
writeSeeAlso(SeeAlso seeAlso) |
protected abstract void |
writeSideEffectFree(SideEffectFree sideEffectFree) |
protected abstract void |
writeStatefulInfo(Stateful stateful) |
protected abstract void |
writeSupportsBatching(SupportsBatching supportsBatching) |
protected abstract void |
writeSupportsSensitiveDynamicProperties(SupportsSensitiveDynamicProperties supportsSensitiveDynamicProperties) |
protected abstract void |
writeSystemResourceConsiderationInfo(List<SystemResourceConsideration> considerations) |
protected abstract void |
writeTags(List<String> tags) |
protected abstract void |
writeTriggerSerially(TriggerSerially triggerSerially) |
protected abstract void |
writeTriggerWhenAnyDestinationAvailable(TriggerWhenAnyDestinationAvailable triggerWhenAnyDestinationAvailable) |
protected abstract void |
writeTriggerWhenEmpty(TriggerWhenEmpty triggerWhenEmpty) |
protected abstract void |
writeWritesAttributes(List<WritesAttribute> attributes) |
public void initialize(ConfigurableComponent component)
ExtensionDocumentationWriterinitialize in interface ExtensionDocumentationWritercomponent - the component to initializeprotected void initialize(Processor processor)
protected void initialize(ControllerService service) throws InitializationException
InitializationExceptionprotected void initialize(ReportingTask reportingTask) throws InitializationException
InitializationExceptionprotected void initialize(ParameterProvider parameterProvider) throws InitializationException
InitializationExceptionpublic final void write(ConfigurableComponent component) throws IOException
ExtensionDocumentationWriterwrite in interface ExtensionDocumentationWritercomponent - the component to documentIOException - if an error occurs writing the documentationpublic final void write(ConfigurableComponent component, Collection<ServiceAPI> providedServices, Map<String,ServiceAPI> propertyServices) throws IOException
ExtensionDocumentationWriterwrite in interface ExtensionDocumentationWritercomponent - the component to documentprovidedServices - the service APIs implemented by the componentpropertyServices - the service APIs required by the property descriptors of the componentIOException - if an error occurs writing the documentationprotected void writeBody(ConfigurableComponent component, Map<String,ServiceAPI> propertyServices) throws IOException
IOExceptionprotected String getDescription(ConfigurableComponent component)
protected List<String> getTags(ConfigurableComponent component)
protected List<DynamicProperty> getDynamicProperties(ConfigurableComponent configurableComponent)
private DynamicRelationship getDynamicRelationship(Processor processor)
private List<ReadsAttribute> getReadsAttributes(Processor processor)
private List<WritesAttribute> getWritesAttributes(Processor processor)
private InputRequirement.Requirement getInputRequirement(ConfigurableComponent component)
private List<SystemResourceConsideration> getSystemResourceConsiderations(ConfigurableComponent component)
protected ExtensionType getExtensionType(ConfigurableComponent component)
protected abstract void writeHeader(ConfigurableComponent component) throws IOException
IOExceptionprotected abstract void writeExtensionName(String extensionName) throws IOException
IOExceptionprotected abstract void writeExtensionType(ExtensionType extensionType) throws IOException
IOExceptionprotected abstract void writeDeprecationNotice(DeprecationNotice deprecationNotice) throws IOException
IOExceptionprotected abstract void writeDescription(String description) throws IOException
IOExceptionprotected abstract void writeTags(List<String> tags) throws IOException
IOExceptionprotected abstract void writeProperties(List<PropertyDescriptor> properties, Map<String,ServiceAPI> propertyServices) throws IOException
IOExceptionprotected abstract void writeDynamicProperties(List<DynamicProperty> dynamicProperties) throws IOException
IOExceptionprotected abstract void writeStatefulInfo(Stateful stateful) throws IOException
IOExceptionprotected abstract void writeRestrictedInfo(Restricted restricted) throws IOException
IOExceptionprotected abstract void writeInputRequirementInfo(InputRequirement.Requirement requirement) throws IOException
IOExceptionprotected abstract void writeSystemResourceConsiderationInfo(List<SystemResourceConsideration> considerations) throws IOException
IOExceptionprotected abstract void writeSeeAlso(SeeAlso seeAlso) throws IOException
IOExceptionprotected abstract void writeDefaultSchedule(DefaultSchedule defaultSchedule) throws IOException
IOExceptionprotected abstract void writeRelationships(Set<Relationship> relationships) throws IOException
IOExceptionprotected abstract void writeDynamicRelationship(DynamicRelationship dynamicRelationship) throws IOException
IOExceptionprotected abstract void writeReadsAttributes(List<ReadsAttribute> attributes) throws IOException
IOExceptionprotected abstract void writeWritesAttributes(List<WritesAttribute> attributes) throws IOException
IOExceptionprotected abstract void writeTriggerSerially(TriggerSerially triggerSerially) throws IOException
IOExceptionprotected abstract void writeTriggerWhenEmpty(TriggerWhenEmpty triggerWhenEmpty) throws IOException
IOExceptionprotected abstract void writeTriggerWhenAnyDestinationAvailable(TriggerWhenAnyDestinationAvailable triggerWhenAnyDestinationAvailable) throws IOException
IOExceptionprotected abstract void writeSupportsBatching(SupportsBatching supportsBatching) throws IOException
IOExceptionprotected abstract void writeSupportsSensitiveDynamicProperties(SupportsSensitiveDynamicProperties supportsSensitiveDynamicProperties) throws IOException
IOExceptionprotected abstract void writeEventDriven(EventDriven eventDriven) throws IOException
IOExceptionprotected abstract void writePrimaryNodeOnly(PrimaryNodeOnly primaryNodeOnly) throws IOException
IOExceptionprotected abstract void writeSideEffectFree(SideEffectFree sideEffectFree) throws IOException
IOExceptionprotected abstract void writeDefaultSettings(DefaultSettings defaultSettings) throws IOException
IOExceptionprotected abstract void writeProvidedServices(Collection<ServiceAPI> providedServices) throws IOException
IOExceptionprotected abstract void writeFooter(ConfigurableComponent component) throws IOException
IOExceptionCopyright © 2023 Apache NiFi Project. All rights reserved.