A class that allows to map tags to names.
|
|
__init__(self,
mapping={})
Initializes the mapping. |
|
|
|
|
fillFromXML(self,
iostream)
Uses the XML file or string to set the mapping. |
|
|
|
|
fromDom(self,
node)
Fills names and tags from dom node. |
|
|
|
|
getMapping(self)
Returns a dictionary where the tags define the keys and the values
the corresponding names. |
|
|
|
|
getName(self,
tag=None)
Returns the name of a tag. |
|
|
|
|
getTags(self,
name=None)
Returns a list of the tags assigned to name. |
|
|
|
|
insert(self,
data,
default=0,
**kwargs)
Inserts values into the esys.escript.Data object according to the given
values assigned to the keywords. |
|
|
|
|
map(self,
default=0,
**kwargs)
Returns a dictionary where the tags define the keys and the values
give the values assigned to the tag via name and kwargs: |
|
|
|
|
|
|
|
setMap(self,
**kwargs)
Sets a new map where <name>=<tag> assigns the tag
<tag> to name <name>. |
|
|
|
|
toDOM(self,
dom)
Adds object to dom. |
|
|
|
|
writeXML(self,
iostream=None)
Serializes self as XML into iostream or if not present
returns the XML as string. |
|
|
|
Inherited from object:
__delattr__,
__getattribute__,
__hash__,
__new__,
__reduce__,
__reduce_ex__,
__repr__,
__setattr__,
__str__
|