public class GeneratorUtil extends Object
| Constructor and Description |
|---|
GeneratorUtil() |
| Modifier and Type | Method and Description |
|---|---|
static edu.cornell.mannlib.vitro.webapp.edit.n3editing.VTwo.fields.ConstantFieldOptions |
buildResourceAndLabelFieldOptions(edu.cornell.mannlib.vitro.webapp.rdfservice.RDFService rdfService,
edu.cornell.mannlib.vitro.webapp.dao.WebappDaoFactory webappDaoFactory,
String headerValue,
String headerLabel,
String... resourceURIs)
Build a field options list of resource URIs paired with their labels as
retrieved from the supplied RDFService.
|
public static edu.cornell.mannlib.vitro.webapp.edit.n3editing.VTwo.fields.ConstantFieldOptions buildResourceAndLabelFieldOptions(edu.cornell.mannlib.vitro.webapp.rdfservice.RDFService rdfService,
edu.cornell.mannlib.vitro.webapp.dao.WebappDaoFactory webappDaoFactory,
String headerValue,
String headerLabel,
String... resourceURIs)
throws Exception
rdfService - from which to retrieve labels: this should typically
be a LanguageFilteringRDFService.webappDaoFactory - may be null. If non-null, labels for classes will be
returned from here first before consulting
rdfService.headerValue - optional value for first value/label pair in the
options list before appending the URIs with their
labels. May be null. Example: empty stringheaderLabel - optional label for first value/label pair in the
options list before appending the URIs with their
labels. May be null. Example: "Select type"resourceURIs - variable list of resource URI stringsedu.cornell.mannlib.vitro.webapp.rdfservice.RDFServiceException - from the supplied rdfServiceException - from ConstantFieldOptions constructorCopyright © 2022. All rights reserved.