Class OpenResult

  • All Implemented Interfaces:
    java.io.Serializable

    public class OpenResult
    extends java.lang.Object
    implements java.io.Serializable
    This object represents the result of an attempt to open a TPT project. It contains the project as well as any log messages occurred during the opening of the project.

    Log messages can occur if the project file was created in a previous release of TPT or if it contains information for license options currently not available.

    Author:
    Copyright (c) 2014-2024 Piketec GmbH - MIT License (MIT) - All rights reserved
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      OpenResult​(Project project, java.util.List<java.lang.String> logs)
      Constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.List<java.lang.String> getLogs()
      Returns a list of log entries that have occurred during the parsing of the TPT file.
      Project getProject()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • OpenResult

        public OpenResult​(Project project,
                          java.util.List<java.lang.String> logs)
        Constructor. Should not be called manually. Will be called from TptApi.openProject(java.io.File).
        Parameters:
        project - the TPT project
        logs - list of log messages
    • Method Detail

      • getLogs

        public java.util.List<java.lang.String> getLogs()
        Returns a list of log entries that have occurred during the parsing of the TPT file.
        Returns:
        List of log messages. Empty if no errors/warning have occurred.
      • getProject

        public Project getProject()
        Returns:
        The freshly opened TPT project