String... type);
/**
- * Answers a list of all features stored, optionally restricted to specified
- * types, in no particular guaranteed order
+ * Answers a list of all features stored, in no particular guaranteed order.
+ * Positional features may optionally be restricted to specified types, but
+ * all non-positional features (if any) are always returned.
+ * <p>
+ * To filter non-positional features by type, use
+ * getNonPositionalFeatures(type).
*
* @param type
* @return
features = store.getAllFeatures();
assertEquals(features.size(), 5);
assertTrue(features.contains(sf5));
+
+ /*
+ * select by type does not apply to non-positional features
+ */
features = store.getAllFeatures("Cath");
- assertTrue(features.isEmpty());
+ assertEquals(features.size(), 1);
+ assertTrue(features.contains(sf3));
+
features = store.getAllFeatures("Pfam", "Cath", "Metal");
assertEquals(features.size(), 3);
assertTrue(features.contains(sf1));