public class ControlledVocabularyTag
extends javax.servlet.jsp.tagext.TagSupport
| Modifier and Type | Field and Description |
|---|---|
java.util.Map<java.lang.String,org.w3c.dom.Document> |
controlledVocabularies |
| Constructor and Description |
|---|
ControlledVocabularyTag() |
| Modifier and Type | Method and Description |
|---|---|
int |
doEndTag()
End processing tag
|
int |
doStartTag()
Process tag
|
org.w3c.dom.Document |
filterVocabulary(org.w3c.dom.Document vocabulary,
java.lang.String vocabularyPrunningXSLT,
java.lang.String filter)
Applies a filter to the provided vocabulary, i.e.
|
java.lang.String |
getFilter()
Gets the filter provided as parameter to the tag
|
java.lang.String |
getVocabulary()
Gets the name of the vocabulary to be displayed
|
boolean |
isAllowMultipleSelection()
Returns the value of the multiple selection parameter
|
java.lang.String |
renderVocabularyAsHTML(org.w3c.dom.Document vocabulary,
java.lang.String controlledVocabulary2HtmlXSLT,
boolean allowMultipleSelection,
java.lang.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(java.lang.String filter)
Sets the filter
|
void |
setVocabulary(java.lang.String vocabulary)
Sets the name of the vocabulary to be displayed.
|
public java.util.Map<java.lang.String,org.w3c.dom.Document> controlledVocabularies
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 java.lang.String renderVocabularyAsHTML(org.w3c.dom.Document vocabulary,
java.lang.String controlledVocabulary2HtmlXSLT,
boolean allowMultipleSelection,
java.lang.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 org.w3c.dom.Document filterVocabulary(org.w3c.dom.Document vocabulary,
java.lang.String vocabularyPrunningXSLT,
java.lang.String filter)
vocabulary - The vocabulary to be trimmedvocabularyPrunningXSLT - The filename of the stylesheet that trims the vocabularyfilter - The filter to be appliedpublic java.lang.String getFilter()
public void setFilter(java.lang.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 java.lang.String getVocabulary()
public void setVocabulary(java.lang.String vocabulary)
vocabulary - the name of the vocabulary to be selectedCopyright © 2018 DuraSpace. All Rights Reserved.