Package ca.phon.phontalk.plugin
Class Phon2TalkBankRecordCheck
java.lang.Object
ca.phon.phontalk.plugin.Phon2TalkBankRecordCheck
- All Implemented Interfaces:
IPluginExtensionPoint<SessionCheck>
,SessionCheck
public class Phon2TalkBankRecordCheck
extends Object
implements SessionCheck, IPluginExtensionPoint<SessionCheck>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
checkRecord
(SessionValidator validator, Session session, int recordIndex) Check Record Perform a round-trip of the data with only this single record.boolean
checkSession
(SessionValidator validator, Session session) Check session and report any issues using the given validator.Class<?>
Get type of extensionGet factory for extension point objectsboolean
void
loadProperties
(Properties props) boolean
Perform check by default in session editor and session check wizard.void
setCheckExportToCHAT
(boolean checkExportToCHAT)
-
Constructor Details
-
Phon2TalkBankRecordCheck
public Phon2TalkBankRecordCheck()
-
-
Method Details
-
getExtensionType
Description copied from interface:IPluginExtensionPoint
Get type of extension- Specified by:
getExtensionType
in interfaceIPluginExtensionPoint<SessionCheck>
-
getFactory
Description copied from interface:IPluginExtensionPoint
Get factory for extension point objects- Specified by:
getFactory
in interfaceIPluginExtensionPoint<SessionCheck>
-
isCheckExportToCHAT
public boolean isCheckExportToCHAT() -
setCheckExportToCHAT
public void setCheckExportToCHAT(boolean checkExportToCHAT) -
performCheckByDefault
public boolean performCheckByDefault()Description copied from interface:SessionCheck
Perform check by default in session editor and session check wizard. This setting may be overridden by user settings in the Session Check view.- Specified by:
performCheckByDefault
in interfaceSessionCheck
- Returns:
- true if check should execute during record editor start-up
-
checkSession
Description copied from interface:SessionCheck
Check session and report any issues using the given validator.- Specified by:
checkSession
in interfaceSessionCheck
- Returns:
- true if session was modified, false otherwise
-
checkRecord
Check Record Perform a round-trip of the data with only this single record. Any errors encountered will be reported to the validator.- Parameters:
validator
-session
-recordIndex
-- Returns:
- true if record was modified
-
getProperties
- Specified by:
getProperties
in interfaceSessionCheck
-
loadProperties
- Specified by:
loadProperties
in interfaceSessionCheck
-