CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
SequenceVisitors.PathValidator Class Reference
Inheritance diagram for SequenceVisitors.PathValidator:

Public Member Functions

def __init__
 
def enter
 
def leave
 
def setLabel
 

Private Attributes

 __label
 

Detailed Description

Definition at line 6 of file SequenceVisitors.py.

Constructor & Destructor Documentation

def SequenceVisitors.PathValidator.__init__ (   self)

Member Function Documentation

def SequenceVisitors.PathValidator.enter (   self,
  visitee 
)

Definition at line 11 of file SequenceVisitors.py.

References SequenceVisitors.PathValidator.__label, and Mixins._Labelable.__label.

11 
12  def enter(self,visitee):
13  if isinstance(visitee,OutputModule):
14  raise ValueError("Path "+self.__label+"cannot contain an OutputModule, '"+visitee.type_()+"', with label '"+visitee.label_()+"'")
15  if hasattr(visitee, "label_") and not isinstance(visitee,Sequence):
16  if not visitee.hasLabel_():
raise ValueError("Path "+self.__label+"contains a module of type '"+visitee.type_()+"' which has no assigned label.\n Most likely the module was never added to the process or it got replaced before being inserted into the process.")
def SequenceVisitors.PathValidator.leave (   self,
  visitee 
)

Definition at line 17 of file SequenceVisitors.py.

17 
18  def leave(self,visitee):
19  pass
def SequenceVisitors.PathValidator.setLabel (   self,
  label 
)

Definition at line 9 of file SequenceVisitors.py.

References SequenceVisitors.PathValidator.__label, and Mixins._Labelable.__label.

9 
10  def setLabel(self,label):
self.__label = "'"+label+"' "

Member Data Documentation

SequenceVisitors.PathValidator.__label
private

Definition at line 8 of file SequenceVisitors.py.

Referenced by Mixins._ValidatingListBase._labelIfAny(), SequenceVisitors.PathValidator.enter(), SequenceVisitors.EndPathValidator.enter(), SequenceVisitors.PathValidator.setLabel(), and SequenceVisitors.EndPathValidator.setLabel().