Devendra Gera > LibTracker-Client-0.02 > LibTracker::Client::MetaDataTypeDetails

Download:
LibTracker-Client-0.02.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Source  

NAME ^

LibTracker::Client::MetaDataTypeDetails - Metadata type details for LT::C

SYNOPSIS ^

  use LibTracker::Client qw(:all);
  use LibTracker::Client::MetaDataTypeDetails;

  my $tracker = LibTracker::Client->get_instance();

  my $mdtd = $tracker->get_metadata_type_details("Doc:Author");

  print "type         : ", $mdtd->type(), "\n";
  print "is_embedded  : ", $mdtd->is_embedded(), "\n";
  print "is_writeable : ", $mdtd->is_writeable(), "\n";

  undef $tracker;

DESCRIPTION ^

This module implements the MetaDataTypeDetails data structure for LibTracker::Client.

INTERFACE ^

STATIC METHODS

new()
  args:
    args(hashref)    : contains the type, is_embedded and
                       is_writeable keys with values.

Returns a reference blessed into LibTracker::Client::MetaDataTypeDetails on success. Dies on failure.

INSTANCE METHODS

type()
  args:
    type(string)[optional]     : the type

If passed an argument, sets the type field to the given value. Returns the type for the MetaDataTypeDetails object.

is_embedded()
  args:
    is_embedded(boolean)[optional] : the is_embedded flag

If passed an argument, sets the is_embedded field to the given value. Returns the is_embedded flag for the MetaDataTypeDetails object.

is_writeable()
  args:
    is_writeable(boolean)[optional] : the is_embedded flag

If passed an argument, sets the is_writeable field to the given value. Returns the is_writeable flag for the MetaDataTypeDetails object.

EXPORT

None by default.

Exportable constants

None.

SEE ALSO ^

The tracker project home at http://www.gnome.org/projects/tracker/

LibTracker::Client specific communication with the author : ltcp@theoldmonk.net

LibTracker::Client homepage at http://www.theoldmonk.net/ltcp/

AUTHOR ^

Devendra Gera, <gera@theoldmonk.net>

COPYRIGHT AND LICENSE ^

Copyright (C) 2008 by Devendra Gera

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.8 or, at your option, any later version of Perl 5 you may have available.

syntax highlighting: