DLESE Tools
v1.6.0

org.dlese.dpc.vocab.tags
Class MetadataVocabTag

java.lang.Object
  extended by javax.servlet.jsp.tagext.TagSupport
      extended by org.dlese.dpc.vocab.tags.MetadataVocabTag
All Implemented Interfaces:
Serializable, IterationTag, JspTag, Tag
Direct Known Subclasses:
MetadataVocabCheckboxesTag, MetadataVocabHiddenInputsTag, MetadataVocabSelectListTag, MetadataVocabTopLevelAbbrevLabelTag, MetadataVocabTreeMenuTag, MetadataVocabUiLabelTag

public class MetadataVocabTag
extends TagSupport

Default tag handler for rendering controlled vocabularies. All other vocab tags should extend this!

Author:
Ryan Deardorff
See Also:
Serialized Form

Field Summary
protected  String group
          Description of the Field
protected  String interfce
          Description of the Field
protected  String language
          Description of the Field
protected  StringUtil stringUtil
          Description of the Field
protected  String system
          Description of the Field
protected  MetadataVocab vocab
          Description of the Field
 
Fields inherited from class javax.servlet.jsp.tagext.TagSupport
id, pageContext
 
Fields inherited from interface javax.servlet.jsp.tagext.IterationTag
EVAL_BODY_AGAIN
 
Fields inherited from interface javax.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
 
Constructor Summary
MetadataVocabTag()
           
 
Method Summary
 void release()
          Description of the Method
 void setGroup(String group)
          Group is used to reference a particular spot WITHIN the vocabulary hierarchy.
 void setInterface(String interfce)
          Interface is a particular UI within a given system.
 void setLanguage(String language)
          Language will allow for support of internationalization.
 void setSystem(String system)
          System is the identifier of a particular app, i.e.
 void setupTag(PageContext pageContext)
          Get the vocab object from the page context and expand system to be a concatenation of system, interface, and language
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
doAfterBody, doEndTag, doStartTag, findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

system

protected String system
Description of the Field


interfce

protected String interfce
Description of the Field


language

protected String language
Description of the Field


group

protected String group
Description of the Field


vocab

protected MetadataVocab vocab
Description of the Field


stringUtil

protected StringUtil stringUtil
Description of the Field

Constructor Detail

MetadataVocabTag

public MetadataVocabTag()
Method Detail

setSystem

public void setSystem(String system)
System is the identifier of a particular app, i.e. "dds", or "dcs"

Parameters:
system - The new system value

setInterface

public void setInterface(String interfce)
Interface is a particular UI within a given system. All systems should define an interface named "descr" (description). If a different "view" is needed for a spot within the app, another interface (such as "banner") can be referenced, provided that the corresponding XML files are loaded successfully.

Parameters:
interfce - The new interface value

setLanguage

public void setLanguage(String language)
Language will allow for support of internationalization. "en-us" indicates the United States version of English.

Parameters:
language - The new language value

setGroup

public void setGroup(String group)
Group is used to reference a particular spot WITHIN the vocabulary hierarchy. Setting to "resourceType" would cause a return of ALL values within the "Resource type" vocabulary, whereas "resourceType:Visual" would return only those values within the "Visual" sub-group.

Parameters:
group - The new group value

setupTag

public void setupTag(PageContext pageContext)
              throws JspException
Get the vocab object from the page context and expand system to be a concatenation of system, interface, and language

Parameters:
pageContext -
Throws:
JspException

release

public void release()
Description of the Method

Specified by:
release in interface Tag
Overrides:
release in class TagSupport

DLESE Tools
v1.6.0