Home | Trees | Index | Help |
|
---|
Package Modeling :: Module Relationship :: Class FlattenedRelationship |
|
KeyValueCoding
--+ |object
--+ |XMLCapability
--+ |Relationship
--+ | FlattenedRelationship
Method Summary | |
---|---|
Initializes a flattened relationship. | |
Tests whether both relationship are equal | |
Returns a short representation of the relationship | |
See interfaces.Relationship for details | |
Not Implemented Checks the relationship validity. | |
See interfaces.Relationship for details | |
See interfaces.Relationship for details | |
Unimplemented | |
Returns the destination entity, or 'None' if the relationship has no definition yet | |
Return the destination entity, or None | |
| |
Returns string "flattenedRelation". | |
Returns the inverse relationship in the destination entity, or None if it does not exist | |
| |
See interfaces.Relationship for details | |
Indicates whether the relationship requires at least a destination entity to be bound. | |
Unappropriate | |
Indicates whether the relationship has a maximum cardinality > 1. | |
Indicates whether the relationship has a maximim cardinality = 1. | |
Unappropriate for flattened relationship | |
Unappropriate | |
Returns true if the relationship propagates PK value, false otherwise _TBD should be explained | |
| |
| |
See interfaces.Relationship for details | |
Tells the receiver whether it owns its destination objects. | |
Tells the relationship whether it propagates PK value _TBD should be explained | |
Unimplemented | |
Validates the relationship against general model consistency: - relationship should have a source and a destination entity - | |
Checks whether the supplied value is valid, i.e. | |
| |
Inherited from Relationship | |
| |
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 | |
Initializes a relationship with the supplied xml.dom.node. | |
Indicates whether the attribute belongs to the class properties/fields | |
negation of isClassProperty | |
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 | |
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 | |
---|---|
Inherited from Relationship | |
tuple |
__implements__ = (<class Modeling.interfaces.Relationshi...
|
Method Details |
---|
__init__(self,
aName='')
Initializes a flattened relationship. A name must be provided. |
__eq__(self,
aRelationship)
Tests whether both relationship are equal |
__str__(self)
Returns a short representation of the relationship |
addJoin(self, aJoin)See interfaces.Relationship for details |
checkRelationshipValidity(self)Not Implemented Checks the relationship validity. This includes the following tests: - cardinality > 0 - definition is set - name - source and destinationEntity are not None Raises the relation is invalid. |
componentRelationships(self)See interfaces.Relationship for details |
definition(self)See interfaces.Relationship for details |
destinationAttributes(self)Unimplemented |
destinationEntity(self)Returns the destination entity, or 'None' if the relationship has no definition yet |
destinationEntityName(self)Return the destination entity, or None |
getXMLDOM(self, doc=None, parentNode=None, encoding='iso-8859-1')
|
getXMLNodeName(self)Returns string "flattenedRelation". See interfaces.XMLCapability for details |
inverseRelationship(self)Returns the inverse relationship in the destination entity, or None if it does not exist |
isCompound(self) |
isFlattened(self)See interfaces.Relationship for details |
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'. |
isSimple(self)Unappropriate |
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.
|
joins(self)Unappropriate for flattened relationship |
ownsDestination(self)Unappropriate |
propagatesPrimaryKey(self)Returns true if the relationship propagates PK value, false otherwise _TBD should be explained |
raiseUnappropriate(self) |
removeJoin(self, aJoin) |
setDefinition(self, definition)See interfaces.Relationship for details |
setOwnsDestination(self, boolean)Tells the receiver whether it owns its destination objects. When a relationship owns its destination, the related object(s) cannot exist without the source object. |
setPropagatesPrimaryKey(self, aBool)Tells the relationship whether it propagates PK value _TBD should be explained |
sourceAttributes(self)Unimplemented |
validateRelationship(self)Validates the relationship against general model consistency: - relationship should have a source and a destination entity - |
validateValue(self, value, object=None)Checks whether the supplied value is valid, i.e. the following tests are made:
Parameter 'value' is required, and 'object' is optional --it is only used to make the error message clearer in case of failure. Silently returns if it succeeds. In case of failure, it raises 'Modeling.Validation.ValidationException' ; in this case, exception's value ('sys.exc_info[1]') consists in a set of lines, describing line per line the different tests which failed. |
xmlAttributesDict(self) |
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.1 on Sat Mar 4 13:36:24 2006 | http://epydoc.sf.net |