docs.unity3d.com
    Show / Hide Table of Contents

    Class QueryNode

    Abstract common base class for queries

    Inheritance
    Object
    QueryNode
    QueryNode<T>
    Namespace: Unity.Industrial.Forma.Core.Variants
    Syntax
    public abstract class QueryNode : MonoBehaviour, IQuery

    Properties

    id

    Gets or sets the identifier.

    Declaration
    public string id { get; set; }
    Property Value
    Type Description
    String

    The identifier.

    Implements
    IQuery.id

    overrideQuery

    Gets or sets a value indicating whether [override query].

    Declaration
    public bool overrideQuery { get; set; }
    Property Value
    Type Description
    Boolean

    true if [override query]; otherwise, false.

    ResultObject

    Gets or sets the result object.

    Declaration
    public abstract object ResultObject { get; set; }
    Property Value
    Type Description
    Object

    The result object.

    Implements
    IQuery.ResultObject

    Methods

    ApplyOverride(QueryNode)

    Applies the override.

    Declaration
    public abstract bool ApplyOverride(QueryNode overrideSource)
    Parameters
    Type Name Description
    QueryNode overrideSource

    The override source.

    Returns
    Type Description
    Boolean

    true if XXXX, false otherwise.

    EnsureId()

    Ensures the identifier.

    Declaration
    protected void EnsureId()

    ExecuteQuery(QueryContext)

    Executes the query.

    Declaration
    public abstract void ExecuteQuery(QueryContext context)
    Parameters
    Type Name Description
    QueryContext context

    The context.

    Implements
    IQuery.ExecuteQuery(QueryContext)

    HasAnOverride()

    Determines whether [has an override].

    Declaration
    public abstract bool HasAnOverride()
    Returns
    Type Description
    Boolean

    true if [has an override]; otherwise, false.

    IsQueryValid(QueryContext)

    Used by the UI to tag or filter queries that have issues.

    Declaration
    public virtual bool IsQueryValid(QueryContext context)
    Parameters
    Type Name Description
    QueryContext context

    The context.

    Returns
    Type Description
    Boolean

    true if [is query valid] [the specified context]; otherwise, false.

    ResetOverride(QueryContext)

    Resets the override.

    Declaration
    public abstract void ResetOverride(QueryContext context)
    Parameters
    Type Name Description
    QueryContext context
    Back to top
    Terms of use
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023