Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/org.eclipse.osee.template.engine/src/org/eclipse/osee/template/engine/IdentifiableLongOptionsRule.java')
-rw-r--r--plugins/org.eclipse.osee.template.engine/src/org/eclipse/osee/template/engine/IdentifiableLongOptionsRule.java35
1 files changed, 35 insertions, 0 deletions
diff --git a/plugins/org.eclipse.osee.template.engine/src/org/eclipse/osee/template/engine/IdentifiableLongOptionsRule.java b/plugins/org.eclipse.osee.template.engine/src/org/eclipse/osee/template/engine/IdentifiableLongOptionsRule.java
new file mode 100644
index 00000000000..b48da4444a9
--- /dev/null
+++ b/plugins/org.eclipse.osee.template.engine/src/org/eclipse/osee/template/engine/IdentifiableLongOptionsRule.java
@@ -0,0 +1,35 @@
+/*******************************************************************************
+ * Copyright (c) 2013 Boeing.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Boeing - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.osee.template.engine;
+
+import org.eclipse.osee.framework.jdk.core.type.Identity;
+import org.eclipse.osee.framework.jdk.core.type.Named;
+
+/**
+ * @author Donald G. Dunne
+ */
+public final class IdentifiableLongOptionsRule<T extends Identity<Long> & Named> extends OptionsRule<T> {
+ Iterable<T> options;
+
+ public IdentifiableLongOptionsRule(String ruleName, Iterable<T> options) {
+ this(ruleName, options, null);
+ }
+
+ public IdentifiableLongOptionsRule(String ruleName, Iterable<T> options, String listId) {
+ super(ruleName, listId);
+ this.options = options;
+ }
+
+ @Override
+ public Iterable<T> getOptions() {
+ return options;
+ }
+} \ No newline at end of file

Back to the top