Class SessionValidator

java.lang.Object
ca.phon.session.check.SessionValidator
All Implemented Interfaces:
IExtendable

public class SessionValidator extends Object implements IExtendable
Session validator with plug-in support. This class maintains the list of available validator plug-ins as well as a set of validation listeners.
Author:
Greg
  • Constructor Details

    • SessionValidator

      public SessionValidator()
    • SessionValidator

      public SessionValidator(SessionCheck[] sessionChecks)
    • SessionValidator

      public SessionValidator(List<SessionCheck> sessionChecks)
  • Method Details

    • fireValidationEvent

      public void fireValidationEvent(ValidationEvent.Severity severity, Session session, String message)
    • fireValidationEvent

      public void fireValidationEvent(Session session, String message)
    • fireValidationEvent

      public void fireValidationEvent(ValidationEvent.Severity severity, Session session, int record, String message)
    • fireValidationEvent

      public void fireValidationEvent(Session session, int record, String message)
    • fireValidationEvent

      public void fireValidationEvent(ValidationEvent.Severity severity, Session session, int record, String tierName, int group, String message)
    • fireValidationEvent

      public void fireValidationEvent(Session session, int record, String tierName, int group, String message)
    • fireValidationEvent

      public void fireValidationEvent(ValidationEvent evt)
    • validate

      public boolean validate(Session session)
    • addValidationListener

      public void addValidationListener(ValidationListener listener)
    • removeValidationListener

      public void removeValidationListener(ValidationListener listener)
    • getValidationListeners

      public List<ValidationListener> getValidationListeners()
    • getValidationEvents

      public List<ValidationEvent> getValidationEvents()
    • getExtensions

      public Set<Class<?>> getExtensions()
      Description copied from interface: IExtendable
      Return all extension types supported
      Specified by:
      getExtensions in interface IExtendable
    • getExtension

      public <T> T getExtension(Class<T> cap)
      Description copied from interface: IExtendable
      Get the requested extension if available.
      Specified by:
      getExtension in interface IExtendable
      Returns:
      the capability object or null if the cability is not available
    • putExtension

      public <T> T putExtension(Class<T> cap, T impl)
      Description copied from interface: IExtendable
      Add a new extension.
      Specified by:
      putExtension in interface IExtendable
      Parameters:
      cap - the extension to add
      Returns:
      the added extension implementation
    • removeExtension

      public <T> T removeExtension(Class<T> cap)
      Description copied from interface: IExtendable
      Remove a capability.
      Specified by:
      removeExtension in interface IExtendable
      Parameters:
      cap - the capability to remove