From 9552b189c9861d4eb54bb7a2a569e1447c13332a Mon Sep 17 00:00:00 2001 From: danbress Date: Sat, 7 Feb 2015 11:51:18 -0500 Subject: [PATCH] NIFI-280 - creating some example to test formatting --- .../nifi/documentation/example/FullyDocumentedProcessor.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/nifi/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-documentation/src/test/java/org/apache/nifi/documentation/example/FullyDocumentedProcessor.java b/nifi/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-documentation/src/test/java/org/apache/nifi/documentation/example/FullyDocumentedProcessor.java index a30133ebb4..e1b8634ff6 100644 --- a/nifi/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-documentation/src/test/java/org/apache/nifi/documentation/example/FullyDocumentedProcessor.java +++ b/nifi/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-documentation/src/test/java/org/apache/nifi/documentation/example/FullyDocumentedProcessor.java @@ -53,6 +53,9 @@ public class FullyDocumentedProcessor extends AbstractProcessor { public static final PropertyDescriptor OPTIONAL_PROPERTY = new PropertyDescriptor.Builder() .name("Optional Property").description("This is a property you can use or not").required(false).build(); + + public static final PropertyDescriptor TYPE_PROPERTY = new PropertyDescriptor.Builder() + .name("Type").description("This is the type of something that you can choose. It has several possible values").allowableValues("yes", "no", "maybe", "possibly", "not likely", "longer option name").required(true).build(); public static final Relationship REL_SUCCESS = new Relationship.Builder().name("success") .description("Successful files").build(); @@ -69,6 +72,7 @@ public class FullyDocumentedProcessor extends AbstractProcessor { properties.add(RECURSE); properties.add(POLLING_INTERVAL); properties.add(OPTIONAL_PROPERTY); + properties.add(TYPE_PROPERTY); this.properties = Collections.unmodifiableList(properties); final Set relationships = new HashSet<>();