Class WebAppArtifactReader
An Artifact Reader for reading a JObject from a json file called data.appref.
Namespace: Workspace.XBR.Xperiflow.Routines.Io
Assembly: Xperiflow.dll
Declaration
public class WebAppArtifactReader : IArtifactReader<JObject>
Implements:
Workspace.XBR.Xperiflow.Routines.Io.IArtifactReader<Newtonsoft.Json.Linq.JObject>
Methods
IsApplicable(List<ArtifactFileAnnotation>)
Determines whether the artifact is applicable for reading as a JObject that represents metadata about a web application reference.
Declaration
public bool IsApplicable(List<ArtifactFileAnnotation> artifactFileAnnotations)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
System.Collections.Generic.List < Workspace.XBR.Xperiflow.Routines.Artifacts.ArtifactFileAnnotation > | artifactFileAnnotations |
Read(IMetaFileSystemClient, string, List<ArtifactFileAnnotation>)
Reads a string from a text file called data.appref based on a directory path that exists in the Workspace.XBR.Xperiflow.MetaFileSystem.IMetaFileSystemClient, converting it to a JObject. This is expected to be a JSON file that contains metadata about a web application reference.
Declaration
public JObject Read(IMetaFileSystemClient metaFileSystemClient, string dirpath, List<ArtifactFileAnnotation> artifactFileAnnotations)
Returns
Newtonsoft.Json.Linq.JObject
JObject created by the string data from the json file.
Parameters
Type | Name | Description |
---|---|---|
Workspace.XBR.Xperiflow.MetaFileSystem.IMetaFileSystemClient | metaFileSystemClient | The MetaFileSystemClient to use to read the text file. |
System.String | dirpath | The directory path to where the text file data.appref exists. |
System.Collections.Generic.List < Workspace.XBR.Xperiflow.Routines.Artifacts.ArtifactFileAnnotation > | artifactFileAnnotations | The artifact file annotations to check for the .appref file. |
Implements
Workspace.XBR.Xperiflow.Routines.Io.IArtifactReader<Newtonsoft.Json.Linq.JObject>
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object,System.Object)
System.Object.GetHashCode
System.Object.GetType
System.Object.MemberwiseClone
System.Object.ReferenceEquals(System.Object,System.Object)
System.Object.ToString