lib/BIDM/RIGObject.pm
BIDM::RIGObject
$obj = BIDM::RIGObject::object_for_class($class)
Look up the RIG class for this classname, and instantiate
an instance of it.
$obj->isa($class)
Returns true if this object is a (descendant) member of $class
$obj->handle_tag_attribute($name, $value)
Handle an attribute tag, as generated during the tag parsing process.
Look up the attribute object for this name, and pass the tag's name
and value through to that object. This is actually done using the
RIGObject::set_attribute method.
$obj->set_attribute($name, $value)
Set the RIG object's attribute named $name to $value. We do this by
looking up the attribute object for $name, and invoking it's
set_object_attribute method, passing this object through. We do this
to allow the attribute object (which is what contains the information needed
to do typechecking on attributes) to actually do the value setting.
$obj->handle_tag_inline_relationship($name, $seq_num, $rel_class, $rel_attribute, $value)
Parsing support for RIG object relationships.
The relationship pointer in an object points to either a URL containing
the pointed-to object, or a BIDM::RIGObject subclass which is the
target of the relationship. The latter will occur with inlined
relationships. The former can be expanded with a spider, if desired.
$obj->relationship_link($type, $name, $link_obj)
Add a relationship which is implememtned as a html LINK. $link_obj is
the instance of BIDM::Tag::Link with the link info in it,. $type is
either 'rev' or 'rel'.