Class BaseEditElementVTwo
- java.lang.Object
-
- edu.cornell.mannlib.vitro.webapp.edit.n3editing.VTwo.BaseEditElementVTwo
-
- All Implemented Interfaces:
EditElementVTwo
- Direct Known Subclasses:
DateTimeWithPrecisionVTwo
public abstract class BaseEditElementVTwo extends Object implements EditElementVTwo
-
-
Constructor Summary
Constructors Constructor Description BaseEditElementVTwo(FieldVTwo field)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleanhasNoneOrSingle(String key, Map<String,String[]> queryParameters)Utility method to check if a value from the query parameters is none or a single value.protected booleanhasSingleNonNullNonEmptyValueForKey(String key, Map<String,String[]> queryParameters)protected Stringmerge(freemarker.template.Configuration fmConfig, String templateName, Map map)Utility method for use in EditElements to merge a freemarker template.voidsetField(FieldVTwo field)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface edu.cornell.mannlib.vitro.webapp.edit.n3editing.VTwo.EditElementVTwo
draw, getLiterals, getMapForTemplate, getURIs, getValidationMessages
-
-
-
-
Field Detail
-
field
protected FieldVTwo field
-
-
Constructor Detail
-
BaseEditElementVTwo
public BaseEditElementVTwo(FieldVTwo field)
-
-
Method Detail
-
setField
public void setField(FieldVTwo field)
-
merge
protected String merge(freemarker.template.Configuration fmConfig, String templateName, Map map)
Utility method for use in EditElements to merge a freemarker template.
-
hasNoneOrSingle
protected boolean hasNoneOrSingle(String key, Map<String,String[]> queryParameters)
Utility method to check if a value from the query parameters is none or a single value. This returns true if the key is there and the value is null. This does not check if the value is the empty string.
-
-