Back to index

plone3  3.1.7
Public Member Functions | Public Attributes
Marshall.handlers.atxml.ParseContext Class Reference

List of all members.

Public Member Functions

def __init__
def getDataFor
def getNamespaceFor
def setNamespaceDelegate

Public Attributes

 instance
 root
 ns_map
 data
 node
 ns_delegate

Detailed Description

a bag for holding data values from and for parsing

Definition at line 265 of file atxml.py.


Constructor & Destructor Documentation

def Marshall.handlers.atxml.ParseContext.__init__ (   self,
  instance,
  root,
  ns_map 
)

Definition at line 268 of file atxml.py.

00268 
00269     def __init__(self, instance, root, ns_map):
00270         self.instance = instance
00271         self.root = root # root node
00272         self.ns_map = ns_map # ns_uri -> namepace
00273         self.data = {} # ns_uri -> ns_data
00274         self.node = None # current node if any
00275         self.ns_delegate = None
        

Member Function Documentation

Definition at line 276 of file atxml.py.

00276 
00277     def getDataFor(self, ns_uri):
00278         return self.data.setdefault(ns_uri, {})

Definition at line 279 of file atxml.py.

00279 
00280     def getNamespaceFor(self, ns_uri):
00281         if self.ns_delegate is not None:
00282             return self.ns_delegate
00283         return self.ns_map.get( ns_uri )

Definition at line 284 of file atxml.py.

00284 
00285     def setNamespaceDelegate( self, namespace):
00286         self.ns_delegate = namespace


Member Data Documentation

Definition at line 272 of file atxml.py.

Definition at line 269 of file atxml.py.

Definition at line 273 of file atxml.py.

Definition at line 274 of file atxml.py.

Definition at line 271 of file atxml.py.

Definition at line 270 of file atxml.py.


The documentation for this class was generated from the following file: