Skip to main content

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
TypeName
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
TypeNameDescription
Workspace.XBR.Xperiflow.MetaFileSystem.IMetaFileSystemClientmetaFileSystemClientThe MetaFileSystemClient to use to read the text file.
System.StringdirpathThe directory path to where the text file data.appref exists.
System.Collections.Generic.List< Workspace.XBR.Xperiflow.Routines.Artifacts.ArtifactFileAnnotation >artifactFileAnnotationsThe 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

Was this page helpful?