NAME

Rit::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 Rit::Base::Literal::String/parse. (Avoid recursion)

Will 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 Rit::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

SEE ALSO

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