Package EaseXML :: Module TypedList :: Class TypedList
[show private | hide private]
[frames | no frames]

Class TypedList

UserList --+
           |
          TypedList

Known Subclasses:
MixedList

A special list implementation

It stores XMLObjects all of the same type OR strings. Mainly used by Nodes.ListNode.

Example:

class Bar(XMLObject):
    pass

class Foo(XMLObject):
    liste = ListNode('Bar')

liste node will create a TypedList in background. This list will ensure all items it stores are Bar instances.


Method Summary
  __init__(self, xmlList, data)
  __add__(self, other)
  __getslice__(self, i, j)
  __iadd__(self, other)
  __radd__(self, other)
  append(self, item)
  checkItem(self, it)
  checkList(self, other)
  extend(self, other)
  insert(self, index, item)
  walkOnXMLObject(self, xoName, registry, callback, *args, **kw)
    Inherited from UserList
  __cmp__(self, other)
  __contains__(self, item)
  __delitem__(self, i)
  __delslice__(self, i, j)
  __eq__(self, other)
  __ge__(self, other)
  __getitem__(self, i)
  __gt__(self, other)
  __imul__(self, n)
  __le__(self, other)
  __len__(self)
  __lt__(self, other)
  __mul__(self, n)
  __ne__(self, other)
  __repr__(self)
  __rmul__(self, n)
  __setitem__(self, i, item)
  __setslice__(self, i, j, other)
  count(self, item)
  index(self, item, *args)
  pop(self, i)
  remove(self, item)
  reverse(self)
  sort(self, *args)

Generated by Epydoc 2.1 on Sun Dec 12 17:20:24 2004 http://epydoc.sf.net