C# Class ABB.Swum.SwumBuilder

Constructs the Software Word Use Model using a defined set of rules.
Show file Open project: abb-iss/Swum.NET

Protected Properties

Property Type Description
Rules IEnumerable

Public Methods

Method Description
ApplyRules ( ProgramElementNode node ) : SwumRule

Applies the rules defined within this SwumBuilder to the specified node. The first matching rule found is used to construct the SWUM.

SwumBuilder ( ) : System

Creates a new SwumBuilder with the default rule set.

SwumBuilder ( IEnumerable ruleSet ) : System

Creates a new SwumBuilder with the specified rule set.

Protected Methods

Method Description
DefineRuleSet ( ) : void

Initializes the list of rules to use for building SWUMs.

Method Details

ApplyRules() public method

Applies the rules defined within this SwumBuilder to the specified node. The first matching rule found is used to construct the SWUM.
public ApplyRules ( ProgramElementNode node ) : SwumRule
node ABB.Swum.Nodes.ProgramElementNode The ProgramElementNode to construct a SWUM on.
return SwumRule

DefineRuleSet() protected method

Initializes the list of rules to use for building SWUMs.
protected DefineRuleSet ( ) : void
return void

SwumBuilder() public method

Creates a new SwumBuilder with the default rule set.
public SwumBuilder ( ) : System
return System

SwumBuilder() public method

Creates a new SwumBuilder with the specified rule set.
public SwumBuilder ( IEnumerable ruleSet ) : System
ruleSet IEnumerable The set of rules to use for building SWUMs.
return System

Property Details

Rules protected property

The set of rules to use for building SWUMs.
protected IEnumerable Rules
return IEnumerable