NAME
RDF::vCard::Line - represents a line within a vCard
DESCRIPTION
Instances of this class correspond to lines within vCards, though they could potentially be used as basis for other RFC 2425-based formats such as iCalendar.
Constructor
new(%options)
Returns a new RDF::vCard::Line object.
The only options worth worrying about are: property (case-insensitive property name), value (arrayref or single string value), type_parameters (hashref of property-related parameters).
RDF::vCard::Entity overloads stringification, so you can do the following:
my $line = RDF::vCard::Line->new( property => 'email', value => 'joe@example.net', type_parameters => { type=>['PREF','INTERNET'] }, ); print "$line\n" if $line =~ /internet/i;
Methods
to_string()
Formats the line according to RFC 2425 and RFC 2426.
value_to_string()
Formats just the value according to RFC 2425 and RFC 2426.
property()
Returns the entity property - e.g. "EMAIL".
value()
Returns an arrayref for the value.
type_parameters()
Returns the type_parameters hashref.
property_order()
Returns a string which can be used to sort a list of lines into a sensible order.
SEE ALSO
AUTHOR
Toby Inkster <tobyink@cpan.org>.
COPYRIGHT
Copyright 2011 Toby Inkster
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.