NAME

RDF::Base::Literal::Email::Address

DESCRIPTION

Represents an Email Address

Constructors

These can be called with the class name or any List object.

new

  $this->new( $value, $valtype )

Calls Para::Frame::Email::Address/new

Will not throw an exception if email address is faulty

parse

Wrapper for Para::Frame::Email::Address/parse that reimplements RDF::Base::Literal::String/parse. (Avoid recursion)

Will NOT throw exception if not a correct email address

new_from_db

Assumes that the value from DB is correct

Accessors

as_html

  $a->as_html( \%args )

Supported args are:

  method
  tag_*

method defaults to format

sysdesig

  $a->sysdesig()

The designation of an object, to be used for node administration or debugging.

desig

  $a->desig()

The designation of an object, to be used for node administration or debugging. Uses Para::Frame::Email::Address/desig

syskey

Returns a unique predictable id representing this object

literal

  $n->literal()

The literal value that this object represents.

loc

  $lit->loc

Just returns the plain string

plain

Make it a plain value. Safer than using ->literal, since it also works for Undef objects.

Returns: The address part Para::Frame::Email::Address/address

NB! Only store the address part in the DB. For broken email addresses, it will be the original string.

as_string

Used in Para::Frame::Email::Address. Overrides RDF::Base::Object/as_string.

name

Overrides Para::Frame::Email::Address/name. Using the name of the node pointing to this literal, if existing and if no name is found in the email itself.

default_valtype

vacuum_facet

SEE ALSO

RDF::Base::Literal, RDF::Base::Resource, RDF::Base::Arc, RDF::Base::Pred, RDF::Base::Search