The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

xDT::RecordType - The record type of a xDT record.

SYNOPSIS

Quick summary of what the module does.

Perhaps a little code snippet.

    use xDT::RecordType;

    my $record_type = xDT::RecordType->new($id);
        # or
        my $record_type = xDT::RecordType->new($id, $config_file);

        say $record_type->get_labels()->{en};
        say $record_type->get_accessor();

CONSTANTS

LENGTH

The maximum length of a record type identifier.

END_RECORD_ID

ID of records at the end of an object.

ATTRIBUTES

id

Unique identifier of this record type.

labels

The human readable labels of this record type. Language is used as key value.

accessor

Short string for easy access to this record via xDT::Object.

length

Max length of this record type.

type

Corresponds to xDT record type string.

SUBROUTINES/METHODS

is_object_end

Checks if this record type is an ending record

get_id

Returns the id of this record type.

get_labels

Returns the labels of this record type.

get_accessor

Returns the accessor of this record type.

get_length

Returns the maximum length of this recourd type.

build_from_arrayref

Constructs a RecordType from a arrayref containing configurations. This method will propagate the hashref, that contains the provided id, to the new method.

AUTHOR

Christoph Beger, <christoph.beger at medizin.uni-leipzig.de>