* the tag is a leaf tag, that is, it will not return subtags
* with {@link BasicSearchable#fillTag(SearchableTag)} but will
* return stories with
- * {@link BasicSearchable#search(SearchableTag)}
+ * {@link BasicSearchable#search(SearchableTag, int)}
*/
public SearchableTag(String id, String name, boolean leaf) {
this(id, name, leaf, true);
* the tag is a leaf tag, that is, it will not return subtags
* with {@link BasicSearchable#fillTag(SearchableTag)} but will
* return stories with
- * {@link BasicSearchable#search(SearchableTag)}
+ * {@link BasicSearchable#search(SearchableTag, int)}
* @param complete
* the tag {@link SearchableTag#isComplete()} or not
*/
return name;
}
+ /**
+ * The fully qualified tag name, which can be displayed to the user.
+ * <p>
+ * It will display all the tags that lead to this one as well as this one.
+ *
+ * @return the fully qualified name
+ */
+ public String getFqName() {
+ if (parent != null) {
+ return parent.getFqName() + " / " + name;
+ }
+
+ return name;
+ }
+
/**
* Non-complete, non-leaf tags can still be completed via a
* {@link BasicSearchable#fillTag(SearchableTag)} operation from a
/**
* This tag is a leaf tag, that is, it will not return other subtags with
* {@link BasicSearchable#fillTag(SearchableTag)} but will return stories
- * with {@link BasicSearchable#search(SearchableTag)}.
+ * with {@link BasicSearchable#search(SearchableTag, int)}.
*
* @return TRUE if it is
*/
/**
* This tag is a leaf tag, that is, it will not return other subtags with
* {@link BasicSearchable#fillTag(SearchableTag)} but will return stories
- * with {@link BasicSearchable#search(SearchableTag)}.
+ * with {@link BasicSearchable#search(SearchableTag, int)}.
* <p>
* Will reset the number of pages to -1.
*