NAME

Rit::Base::Literal::Class

DESCRIPTION

Inherits from Rit::Base::Resource

on_startup

set_valtype2name

on_bless

on_unbless

on_arc_add

on_arc_del

coltype

  $n->coltype()

This will give the coltype that instances of the literal will have. (instance instance coltype).

Will not return obj

coltype_id

  $n->coltype_id()

This will give the coltype id that instances of the literal will have. (instance instance coltype).

Will not return the obj id.

instance_class

  $n->instance_class()

Get the perl class name that handles instances of this class.

It will be retrieved by the class_handled_by_perl_module property, or for Literals, by the corresponding coltype.

Literals, arcs and preds must only have ONE class. Other resoruces may have multiple classses.

Returns: the class name as a plain string

coltype_by_valtype_id

Rit::Base::Literal::Class->coltype_by_valtype_id( $id )

Dies if this is not a registred literal valtype

Returns: a coltype as a string

Example: valtext

coltype_by_valtype_id_or_obj

Rit::Base::Literal::Class->coltype_by_valtype_id( $id )

Defaults to 'obj' for unregistred valtypes

Returns: a coltype as a string

Example: obj

coltype_by_coltype_id

Rit::Base::Literal::Class->coltype_by_coltype_id( $name )

coltype_id_by_coltype

Rit::Base::Literal::Class->coltype_id_by_coltype( $id )

SEE ALSO

Rit::Base::Resource, Rit::Base::Constants,