| Home | Trees | Index | Help | 
|---|
| Package EaseXML :: Module main :: Class MetaAttribute | 
  | 
object --+
         |
        MetaAttribute
Each XMLObject type deals with MetaAttributes. In the example below, content and title are MetaAttributes:
>>> class MyXMLObject(XMLObject):
...   content = TextNode('Content') # _XO_content
...   title = StringAttribute()     # _XO_title
...
>>>
MetaAttributes handle value with the XMLObject they're included in.
Type checking is done in __set__.
| Method Summary | |
|---|---|
__init__(self,
          nodeInstance,
          encoding)
 | |
__get__(self,
          inst,
          cls)
 | |
__set__(self,
          inst,
          val)
 | |
| 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)  | |
| Home | Trees | Index | Help | 
|---|
| Generated by Epydoc 2.1 on Sun Dec 12 17:20:24 2004 | http://epydoc.sf.net |