Interface EditElementVTwo
-
- All Known Implementing Classes:
BaseEditElementVTwo,DateTimeWithPrecisionVTwo
public interface EditElementVTwoAll classes that implement this interface must have a public constructor that takes a edu.cornell.mannlib.vitro.webapp.edit.n3editing.Field. It will be called with using reflection.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Stringdraw(String fieldName, EditConfigurationVTwo editConfig, MultiValueEditSubmission editSub, freemarker.template.Configuration fmConfig)This is a method to generate the HTML output for a form element.Map<String,List<org.apache.jena.rdf.model.Literal>>getLiterals(String fieldName, EditConfigurationVTwo editConfig, Map<String,String[]> queryParameters)This is a method to get a map of variable name to Literal value from the submitted form.MapgetMapForTemplate(EditConfigurationVTwo editConfig, MultiValueEditSubmission editSub)This method gets the map with the data that can then be passed to the templateMap<String,List<String>>getURIs(String fieldName, EditConfigurationVTwo editConfig, Map<String,String[]> queryParameters)This is a method to get a map of variable name to URI values from the submitted form.Map<String,String>getValidationMessages(String fieldName, EditConfigurationVTwo editConfig, Map<String,String[]> queryParameters)Gets validation error messages.
-
-
-
Method Detail
-
getLiterals
Map<String,List<org.apache.jena.rdf.model.Literal>> getLiterals(String fieldName, EditConfigurationVTwo editConfig, Map<String,String[]> queryParameters)
This is a method to get a map of variable name to Literal value from the submitted form.
-
getURIs
Map<String,List<String>> getURIs(String fieldName, EditConfigurationVTwo editConfig, Map<String,String[]> queryParameters)
This is a method to get a map of variable name to URI values from the submitted form.
-
getValidationMessages
Map<String,String> getValidationMessages(String fieldName, EditConfigurationVTwo editConfig, Map<String,String[]> queryParameters)
Gets validation error messages. Returns an empty list if there are no errors.
-
draw
String draw(String fieldName, EditConfigurationVTwo editConfig, MultiValueEditSubmission editSub, freemarker.template.Configuration fmConfig)
This is a method to generate the HTML output for a form element. It should use a freemarker template to produce the output.
-
getMapForTemplate
Map getMapForTemplate(EditConfigurationVTwo editConfig, MultiValueEditSubmission editSub)
This method gets the map with the data that can then be passed to the template
-
-