Package com.piketec.tpt.api
Class OpenResult
- java.lang.Object
-
- com.piketec.tpt.api.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-2022 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()
-
-
-
Constructor Detail
-
OpenResult
public OpenResult(Project project, java.util.List<java.lang.String> logs)
Constructor. Should not be called manually. Will be called fromTptApi.openProject(java.io.File)
.- Parameters:
project
- the TPT projectlogs
- 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
-
-