Package ca.phon.session.check
Class ValidationEvent
java.lang.Object
ca.phon.session.check.ValidationEvent
- All Implemented Interfaces:
IExtendable
-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionValidationEvent
(ValidationEvent.Severity severity, Session session, int record, String message) ValidationEvent
(ValidationEvent.Severity severity, Session session, int record, String tierName, int group, String message, SessionQuickFix... quickFixes) ValidationEvent
(ValidationEvent.Severity severity, Session session, int record, String message, SessionQuickFix... quickFixes) ValidationEvent
(ValidationEvent.Severity severity, Session session, String message) ValidationEvent
(ValidationEvent.Severity severity, Session session, String message, SessionQuickFix... quickFixes) ValidationEvent
(Session session, int record, String message) ValidationEvent
(Session session, int record, String tierName, int group, String message) ValidationEvent
(Session session, int record, String tierName, int group, String message, SessionQuickFix... quickFixes) ValidationEvent
(Session session, int record, String message, SessionQuickFix... quickFixes) ValidationEvent
(Session session, String message) ValidationEvent
(Session session, String message, SessionQuickFix... quickFixes) -
Method Summary
Modifier and TypeMethodDescriptionboolean
canFix()
Can this event be automatically fixed? Sub-classes should override this method.<T> T
getExtension
(Class<T> cap) Get the requested extension if available.Return all extension types supportedint
getGroup()
Options for fixing the problem identified by this validation event.int
<T> T
putExtension
(Class<T> cap, T impl) Add a new extension.<T> T
removeExtension
(Class<T> cap) Remove a capability.void
setGroup
(int group) void
setMessage
(String message) void
setRecord
(int record) void
setSession
(Session session) void
setSeverity
(ValidationEvent.Severity severity) void
setTierName
(String tierName) toString()
-
Constructor Details
-
ValidationEvent
-
ValidationEvent
-
ValidationEvent
public ValidationEvent(ValidationEvent.Severity severity, Session session, String message, SessionQuickFix... quickFixes) -
ValidationEvent
-
ValidationEvent
public ValidationEvent(ValidationEvent.Severity severity, Session session, int record, String message) -
ValidationEvent
-
ValidationEvent
public ValidationEvent(ValidationEvent.Severity severity, Session session, int record, String message, SessionQuickFix... quickFixes) -
ValidationEvent
-
ValidationEvent
-
ValidationEvent
public ValidationEvent(Session session, int record, String tierName, int group, String message, SessionQuickFix... quickFixes) -
ValidationEvent
public ValidationEvent(ValidationEvent.Severity severity, Session session, int record, String tierName, int group, String message, SessionQuickFix... quickFixes)
-
-
Method Details
-
getSeverity
-
setSeverity
-
getSession
-
setSession
-
getRecord
public int getRecord() -
setRecord
public void setRecord(int record) -
getTierName
-
setTierName
-
getGroup
public int getGroup() -
setGroup
public void setGroup(int group) -
getMessage
-
setMessage
-
canFix
public boolean canFix()Can this event be automatically fixed? Sub-classes should override this method.- Returns:
- can the validation event be fixed
-
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
-
getExtensions
Description copied from interface:IExtendable
Return all extension types supported- Specified by:
getExtensions
in interfaceIExtendable
-
getExtension
Description copied from interface:IExtendable
Get the requested extension if available.- Specified by:
getExtension
in interfaceIExtendable
- Returns:
- the capability object or
null
if the cability is not available
-
putExtension
Description copied from interface:IExtendable
Add a new extension.- Specified by:
putExtension
in interfaceIExtendable
- Parameters:
cap
- the extension to add- Returns:
- the added extension implementation
-
removeExtension
Description copied from interface:IExtendable
Remove a capability.- Specified by:
removeExtension
in interfaceIExtendable
- Parameters:
cap
- the capability to remove
-