Table of Contents

Class FileOrDir

Namespace
ROCrates.Models
Assembly
ROCrates.Net.dll
public class FileOrDir : DataEntity
Inheritance
FileOrDir
Derived
Inherited Members

Constructors

FileOrDir()

public FileOrDir()

FileOrDir(ROCrate?, string?, JsonObject?, string?, string?, bool, bool)

public FileOrDir(ROCrate? crate = null, string? identifier = null, JsonObject? properties = null, string? source = null, string? destPath = null, bool fetchRemote = false, bool validateUrl = false)

Parameters

crate ROCrate
identifier string
properties JsonObject
source string
destPath string
fetchRemote bool
validateUrl bool

Fields

_destPath

protected string? _destPath

Field Value

string

_fetchRemote

protected bool _fetchRemote

Field Value

bool

_source

protected string _source

Field Value

string

_validateUrl

protected bool _validateUrl

Field Value

bool

Methods

Deserialize(string, ROCrate)

Create a FileOrDir from JSON properties.

public static FileOrDir? Deserialize(string entityJson, ROCrate roCrate)

Parameters

entityJson string

The JSON representing the FileOrDir

roCrate ROCrate

The RO-Crate for the FileOrDir

Returns

FileOrDir

The deserialised FileOrDir

Serialize()

Convert FileOrDir to JSON string.

public override string Serialize()

Returns

string

The FileOrDir as a JSON string.