| Home | Trees | Index | Help |
|
|---|
| Package twisted :: Package python :: Module roots :: Class Constrained |
|
Collection --+
|
Constrained
Homogenous,
Locked| Method Summary | |
|---|---|
A method that determines whether an entity may be added to me. | |
A method that determines whether an entity may be added to me with a given name. | |
Store an entity if it meets both constraints. | |
reallyPutEntity(self,
name,
entity)
| |
| Inherited from Collection | |
Initialize me. | |
Remove a static reference for 'name'. | |
Subclass this to generate an entity on demand. | |
Retrieve an entity from me. | |
Get an entity that was added to me using putEntity. | |
A list of all name, entity that I can generate on demand. | |
Retrieve a list of the names of entities that I store references to. | |
Retrieve a list of all name, entity pairs I contain. | |
Retrieve a list of all names for entities that I contain. | |
Retrieve a list of all name, entity pairs that I store references to. | |
Retrieve a list of the names of entities that I store references to. | |
Remove an entity for 'name', based on the content of 'request'. | |
Store an entity for 'name', based on the content of 'request'. | |
| Method Details |
|---|
entityConstraint(self, entity)A method that determines whether an entity may be added to me. If the constraint is satisfied, return 1; if the constraint is not satisfied, either return 0 or raise a descriptive ConstraintViolation. |
nameConstraint(self, name)A method that determines whether an entity may be added to me with a given name. If the constraint is satisfied, return 1; if the constraint is not satisfied, either return 0 or raise a descriptive ConstraintViolation. |
putEntity(self, name, entity)Store an entity if it meets both constraints. Otherwise raise a ConstraintViolation.
|
| Home | Trees | Index | Help |
|
|---|
| Generated by Epydoc 2.0 on Sat May 15 20:08:55 2004 | http://epydoc.sf.net |