Class EDI::Diagram::Node
In: lib/edi4r/diagrams.rb
Parent: Object

A Node is essentially the representation of a segment in a diagram. It comes in two flavors: Simple nodes (SNode) and T-nodes (TNode) which may have "tails". "Node" is an abstract class - either create a SNode or a TNode.

Methods

create   required?   tail   to_s  

Attributes

index  [RW] 
maxrep  [R] 
name  [RW] 
status  [R] 

Public Class methods

name :The node’s name, e.g. the segment tag
status :A one-char string like ‘M’ (mandatory), ‘C’ (conditional)
rep :The max. number of repetitions of this node as allowed by the diagram specs.

Public Instance methods

Returns nil for an SNode or a reference to the side branch ("tail") of a TNode.

[Validate]