Koha::Edifact::Segment - Class foe Edifact Segments
Used by Koha::Edifact to represent segments in a parsed Edifact message
my $s = Koha::Edifact::Segment->new( { seg_string => $raw }); passed a string representation of the segment, parses it and retums a Segment object
returns the three character segment tag
$data = $s->elem($element_number, $component_number) return the contents of a specified element and if specified component of that element
syntactic sugar this wraps the rlem method in a fuller name
returns a string representation of the segment
passed a string representation of a segment returns a hash ref with separate tag and data elements
passed the data portion of a segment, splits it into elements, passing each to components to further parse them. Returns a reference to an array of elements
Passed a string element splits it into components and returns a reference to an array of components, if only one component is present that is returned directly. quote characters are removed from the components
Removes Edifact escapes from the passed string and returns the modified string
Colin Campbell <colin.campbell@ptfs-europe.com>
Copyright 2014,2016, PTFS-Europe Ltd This program is free software, You may redistribute it under under the terms of the GNU General Public License