Back to index

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

List of all members.

Public Member Functions

def __init__
def registerNamespace
def getRegisteredNamespaces

Private Attributes

 _namespaces
 _order

Detailed Description

Definition at line 412 of file atxml.py.


Constructor & Destructor Documentation

Definition at line 414 of file atxml.py.

00414 
00415     def __init__( self ):
00416         self._namespaces = {}
00417         self._order = []


Member Function Documentation

Definition at line 426 of file atxml.py.

00426 
00427     def getRegisteredNamespaces( self ):
00428         return [ self._namespaces[ xmlns ] for xmlns in self._order ]
00429 

def Marshall.handlers.atxml._NamespaceCatalog.registerNamespace (   self,
  namespace,
  override = False,
  position = -1 
)

Definition at line 418 of file atxml.py.

00418 
00419     def registerNamespace( self, namespace, override=False, position=-1):
00420         if namespace.xmlns in self._namespaces and not override:
00421             raise RuntimeError("Duplicate Namespace Registration %s"%namespace.xmlns )
00422         self._namespaces[ namespace.xmlns ] = namespace
00423         if position == -1:
00424             position = len( self._order )
00425         self._order.append( position, namespace.xmlns )


Member Data Documentation

Definition at line 415 of file atxml.py.

Definition at line 416 of file atxml.py.


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