コード例 #1
0
    def __init__(self, typeName, superTypeName, nameSpaceID):
        """Initialize the MemberObjectId object."""
        #self.failIfEmpty = True # Member function can't be invoked on null object

        self.fullType_ = environment.getType(typeName, superTypeName)
        self.description_ = 'id of existing %s object' % self.fullType_.value()
        self.nameSpace_= nameSpaceID    
コード例 #2
0
ファイル: parameter.py プロジェクト: AAthresh/quantlib
 def postSerialize(self):
     """Perform post serialization initialization."""
     if len(self.name_) < 1:
         raise exceptions.ParameterNameNullException()
     if not self.name_[0].isupper():
         raise exceptions.ParameterNameCapitalizationException(self.name_)
     if self.name_.upper() in Parameter.ILLEGAL_NAMES:
         raise exceptions.ParameterIllegalNameException(
             self.name_, Parameter.ILLEGAL_NAMES)
     self.fullType_ = environment.getType(self.type_, self.superType_)
     if self.default_:
         self.description_ += ' Default value = ' + self.default_.replace('"', '') + '.'
コード例 #3
0
 def postSerialize(self):
     """Perform post serialization initialization."""
     if len(self.name_) < 1:
         raise exceptions.ParameterNameNullException()
     if not self.name_[0].isupper():
         raise exceptions.ParameterNameCapitalizationException(self.name_)
     if self.name_.upper() in Parameter.ILLEGAL_NAMES:
         raise exceptions.ParameterIllegalNameException(
             self.name_, Parameter.ILLEGAL_NAMES)
     self.fullType_ = environment.getType(self.type_, self.superType_)
     if self.default_:
         self.description_ += ' Default value = ' + self.default_.replace(
             '"', '') + '.'
コード例 #4
0
ファイル: parameter.py プロジェクト: AAthresh/quantlib
 def __init__(self):
     """Initialize the OverwriteFlag object."""
     self.fullType_ = environment.getType(common.BOOL)
コード例 #5
0
ファイル: parameter.py プロジェクト: AAthresh/quantlib
 def __init__(self):
     """Initialize the DependencyTrigger object."""
     self.fullType_ = environment.getType(common.ANY)
コード例 #6
0
ファイル: parameter.py プロジェクト: AAthresh/quantlib
 def __init__(self, typeName, superTypeName):
     """Initialize the EnumerationId object."""
     self.fullType_ = environment.getType(typeName, superTypeName)
     self.name_ = self.fullType_.classname().lower()
     self.description_ = 'ID of Enumeration of class %s' % self.fullType_.value()
コード例 #7
0
ファイル: parameter.py プロジェクト: AAthresh/quantlib
 def __init__(self):
     """Initialize the ConstructorObjectId object."""
     self.fullType_ = environment.getType(common.STRING)
コード例 #8
0
ファイル: parameter.py プロジェクト: AAthresh/quantlib
 def postSerialize(self):
     """Perform post serialization initialization."""
     self.fullType_ = environment.getType(self.type_, self.superType_)
コード例 #9
0
 def __init__(self):
     """Initialize the OverwriteFlag object."""
     self.fullType_ = environment.getType(common.BOOL)
コード例 #10
0
 def __init__(self):
     """Initialize the DependencyTrigger object."""
     self.fullType_ = environment.getType(common.ANY)
コード例 #11
0
 def __init__(self, typeName, superTypeName):
     """Initialize the EnumerationId object."""
     self.fullType_ = environment.getType(typeName, superTypeName)
     self.name_ = self.fullType_.classname().lower()
     self.description_ = 'ID of Enumeration of class %s' % self.fullType_.value(
     )
コード例 #12
0
    def __init__(self, typeName, superTypeName):
        """Initialize the MemberObjectId object."""
        #self.failIfEmpty = True # Member function can't be invoked on null object

        self.fullType_ = environment.getType(typeName, superTypeName)
        self.description_ = 'id of existing %s object' % self.fullType_.value()
コード例 #13
0
 def __init__(self):
     """Initialize the ConstructorObjectId object."""
     self.fullType_ = environment.getType(common.STRING)
コード例 #14
0
 def postSerialize(self):
     """Perform post serialization initialization."""
     self.fullType_ = environment.getType(self.type_, self.superType_)