Lire::Field - Interface to Dlf field's specification. my $field = $schema->field( 'time' ); print "Name: ", $field->name, "\n", "Type: ", $field->type, "\n"; This module represents Dlf field's specifications. You'll get reference to this kind of object when you call the field(), timestamp_field() or fields() methods on a Lire::DlfSchema(3pm) object. You can obtain information about this field by querying its methods.

name()
Returns the name of the field.

pos()
Returns the field's position in the record. Field's positions are indexed from 0.

type()
Returns the field's type. This will be a string describing the type's name as used in the XML specifications.

default()
Returns the field's default value. If no default value was specificied in the XML specification, this will 0 for numeric types and '-' for other types.

description()
This method will return the field's description. (This is the content of the description element in the XML specification.) Be aware that this will most likely contains DocBook markup. Lire::DlfSchema(3pm) Lire::DataTypes(3pm) $Id: Field.pm,v 1.6 2002/03/23 23:33:54 flacoste Exp $ Copyright (C) 2001 Stichting LogReport Foundation LogReport@LogReport.org This file is part of Lire. Lire is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program (see COPYING); if not, check with http://www.gnu.org/copyleft/gpl.html or write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA. Francis J. Lacoste <flacoste@logreport.org>