Home | Trees | Index | Help |
|
---|
Package Modeling :: Module Relationship :: Class Relationship |
|
KeyValueCoding
--+ |object
--+ |XMLCapability
--+ | Relationship
FlattenedRelationship
,
SimpleRelationship
Method Summary | |
---|---|
__init__(self,
aName)
| |
__ne__(self,
aRelationship)
| |
Sets the source entity | |
Returns the comment field | |
Returns the delete rule applicable to this relationship. | |
Returns the display label for the relationship | |
Return the relationship's source entity | |
Returns the (DOM) DocumentObject for the receiver. | |
See interfaces.XMLCapability for details | |
Initializes a relationship with the supplied xml.dom.node. | |
Indicates whether the attribute belongs to the class properties/fields | |
Indicates whether the relationship requires at least a destination entity to be bound. | |
negation of isClassProperty | |
Indicates whether the relationship has a maximum cardinality > 1. | |
Indicates whether the relationship has a maximim cardinality = 1. | |
Returns the lower bound of the relationship's multiplicity | |
Returns the upper bound of the relationship's multiplicity. | |
Returns the relationship's name | |
Sets the comment field | |
Sets the delete rule. | |
Sets the display label (string) for the relationship | |
Sets the source entity | |
Tells the receiver whether it belongs to the class properties/fields | |
Tells the relationship whether it is mandatory. | |
Sets the lower and upper bounds for the relationship's multiplicity. | |
Sets the lower bound of the relationship's multiplicity Parameter lowerBound must be an positive integer. | |
Sets the upper bound of the relationship's multiplicity. | |
Sets the relationship's name | |
Return the relationship's source entity | |
| |
Inherited from object | |
x.__delattr__('name') <==> del x.name | |
x.__getattribute__('name') <==> x.name | |
x.__hash__() <==> hash(x) | |
T.__new__(S, ...) -> a new object with type S, a subtype of T | |
helper for pickle | |
helper for pickle | |
x.__repr__() <==> repr(x) | |
x.__setattr__('name', value) <==> x.name = value | |
x.__str__() <==> str(x) | |
Inherited from XMLCapability | |
| |
| |
| |
Inherited from KeyValueCoding | |
See interfaces.KeyValueCoding for details | |
See interfaces.KeyValueCoding for details | |
DEPRECATED -- alias for 'takeStoredValueForKey()' | |
DEPRECATED -- alias for takeValueForKey() | |
DEPRECATED -- alias for takeValueForKeyPath() | |
See interfaces.KeyValueCoding for details | |
See interfaces.KeyValueCoding for details | |
See interfaces.KeyValueCoding for details | |
See interfaces.KeyValueCoding for details | |
See interfaces.KeyValueCoding for details | |
See interfaces.KeyValueCoding for details | |
See interfaces.KeyValueCoding for details | |
See interfaces.KeyValueCoding for details | |
See interfaces.KeyValueCoding for details |
Class Variable Summary | |
---|---|
tuple |
__implements__ = (<class Modeling.interfaces.Relationshi...
|
Method Details |
---|
_setSourceEntity(self, anEntity)Sets the source entity |
comment(self)Returns the comment field |
deleteRule(self)Returns the delete rule applicable to this relationship. Possible values are module's integer constants DELETE_CASCADE, DELETE_NULLIFY and DELETE_DENY |
displayLabel(self)Returns the display label for the relationship |
entity(self)Return the relationship's source entity |
getXMLDOM(self, doc=None, parentNode=None, encoding='iso-8859-1')Returns the (DOM) DocumentObject for the receiver. Parameters 'doc' and 'parentDoc' should be both omitted or supplied. If they are omitted, a new DocumentObject is created. If they are supplied, elements are added to the parentNode. Returns: the (possibly new) DocumentObject.
|
getXMLNodeName(self)See interfaces.XMLCapability for details |
initWithXMLDOMNode(self, aNode, encoding='iso-8859-1')Initializes a relationship with the supplied xml.dom.node. |
isClassProperty(self)Indicates whether the attribute belongs to the class properties/fields |
isMandatory(self)Indicates whether the relationship requires at least a destination entity to be bound. This is a computed attribute, equivalent to: 'self.multiplicityLowerBound()>0'. |
isNotClassProperty(self)negation of isClassProperty |
isToMany(self)Indicates whether the relationship has a maximum cardinality > 1. This is the contrary of method isToOne. |
isToOne(self)Indicates whether the relationship has a maximim cardinality = 1. This is the contrary of method isToMany. |
multiplicityLowerBound(self)Returns the lower bound of the relationship's multiplicity |
multiplicityUpperBound(self)Returns the upper bound of the relationship's multiplicity. Returned value is a strictly positive integer, or -1 if there is no upper bound. |
name(self)Returns the relationship's name |
setComment(self, aComment)Sets the comment field |
setDeleteRule(self, rule)Sets the delete rule. Accepted values are module's constants: DELETE_NULLIFY, DELETE_CASCADE and DELETE_DENY |
setDisplayLabel(self, aLabel)Sets the display label (string) for the relationship |
setEntity(self, anEntity)Sets the source entity |
setIsClassProperty(self, aBool)Tells the receiver whether it belongs to the class properties/fields |
setIsMandatory(self, aBool)Tells the relationship whether it is mandatory. This method has the following side-effects: if set to 'true' and the multiplicity lower bound was '0' (zero) it is set to '1' (one) ; if set to 'false', the multiplicity lower bound is set to 'zero'. |
setMultiplicity(self, lowerBound, upperBound)Sets the lower and upper bounds for the relationship's multiplicity. See also: setMultiplicityLowerBound, setMultiplicityUpperBound. |
setMultiplicityLowerBound(self, lowerBound)Sets the lower bound of the relationship's multiplicity Parameter lowerBound must be an positive integer. |
setMultiplicityUpperBound(self, upperBound)Sets the upper bound of the relationship's multiplicity. Parameter:
|
setName(self, aName)Sets the relationship's name |
sourceEntity(self)Return the relationship's source entity |
xmlAttributesDict(self) |
Class Variable Details |
---|
__implements__
|
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.1 on Sat Mar 4 13:36:24 2006 | http://epydoc.sf.net |