Class | EDI::Segment |
In: |
lib/edi4r.rb
lib/edi4r/rexml.rb |
Parent: | Collection_S |
A "Segment" is a special Collection of type "S" (segment-like), similar to "CDE". Special Segment attributes are:
sg_name: | The name of its segment group (optional) |
level: | The segment’s hierarchy level, an integer |
level | [R] | |
sg_name | [R] |
Access by XPath expression (support is very limited currently) or by name of the dependent component. Pass them as strings.
Used internally - try to avoid at user level! Currently supported XPath expressions:
Returns the current segment and all of its child elements. Useful e.g. to deal with one instance of a segment group without traversing included segment groups.
Returns array of all segments with the current segment as ancestor, including the current segment. For trigger segments, this method returns all segments of one instance of the corresponding segment group.