Navigation
API > API/Plugins > API/Plugins/WebAPIEditor > API/Plugins/WebAPIEditor/Factories
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UFactory
- UWebAPIDefinitionFactory
References
| Module | WebAPIEditor |
| Header | /Engine/Plugins/Experimental/Web/WebAPI/Source/WebAPIEditor/Public/Factories/WebAPIDefinitionFactory.h |
| Include | #include "Factories/WebAPIDefinitionFactory.h" |
Syntax
UCLASS&40;Abstract, BlueprintType&41;
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). | |
| 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. |
Overridden from UFactory
| Type | Name | Description | |
|---|---|---|---|
| bool | FactoryCanImport
(
const FString& Filename |
Whether the specified file can be imported by this factory. | |
| UObject * | FactoryCreateFile
(
UClass* InClass, |
Create a new object by importing it from a file name. |
Overridden from FReimportHandler
| Type | Name | Description | |
|---|---|---|---|
| bool | CanReimport
(
UObject* Obj, |
Check to see if the handler is capable of reimporting the object | |
| EReimportResult::Type | Attempt to reimport the specified object from its source | ||
| void | SetReimportPaths
(
UObject* Obj, |
Sets the reimport path(s) for the specified object |
Constants
| Name | Description |
|---|---|
| LogName |