Package com.ptc.tml.log
Class TmlLog
java.lang.Object
com.ptc.tml.log.TmlLog
- All Implemented Interfaces:
Externalizable,Serializable,Evolvable
- Direct Known Subclasses:
TmlImportLog,TmlPackageLog
Supported API: true Serializable class to follow translation process through workflow, collecting logging information
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionaddCollection(TranslationCollection collection)
Supported API: true Adds collection information to a logvoid
Supported API: true Adds a generic error to the log; this message ought to be localizedvoid
Supported API: true Adds a 'No documents to translate' error to the log
Supported API: true Return localized import failure notification subject message.
Supported API: true Return localized import successfull notification subject message.
Supported API: true Return localized warning notification subject message.int
Supported API: true The number of errors in encountered so farvoid
Supported API: true Clears the errors from the log; only to be used once the errors have already been written.
Supported API: true Gets a summary string formatted in HTML.
Supported API: true Gets a summary string formatted in HTML.
-
Method Details
-
numErrors
public int numErrors()
Supported API: true The number of errors in encountered so far -
addErrorNoDocsToTranslate
public void addErrorNoDocsToTranslate()
Supported API: true Adds a 'No documents to translate' error to the log -
addError
Supported API: true Adds a generic error to the log; this message ought to be localized -
resetErrors
public void resetErrors()
Supported API: true Clears the errors from the log; only to be used once the errors have already been written. -
addCollection
Supported API: true Adds collection information to a log- Throws:
TranslationException
-
toHtmlSummaryString
Supported API: true Gets a summary string formatted in HTML. Includes info on warnings, documents and errors- Throws:
TranslationException
-
toHtmlWarningString
Supported API: true Gets a summary string formatted in HTML. Includes info on warnings and errors- Throws:
TranslationException
-
getWarningNotificationSubject
Supported API: true Return localized warning notification subject message. -
getImportSuccessNotificationSubject
Supported API: true Return localized import successfull notification subject message. -
getImportFailureNotificationSubject
Supported API: true Return localized import failure notification subject message.
-