Package org.dlese.dpc.dds.action.form
Class VocabForm
java.lang.Object
org.apache.struts.action.ActionForm
org.dlese.dpc.dds.action.form.VocabForm
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
DCSServicesForm,DDSAdminQueryForm,DDSManageCollectionsForm,DDSServicesForm,RepositoryForm
A Struts Form bean for handling controlled vocabulary displays.
- Author:
- Ryan Deardorff
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected StringNOT YET DOCUMENTEDprotected StringNOT YET DOCUMENTEDprotected StringNOT YET DOCUMENTEDprotected StringNOT YET DOCUMENTEDprotected StringNOT YET DOCUMENTEDprotected MetadataVocabNOT YET DOCUMENTEDFields inherited from class org.apache.struts.action.ActionForm
multipartRequestHandler, servlet -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the UI audience attribute of the VocabForm objectgetField()gets the vocabulary field attribute of the VocabActionForm objectGets the field encoded ID of the current vocabularyGets the UI label of the current vocabularybooleanTrue if there is a vocab entry for this field/value, false if not.Gets the UI language attribute of the VocabForm objectfinal MetadataVocabgetVocab()Gets the vocab attribute of the VocabActionForm objectGets the vocabList attribute of the VocabActionForm objectgetVocabList(String field) Gets the vocabList attribute of the VocabActionForm objectGets the current vocabulary term as a VocabNode, or if unavailable, an untranslated vocabulary term as a VocabNode, which simply echos the vocab ID in the id, name, label and labelabbrev fields.voidSets the field attribute of the VocabForm objectvoidSets the vocabulary field attribute of the VocabActionForm objectvoidsetMetaFormat(String metaFormat) Sets the metaFormat attribute of the VocabForm objectvoidSets the vocabulary value (last half of field/value pair)voidsetVocab(MetadataVocab vocab) Constructor for the VocabForm objectvoidsetVocabInterface(String system) Deprecated.As of MetadataUI v1.0, replaced by new constructorMethods inherited from class org.apache.struts.action.ActionForm
getMultipartRequestHandler, getServlet, getServletWrapper, reset, reset, setMultipartRequestHandler, setServlet, validate, validate
-
Field Details
-
vocab
NOT YET DOCUMENTED -
field
NOT YET DOCUMENTED -
value
NOT YET DOCUMENTED -
metaFormat
NOT YET DOCUMENTED -
audience
NOT YET DOCUMENTED -
language
NOT YET DOCUMENTED
-
-
Constructor Details
-
VocabForm
public VocabForm()
-
-
Method Details
-
setVocab
Constructor for the VocabForm object- Parameters:
vocab- The new vocab value
-
setVocabInterface
Deprecated.As of MetadataUI v1.0, replaced by new constructorSets the vocabInterface attribute of the VocabForm object- Parameters:
system- The new vocabInterface value
-
getAudience
Gets the UI audience attribute of the VocabForm object- Returns:
- The audience value
-
getLanguage
Gets the UI language attribute of the VocabForm object- Returns:
- The language value
-
setField
Sets the vocabulary field attribute of the VocabActionForm object- Parameters:
metaFormat- The new field valuefield- The new field value
-
setField
Sets the field attribute of the VocabForm object- Parameters:
field- The new field value
-
setMetaFormat
Sets the metaFormat attribute of the VocabForm object- Parameters:
metaFormat- The new metaFormat value
-
getField
gets the vocabulary field attribute of the VocabActionForm object- Returns:
- field The new field value
-
getFieldLabel
Gets the UI label of the current vocabulary- Returns:
- The fieldLabel value
-
getFieldId
Gets the field encoded ID of the current vocabulary- Returns:
- The fieldId value
-
setValue
Sets the vocabulary value (last half of field/value pair)- Parameters:
value- The new value value
-
getVocabTerm
Gets the current vocabulary term as a VocabNode, or if unavailable, an untranslated vocabulary term as a VocabNode, which simply echos the vocab ID in the id, name, label and labelabbrev fields.- Returns:
- The vocabTerm value
- See Also:
-
getIsVocabTermAvailable
public boolean getIsVocabTermAvailable()True if there is a vocab entry for this field/value, false if not. If true,getVocabTerm()will return the translated vocabs, if false it will return the untranslated values.- Returns:
- The isVocabTermAvailable value
- See Also:
-
getVocab
Gets the vocab attribute of the VocabActionForm object- Returns:
- The vocab value
-
getVocabList
Gets the vocabList attribute of the VocabActionForm object- Parameters:
field-- Returns:
- The vocabList value
-
getVocabList
Gets the vocabList attribute of the VocabActionForm object- Returns:
- The vocabList value
-