Class ImportResult
java.lang.Object
com.appiancorp.suiteapi.type.config.ImportResult
Holds the result of an import of types into the system.
-
Constructor Summary
ConstructorDescriptionImportResult
(Datatype[] topLevelDatatypes, Datatype[] newDatatypes, ImportDiagnostic[] diagnostics) Creates an instance.ImportResult
(Datatype[] topLevelDatatypes, Datatype[] newDatatypes, ImportDiagnostic[] diagnostics, org.eclipse.emf.ecore.EPackage.Registry registry) Creates an instance. -
Method Summary
Modifier and TypeMethodDescriptionGets the diagnostics that were generated during the import.Datatype[]
Gets theDatatype
objects that represent all types that were newly created during the import.org.eclipse.emf.ecore.EPackage.Registry
Returns an Ecore registry populated with all imported types.Datatype[]
Gets theDatatype
objects that represent the types that were created during the import.toString()
-
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
Gets theDatatype
objects that represent the types that were created during the import.- Returns:
- the top-level datatypes.
-
getNewDatatypes
Gets theDatatype
objects that represent all types that were newly created during the import.- Returns:
- all newly created datatypes.
-
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
-