Class ImportResult

java.lang.Object
com.appiancorp.suiteapi.type.config.ImportResult

public class ImportResult extends Object
Holds the result of an import of types into the system.
  • Constructor Details

    • ImportResult

      public ImportResult(Datatype[] topLevelDatatypes, Datatype[] newDatatypes, ImportDiagnostic[] diagnostics)
      Creates an instance.
      Parameters:
      topLevelDatatypes - the top-level datatypes that were created during the import.
      newDatatypes - all datatypes that were newly created during the import.
      diagnostics - contains warning and errors information collected during the import.
    • ImportResult

      public ImportResult(Datatype[] topLevelDatatypes, Datatype[] newDatatypes, ImportDiagnostic[] diagnostics, org.eclipse.emf.ecore.EPackage.Registry registry)
      Creates an instance.
      Parameters:
      topLevelDatatypes - the top-level datatypes that were created during the import.
      newDatatypes - all datatypes that were newly created during the import.
      diagnostics - contains warning and errors information collected during the import.
      registry - an Ecore registry populated with all imported types.
  • Method Details

    • getTopLevelDatatypes

      public Datatype[] getTopLevelDatatypes()
      Gets the Datatype objects that represent the types that were created during the import.
      Returns:
      the top-level datatypes.
    • getNewDatatypes

      public Datatype[] getNewDatatypes()
      Gets the Datatype objects that represent all types that were newly created during the import.
      Returns:
      all newly created datatypes.
    • getDiagnostics

      public ImportDiagnostic[] getDiagnostics()
      Gets the diagnostics that were generated during the import.
      Returns:
      all diagnostics generated during the import.
    • getRegistry

      public org.eclipse.emf.ecore.EPackage.Registry getRegistry()
      Returns an Ecore registry populated with all imported types.
    • toString

      public String toString()
      Overrides:
      toString in class Object