Class AbstractExternalValidationSupport<T extends IComponent<? extends IModel>,EVR>
- java.lang.Object
- 
- com._1c.g5.aef2.standard.validation.AbstractExternalValidationSupport<T,EVR>
 
- 
- Direct Known Subclasses:
- AbstractManagingComponentValidationSupport
 
 public abstract class AbstractExternalValidationSupport<T extends IComponent<? extends IModel>,EVR> extends Object Provides the external validation support for components.
- 
- 
Constructor SummaryConstructors Modifier Constructor Description protectedAbstractExternalValidationSupport(T rootComponent)Creates a new instance.
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voiddispose()Disposes the external validation support.protected voiddisposeInternal()Performs the disposition.protected TgetComponent()Returns the component.protected abstract Iterable<EVR>getExternalValidationResults(Object validable)Returns a external validation result.protected abstract StringgetMessage(EVR result)Returns the message of the external validation result object.protected abstract ObjectgetQuery(EVR result)Returns the query to component matching by the validation result.protected IScenegetScene()Returns the scene.protected abstract ExternalValidationStatusSeveritygetSeverity(EVR result)Returns the severity of the specified validation result.protected ObjectgetValidable()Returns the object to perform external validation.voidinitialize()Initializes the external validation supports.
 It installs component/scene listeners.protected voidinitializeInternal()Performs the initialization steps.protected booleanisDisposed()Returnstrueif the support is disposed.protected abstract voidonComponentModelChange(IModel model)Reacts on component model change.
 It is a place to make conversion model to validable object.protected voidonExternalValidationRequired()It is invoked on external validation required.protected voidsetValidable(Object validable)Sets the object to external validation.
 
- 
- 
- 
Constructor Detail- 
AbstractExternalValidationSupportprotected AbstractExternalValidationSupport(T rootComponent) Creates a new instance.- Parameters:
- rootComponent- the root component of the scene, cannot be- null.
 
 
- 
 - 
Method Detail- 
initializepublic final void initialize() Initializes the external validation supports.
 It installs component/scene listeners.
 - 
disposepublic final void dispose() Disposes the external validation support.
 - 
getExternalValidationResultsprotected abstract Iterable<EVR> getExternalValidationResults(Object validable) Returns a external validation result.- Parameters:
- validable- the object to validate, cannot be- null.
- Returns:
- the iterable with the external validation result, cannot be null.
 
 - 
getMessageprotected abstract String getMessage(EVR result) Returns the message of the external validation result object.- Parameters:
- result- the result of the validation, cannot be- null.
- Returns:
- the message, cannot be null.
 
 - 
getSeverityprotected abstract ExternalValidationStatusSeverity getSeverity(EVR result) Returns the severity of the specified validation result.- Parameters:
- result- the result of the validation, cannot be- null.
- Returns:
- the severity, never null.
 
 - 
getQueryprotected abstract Object getQuery(EVR result) Returns the query to component matching by the validation result.- Parameters:
- result- the result of the validation, cannot be- null.
- Returns:
- the query or nullif there are no matching component.
 
 - 
onComponentModelChangeprotected abstract void onComponentModelChange(IModel model) Reacts on component model change.
 It is a place to make conversion model to validable object.- Parameters:
- model- the component model, cannot be- null.
- See Also:
- setValidable(Object)
 
 - 
initializeInternalprotected void initializeInternal() Performs the initialization steps. By default it does nothing.
 It is invoked withininitialize().
 - 
disposeInternalprotected void disposeInternal() Performs the disposition. By default it does nothing.
 It is invoked withindispose().
 - 
setValidableprotected void setValidable(Object validable) Sets the object to external validation.- Parameters:
- validable- the object to validate, can be- null.
 
 - 
getValidableprotected Object getValidable() Returns the object to perform external validation.- Returns:
- the object to perform external validation, or nullif there no validable object at the moment.
 
 - 
onExternalValidationRequiredprotected final void onExternalValidationRequired() It is invoked on external validation required.
 - 
isDisposedprotected final boolean isDisposed() Returnstrueif the support is disposed.- Returns:
- trueif it's disposed.
 
 - 
getSceneprotected final IScene getScene() Returns the scene.- Returns:
- the scene or nullif the support is disposed.
 
 - 
getComponentprotected final T getComponent() Returns the component.- Returns:
- the component, never null.
 
 
- 
 
-