|
class atk.Relation( |
Functionsdef atk.relation_type_register(
name
)def atk.relation_type_get_name(
relationship
)def atk.relation_type_for_name(
name
)
|
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.
atk.Relation(targets
, relationship
)
| a sequence of atk.Object
objects |
| one of the Atk Relation Type Constants with which to
create the new atk.Relation |
Returns : | a new atk.Relation |
Create a new relation for the specified
relationship
type and the specified sequence of
targets
.
def get_relation_type()
Returns : | the relation type - one of the Atk Relation Type Constants. |
Gets the relationship type.
def get_target()
Returns : | the target list of relation |
Gets the target list of atk.Object
objects.
def atk.relation_type_register(name
)
| a name string |
Returns : | a new one of the Atk Relation Type Constants that is
associated with name |
Associate name
with a new one of the Atk Relation Type Constants.
def atk.relation_type_get_name(type
)
| one of the Atk Relation Type Constants. |
Returns : | the string associated with
relationship . |
Gets the description string describing the relation type
specified by type
.
def atk.relation_type_for_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
.
© manpagez.com 2000-2024 Individual documents may contain additional copyright information.