Class IndividualsViaVClassOptions
- java.lang.Object
-
- edu.cornell.mannlib.vitro.webapp.edit.n3editing.VTwo.fields.IndividualsViaVClassOptions
-
- All Implemented Interfaces:
FieldOptions
- Direct Known Subclasses:
IndividualsViaSearchQueryOptions
public class IndividualsViaVClassOptions extends Object implements FieldOptions
-
-
Field Summary
Fields Modifier and Type Field Description protected StringdefaultOptionLabelstatic StringLEFT_BLANKprotected static org.apache.commons.logging.Loglogprotected List<String>vclassURIs
-
Constructor Summary
Constructors Constructor Description IndividualsViaVClassOptions(String... vclassURIs)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Map<String,Individual>addWhenMissingInference(String classUri, WebappDaoFactory wDaoFact)Comparator<String[]>getCustomComparator()protected Map<String,Individual>getIndividualsForClass(String vclassURI, WebappDaoFactory wDaoFact)Map<String,String>getOptions(EditConfigurationVTwo editConfig, String fieldName, WebappDaoFactory wDaoFact, I18nBundle i18n)Any object that are needed to get the options should be passed in the constructor of the implementation.protected booleanisReasoningAvailable()FieldOptionssetDefaultOptionLabel(String label)
-
-
-
Field Detail
-
log
protected static final org.apache.commons.logging.Log log
-
LEFT_BLANK
public static final String LEFT_BLANK
- See Also:
- Constant Field Values
-
defaultOptionLabel
protected String defaultOptionLabel
-
-
Method Detail
-
setDefaultOptionLabel
public FieldOptions setDefaultOptionLabel(String label)
-
getOptions
public Map<String,String> getOptions(EditConfigurationVTwo editConfig, String fieldName, WebappDaoFactory wDaoFact, I18nBundle i18n) throws Exception
Description copied from interface:FieldOptionsAny object that are needed to get the options should be passed in the constructor of the implementation.- Specified by:
getOptionsin interfaceFieldOptions- Returns:
- return a map of value->label for the options. Should never return null.
- Throws:
Exception
-
getIndividualsForClass
protected Map<String,Individual> getIndividualsForClass(String vclassURI, WebappDaoFactory wDaoFact)
-
isReasoningAvailable
protected boolean isReasoningAvailable()
-
addWhenMissingInference
protected Map<String,Individual> addWhenMissingInference(String classUri, WebappDaoFactory wDaoFact)
-
getCustomComparator
public Comparator<String[]> getCustomComparator()
- Specified by:
getCustomComparatorin interfaceFieldOptions
-
-