Search Results for

    Show / Hide Table of Contents

    Class Resource

    Resource represents an address to a file (a locator). The value is an URI that can represent an absolute or relative path

    Inheritance
    System.Object
    Resource
    Implements
    IResource
    IClass
    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()
    Namespace: AasCore.Aas3_0
    Assembly: AasCore.Aas3_0.dll
    Syntax
    public class Resource : IResource, IClass

    Constructors

    | Improve this Doc View Source

    Resource(String, String)

    Declaration
    public Resource(string path, string contentType = null)
    Parameters
    Type Name Description
    System.String path
    System.String contentType

    Properties

    | Improve this Doc View Source

    ContentType

    Content type of the content of the file.

    Declaration
    public string ContentType { get; set; }
    Property Value
    Type Description
    System.String
    Remarks

    The content type states which file extensions the file can have.

    | Improve this Doc View Source

    Path

    Path and name of the resource (with file extension).

    Declaration
    public string Path { get; set; }
    Property Value
    Type Description
    System.String
    Remarks

    The path can be absolute or relative.

    Methods

    | Improve this Doc View Source

    Accept(Visitation.IVisitor)

    Accept the visitor to visit this instance for double dispatch.

    Declaration
    public void Accept(Visitation.IVisitor visitor)
    Parameters
    Type Name Description
    Visitation.IVisitor visitor
    | Improve this Doc View Source

    Accept<TContext>(Visitation.IVisitorWithContext<TContext>, TContext)

    Accept the visitor to visit this instance for double dispatch with the context.

    Declaration
    public void Accept<TContext>(Visitation.IVisitorWithContext<TContext> visitor, TContext context)
    Parameters
    Type Name Description
    Visitation.IVisitorWithContext<TContext> visitor
    TContext context
    Type Parameters
    Name Description
    TContext
    | Improve this Doc View Source

    Descend()

    Iterate recursively over all the class instances referenced from this instance.

    Declaration
    public IEnumerable<IClass> Descend()
    Returns
    Type Description
    System.Collections.Generic.IEnumerable<IClass>
    | Improve this Doc View Source

    DescendOnce()

    Iterate over all the class instances referenced from this instance without further recursion.

    Declaration
    public IEnumerable<IClass> DescendOnce()
    Returns
    Type Description
    System.Collections.Generic.IEnumerable<IClass>
    | Improve this Doc View Source

    Transform<T>(Visitation.ITransformer<T>)

    Accept the transformer to transform this instance for double dispatch.

    Declaration
    public T Transform<T>(Visitation.ITransformer<T> transformer)
    Parameters
    Type Name Description
    Visitation.ITransformer<T> transformer
    Returns
    Type Description
    T
    Type Parameters
    Name Description
    T
    | Improve this Doc View Source

    Transform<TContext, T>(Visitation.ITransformerWithContext<TContext, T>, TContext)

    Accept the transformer to visit this instance for double dispatch with the context.

    Declaration
    public T Transform<TContext, T>(Visitation.ITransformerWithContext<TContext, T> transformer, TContext context)
    Parameters
    Type Name Description
    Visitation.ITransformerWithContext<TContext, T> transformer
    TContext context
    Returns
    Type Description
    T
    Type Parameters
    Name Description
    TContext
    T

    Implements

    IResource
    IClass
    • Improve this Doc
    • View Source
    In This Article
    Back to top Generated by DocFX