atk.Relation
atk.Relation — an object used to describe a relation between a object and
one or more other objects.
Description
An atk.Relation
describes a relation between an object and one or more other
objects. The actual relations that an object has with other objects are
defined as an atk.RelationSet,
which contains a set of atk.Relation
objects.
Constructor
atk.Relation
atk.Relation(targets, relationship)
|
Create a new relation for the specified
relationship type and the specified sequence of
targets.
Methods
atk.Relation.get_relation_type
Gets the relationship type.
atk.Relation.get_target
Returns : | the target list of relation |
Gets the target list of atk.Object
objects.
Functions
atk.relation_type_get_name
def atk.relation_type_get_name(type)
|
Gets the description string describing the relation type
specified by type.
atk.relation_type_for_name
def atk.relation_type_for_name(name)
|
name : | a string which is the (non-localized) name of
an ATK relation type. |
Returns : | the matching type of the Atk Relation Type Constants corresponding
to the specified name, or
atk.RELATION_NULL if no matching relation type
is found. |
Get the relation type corresponding to the specified
name.