public abstract class AbstractDocumentationWriter extends Object implements ExtensionDocumentationWriter
Constructor and Description |
---|
AbstractDocumentationWriter() |
public void initialize(ConfigurableComponent component)
ExtensionDocumentationWriter
initialize
in interface ExtensionDocumentationWriter
component
- the component to initializeprotected void initialize(Processor processor)
protected void initialize(ControllerService service) throws InitializationException
InitializationException
protected void initialize(ReportingTask reportingTask) throws InitializationException
InitializationException
public final void write(ConfigurableComponent component) throws IOException
ExtensionDocumentationWriter
write
in interface ExtensionDocumentationWriter
component
- 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
ExtensionDocumentationWriter
write
in interface ExtensionDocumentationWriter
component
- 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
IOException
protected 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
IOException
protected abstract void writeExtensionName(String extensionName) throws IOException
IOException
protected abstract void writeExtensionType(ExtensionType extensionType) throws IOException
IOException
protected abstract void writeDeprecationNotice(DeprecationNotice deprecationNotice) throws IOException
IOException
protected abstract void writeDescription(String description) throws IOException
IOException
protected abstract void writeTags(List<String> tags) throws IOException
IOException
protected abstract void writeProperties(List<PropertyDescriptor> properties, Map<String,ServiceAPI> propertyServices) throws IOException
IOException
protected abstract void writeDynamicProperties(List<DynamicProperty> dynamicProperties) throws IOException
IOException
protected abstract void writeStatefulInfo(Stateful stateful) throws IOException
IOException
protected abstract void writeRestrictedInfo(Restricted restricted) throws IOException
IOException
protected abstract void writeInputRequirementInfo(InputRequirement.Requirement requirement) throws IOException
IOException
protected abstract void writeSystemResourceConsiderationInfo(List<SystemResourceConsideration> considerations) throws IOException
IOException
protected abstract void writeSeeAlso(SeeAlso seeAlso) throws IOException
IOException
protected abstract void writeRelationships(Set<Relationship> relationships) throws IOException
IOException
protected abstract void writeDynamicRelationship(DynamicRelationship dynamicRelationship) throws IOException
IOException
protected abstract void writeReadsAttributes(List<ReadsAttribute> attributes) throws IOException
IOException
protected abstract void writeWritesAttributes(List<WritesAttribute> attributes) throws IOException
IOException
protected abstract void writeProvidedServices(Collection<ServiceAPI> providedServices) throws IOException
IOException
protected abstract void writeFooter(ConfigurableComponent component) throws IOException
IOException
Copyright © 2021 Apache NiFi Project. All rights reserved.