Class FileOrDir
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
ROCrateidentifier
stringproperties
JsonObjectsource
stringdestPath
stringfetchRemote
boolvalidateUrl
bool
Fields
_destPath
protected string? _destPath
Field Value
_fetchRemote
protected bool _fetchRemote
Field Value
_source
protected string _source
Field Value
_validateUrl
protected bool _validateUrl
Field Value
Methods
Deserialize(string, ROCrate)
Create a FileOrDir from JSON properties.
public static FileOrDir? Deserialize(string entityJson, ROCrate roCrate)
Parameters
entityJson
stringThe JSON representing the FileOrDir
roCrate
ROCrateThe RO-Crate for the FileOrDir
Returns
Serialize()
Convert FileOrDir to JSON string.
public override string Serialize()