Class ValidationEvent

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

public class ValidationEvent extends Object implements IExtendable
  • Constructor Details

  • Method Details

    • getSeverity

      public ValidationEvent.Severity getSeverity()
    • setSeverity

      public void setSeverity(ValidationEvent.Severity severity)
    • getSession

      public Session getSession()
    • setSession

      public void setSession(Session session)
    • getRecord

      public int getRecord()
    • setRecord

      public void setRecord(int record)
    • getTierName

      public String getTierName()
    • setTierName

      public void setTierName(String tierName)
    • getGroup

      public int getGroup()
    • setGroup

      public void setGroup(int group)
    • getMessage

      public String getMessage()
    • setMessage

      public void setMessage(String message)
    • canFix

      public boolean canFix()
      Can this event be automatically fixed? Sub-classes should override this method.
      Returns:
      can the validation event be fixed
    • getQuickFixes

      public List<SessionQuickFix> getQuickFixes()
      Options for fixing the problem identified by this validation event.
      Returns:
      a list of validation options or an empty list if this problem does not have a quick fix
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • 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