File

packages/ast-to-mmd/src/app/conditions/sibling.condition.ts

Description

Interface representing condition for resolving siblings of defined child;

Index

Methods

Methods

isValid
isValid(sibling: GraphBlock)

Based on used condition is checked whether the tested sibling is valid or not.

Parameters :
Name Type Optional Description
sibling GraphBlock No

GraphBlock Tested sibling.

Returns : boolean
import { GraphBlock } from '../graph-blocks';

/**
 * Interface representing condition for resolving siblings of defined child;
 */
export interface SiblingCondition {

  /**
   * Based on used condition is checked whether the tested sibling is valid or not.
   *
   * @param sibling {@link GraphBlock} Tested sibling.
   */
  isValid(sibling: GraphBlock): boolean;

}

results matching ""

    No results matching ""