public class ControlledVocabularyTag
extends javax.servlet.jsp.tagext.TagSupport
| Modifier and Type | Field and Description |
|---|---|
Map<String,Document> |
controlledVocabularies |
| Constructor and Description |
|---|
ControlledVocabularyTag() |
| Modifier and Type | Method and Description |
|---|---|
int |
doEndTag()
End processing tag
|
int |
doStartTag()
Process tag
|
Document |
filterVocabulary(Document vocabulary,
String vocabularyPrunningXSLT,
String filter)
Applies a filter to the provided vocabulary, i.e.
|
String |
getFilter()
Gets the filter provided as parameter to the tag
|
String |
getVocabulary()
Gets the name of the vocabulary to be displayed
|
boolean |
isAllowMultipleSelection()
Returns the value of the multiple selection parameter
|
String |
renderVocabularyAsHTML(Document vocabulary,
String controlledVocabulary2HtmlXSLT,
boolean allowMultipleSelection,
String contextPath)
Renders a taxonomy as HTML by applying a stylesheet.
|
void |
setAllowMultipleSelection(boolean allowMultipleSelection)
Defines if we want to be able to select multiple terms of the taxonomy
|
void |
setFilter(String filter)
Sets the filter
|
void |
setVocabulary(String vocabulary)
Sets the name of the vocabulary to be displayed.
|
public int doStartTag()
throws javax.servlet.jsp.JspException
doStartTag in interface javax.servlet.jsp.tagext.TagdoStartTag in class javax.servlet.jsp.tagext.TagSupportjavax.servlet.jsp.JspExceptionpublic int doEndTag()
doEndTag in interface javax.servlet.jsp.tagext.TagdoEndTag in class javax.servlet.jsp.tagext.TagSupportpublic String renderVocabularyAsHTML(Document vocabulary, String controlledVocabulary2HtmlXSLT, boolean allowMultipleSelection, String contextPath)
vocabulary - The XML document representing a taxonomycontrolledVocabulary2HtmlXSLT - The filename of the stylesheet that converts the taxonomy to
HTMLallowMultipleSelection - include checkboxes next to the taxonomy termscontextPath - The context pathpublic Document filterVocabulary(Document vocabulary, String vocabularyPrunningXSLT, String filter)
vocabulary - The vocabulary to be trimmedvocabularyPrunningXSLT - The filename of the stylesheet that trims the vocabularyfilter - The filter to be appliedpublic String getFilter()
public void setFilter(String filter)
filter - the filterpublic boolean isAllowMultipleSelection()
public void setAllowMultipleSelection(boolean allowMultipleSelection)
allowMultipleSelection - true if we want to be able to select more than on termpublic String getVocabulary()
public void setVocabulary(String vocabulary)
vocabulary - the name of the vocabulary to be selectedCopyright © 2016 DuraSpace. All Rights Reserved.