T
- the type of data being editedE
- the type of editorpublic abstract class BaseEditorDriver<T,E extends Editor<T>> extends Object
Constructor and Description |
---|
BaseEditorDriver() |
Modifier and Type | Method and Description |
---|---|
abstract void |
accept(EditorVisitor visitor) |
protected void |
configureDelegate(AbstractEditorDelegate<T,E> rootDelegate) |
protected abstract AbstractEditorDelegate<T,E> |
createDelegate() |
protected EditorVisitor |
createInitializerVisitor() |
protected void |
doEdit(T object) |
protected void |
doFlush() |
protected void |
doInitialize(E editor) |
protected boolean |
doSetViolations(Iterable<SimpleViolation> violations) |
protected AbstractEditorDelegate<T,E> |
getDelegate() |
protected E |
getEditor() |
List<EditorError> |
getErrors() |
protected T |
getObject() |
protected DelegateMap.KeyMethod |
getViolationKeyMethod() |
boolean |
hasErrors() |
boolean |
isDirty() |
boolean |
setConstraintViolations(Iterable<javax.validation.ConstraintViolation<?>> violations) |
String |
toString() |
public abstract void accept(EditorVisitor visitor)
public List<EditorError> getErrors()
public boolean hasErrors()
public boolean isDirty()
public boolean setConstraintViolations(Iterable<javax.validation.ConstraintViolation<?>> violations)
protected void configureDelegate(AbstractEditorDelegate<T,E> rootDelegate)
protected abstract AbstractEditorDelegate<T,E> createDelegate()
protected EditorVisitor createInitializerVisitor()
protected void doEdit(T object)
protected void doFlush()
protected void doInitialize(E editor)
protected boolean doSetViolations(Iterable<SimpleViolation> violations)
protected AbstractEditorDelegate<T,E> getDelegate()
protected E getEditor()
protected T getObject()
protected DelegateMap.KeyMethod getViolationKeyMethod()
Copyright © 2018. All rights reserved.