Navigation
API > API/Plugins > API/Plugins/WebAPIEditor > API/Plugins/WebAPIEditor/Factories
Inheritance Hierarchy
- UFactory
- FReimportHandler
- UWebAPIDefinitionFactory
References
| Module | WebAPIEditor |
| Header | /Engine/Plugins/Experimental/Web/WebAPI/Source/WebAPIEditor/Public/Factories/WebAPIDefinitionFactory.h |
| Include | #include "Factories/WebAPIDefinitionFactory.h" |
Syntax
UCLASS (Abstract, BlueprintType)
class UWebAPIDefinitionFactory :
public UFactory,
public FReimportHandler
Remarks
Base Factory for WebAPIDefinition.
Constructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| bool | CanImportWebAPI
(
const FString& InFileName, |
Check if the factory can import the given file (and it's contents). | |
| bool | CanReimport
(
UObject* InObj, |
||
| bool | FactoryCanImport
(
const FString& InFileName |
||
| UObject * | FactoryCreateFile
(
UClass* InClass, |
||
| TFuture< bool > | ImportWebAPI
(
UWebAPIDefinition* InDefinition, |
Perform the import or re-import. | |
| bool | IsValidFile
(
const FString& InFilename |
Checks that the provided file contains a valid file extension. | |
| bool | IsValidFileExtension
(
const FString& InFileExtension |
Checks that the provided file extension (not the whole file name or path!) is valid for this factory. | |
| TFuture< void > | PostImportWebAPI
(
UWebAPIDefinition* InDefinition |
Called after a successful import. | |
| FString | ReadFileContents
(
const FString& InFileName |
Could be on-disk or URL. | |
| EReimportResult::Type | Reimport
(
UObject* InObj |
||
| void | SetReimportPaths
(
UObject* InObj, |
Constants
| Name | Description |
|---|---|
| LogName |