public class XmlDocumentationWriter extends AbstractDocumentationWriter
Modifier and Type | Class and Description |
---|---|
private static interface |
XmlDocumentationWriter.ElementWriter<T> |
Modifier and Type | Field and Description |
---|---|
private XMLStreamWriter |
writer |
Constructor and Description |
---|
XmlDocumentationWriter(OutputStream out) |
XmlDocumentationWriter(XMLStreamWriter writer) |
getDescription, getDynamicProperties, getExtensionType, getTags, initialize, initialize, initialize, initialize, write, write, writeBody
private final XMLStreamWriter writer
public XmlDocumentationWriter(OutputStream out) throws XMLStreamException
XMLStreamException
public XmlDocumentationWriter(XMLStreamWriter writer)
protected void writeHeader(ConfigurableComponent component) throws IOException
writeHeader
in class AbstractDocumentationWriter
IOException
protected void writeExtensionName(String extensionName) throws IOException
writeExtensionName
in class AbstractDocumentationWriter
IOException
protected void writeExtensionType(ExtensionType extensionType) throws IOException
writeExtensionType
in class AbstractDocumentationWriter
IOException
protected void writeDeprecationNotice(DeprecationNotice deprecationNotice) throws IOException
writeDeprecationNotice
in class AbstractDocumentationWriter
IOException
private void writeDeprecationNotice(String reason, Set<String> alternatives) throws IOException
IOException
protected void writeDescription(String description) throws IOException
writeDescription
in class AbstractDocumentationWriter
IOException
protected void writeTags(List<String> tags) throws IOException
writeTags
in class AbstractDocumentationWriter
IOException
protected void writeProperties(List<PropertyDescriptor> properties, Map<String,ServiceAPI> propertyServices) throws IOException
writeProperties
in class AbstractDocumentationWriter
IOException
private void writeProperty(PropertyDescriptor property, Map<String,ServiceAPI> propertyServices) throws IOException
IOException
private void writeAllowableValue(AllowableValue allowableValue) throws IOException
IOException
protected void writeDynamicProperties(List<DynamicProperty> dynamicProperties) throws IOException
writeDynamicProperties
in class AbstractDocumentationWriter
IOException
private void writeDynamicProperty(DynamicProperty property) throws IOException
IOException
protected void writeStatefulInfo(Stateful stateful) throws IOException
writeStatefulInfo
in class AbstractDocumentationWriter
IOException
protected void writeRestrictedInfo(Restricted restricted) throws IOException
writeRestrictedInfo
in class AbstractDocumentationWriter
IOException
private void writeRestriction(Restriction restriction) throws IOException
IOException
protected void writeInputRequirementInfo(InputRequirement.Requirement requirement) throws IOException
writeInputRequirementInfo
in class AbstractDocumentationWriter
IOException
protected void writeSystemResourceConsiderationInfo(List<SystemResourceConsideration> considerations) throws IOException
writeSystemResourceConsiderationInfo
in class AbstractDocumentationWriter
IOException
private void writeSystemResourceConsideration(SystemResourceConsideration consideration) throws IOException
IOException
protected void writeSeeAlso(SeeAlso seeAlso) throws IOException
writeSeeAlso
in class AbstractDocumentationWriter
IOException
protected void writeRelationships(Set<Relationship> relationships) throws IOException
writeRelationships
in class AbstractDocumentationWriter
IOException
protected void writeDynamicRelationship(DynamicRelationship dynamicRelationship) throws IOException
writeDynamicRelationship
in class AbstractDocumentationWriter
IOException
protected void writeReadsAttributes(List<ReadsAttribute> attributes) throws IOException
writeReadsAttributes
in class AbstractDocumentationWriter
IOException
private void writeReadsAttribute(ReadsAttribute attribute) throws IOException
IOException
protected void writeWritesAttributes(List<WritesAttribute> attributes) throws IOException
writeWritesAttributes
in class AbstractDocumentationWriter
IOException
private void writeWritesAttribute(WritesAttribute attribute) throws IOException
IOException
protected void writeFooter(ConfigurableComponent component) throws IOException
writeFooter
in class AbstractDocumentationWriter
IOException
protected void writeProvidedServices(Collection<ServiceAPI> providedServices) throws IOException
writeProvidedServices
in class AbstractDocumentationWriter
IOException
private void writeProvidedService(ServiceAPI service) throws IOException
IOException
private <T> void writeArray(String tagName, Collection<T> values, XmlDocumentationWriter.ElementWriter<T> writer) throws IOException
IOException
private void writeTextArray(String outerTagName, String elementTagName, Collection<String> values) throws IOException
IOException
private <T> void writeTextArray(String outerTagName, String elementTagName, Collection<T> values, Function<T,String> transform) throws IOException
IOException
private void writeText(String text) throws IOException
IOException
private void writeEmptyElement(String elementName) throws IOException
IOException
private void writeStartElement(String elementName) throws IOException
IOException
private void writeEndElement() throws IOException
IOException
private void writeTextElement(String name, String text) throws IOException
IOException
private void writeBooleanElement(String name, boolean value) throws IOException
IOException
Copyright © 2019 Apache NiFi Project. All rights reserved.