public class VocabForm
extends org.apache.struts.action.ActionForm
implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
audience
NOT YET DOCUMENTED
|
protected java.lang.String |
field
NOT YET DOCUMENTED
|
protected java.lang.String |
language
NOT YET DOCUMENTED
|
protected java.lang.String |
metaFormat
NOT YET DOCUMENTED
|
protected java.lang.String |
value
NOT YET DOCUMENTED
|
protected MetadataVocab |
vocab
NOT YET DOCUMENTED
|
Constructor and Description |
---|
VocabForm() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAudience()
Gets the UI audience attribute of the VocabForm object
|
java.lang.String |
getField()
gets the vocabulary field attribute of the VocabActionForm object
|
java.lang.String |
getFieldId()
Gets the field encoded ID of the current vocabulary
|
java.lang.String |
getFieldLabel()
Gets the UI label of the current vocabulary
|
boolean |
getIsVocabTermAvailable()
True if there is a vocab entry for this field/value, false if not.
|
java.lang.String |
getLanguage()
Gets the UI language attribute of the VocabForm object
|
MetadataVocab |
getVocab()
Gets the vocab attribute of the VocabActionForm object
|
java.util.ArrayList |
getVocabList()
Gets the vocabList attribute of the VocabActionForm object
|
java.util.ArrayList |
getVocabList(java.lang.String field)
Gets the vocabList attribute of the VocabActionForm object
|
VocabNode |
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.
|
void |
setField(java.lang.String field)
Sets the field attribute of the VocabForm object
|
void |
setField(java.lang.String metaFormat,
java.lang.String field)
Sets the vocabulary field attribute of the VocabActionForm object
|
void |
setMetaFormat(java.lang.String metaFormat)
Sets the metaFormat attribute of the VocabForm object
|
void |
setValue(java.lang.String value)
Sets the vocabulary value (last half of field/value pair)
|
void |
setVocab(MetadataVocab vocab)
Constructor for the VocabForm object
|
void |
setVocabInterface(java.lang.String system)
Deprecated.
As of MetadataUI v1.0, replaced by new constructor
|
protected MetadataVocab vocab
protected java.lang.String field
protected java.lang.String value
protected java.lang.String metaFormat
protected java.lang.String audience
protected java.lang.String language
public void setVocab(MetadataVocab vocab)
vocab
- The new vocab valuepublic void setVocabInterface(java.lang.String system)
system
- The new vocabInterface valuepublic java.lang.String getAudience()
public java.lang.String getLanguage()
public void setField(java.lang.String metaFormat, java.lang.String field)
field
- The new field valuemetaFormat
- The new field valuepublic void setField(java.lang.String field)
field
- The new field valuepublic void setMetaFormat(java.lang.String metaFormat)
metaFormat
- The new metaFormat valuepublic java.lang.String getField()
public java.lang.String getFieldLabel()
public java.lang.String getFieldId()
public void setValue(java.lang.String value)
value
- The new value valuepublic VocabNode getVocabTerm()
getIsVocabTermAvailable()
public boolean getIsVocabTermAvailable()
getVocabTerm()
will
return the translated vocabs, if false it will return the untranslated values.getVocabTerm()
public final MetadataVocab getVocab()
public java.util.ArrayList getVocabList(java.lang.String field)
field
- public java.util.ArrayList getVocabList()