Java Code Examples for org.apache.nifi.annotation.behavior.InputRequirement#Requirement

The following examples show how to use org.apache.nifi.annotation.behavior.InputRequirement#Requirement . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: AbstractDocumentationWriter.java    From nifi with Apache License 2.0 4 votes vote down vote up
private InputRequirement.Requirement getInputRequirement(final ConfigurableComponent component) {
    final InputRequirement annotation = component.getClass().getAnnotation(InputRequirement.class);
    return annotation == null ? null : annotation.value();
}
 
Example 2
Source File: XmlDocumentationWriter.java    From nifi with Apache License 2.0 4 votes vote down vote up
@Override
protected void writeInputRequirementInfo(final InputRequirement.Requirement requirement) throws IOException {
    writeTextElement("inputRequirement", requirement == null ? null : requirement.name());
}
 
Example 3
Source File: ProcessorDetails.java    From nifi with Apache License 2.0 4 votes vote down vote up
public InputRequirement.Requirement getInputRequirement() {
    return inputRequirement;
}
 
Example 4
Source File: AbstractDocumentationWriter.java    From nifi with Apache License 2.0 votes vote down vote up
protected abstract void writeInputRequirementInfo(InputRequirement.Requirement requirement) throws IOException;