예제 #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
 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
 def __init__(self):
     """Initialize the OverwriteFlag object."""
     self.fullType_ = environment.getType(common.BOOL)
예제 #5
0
 def __init__(self):
     """Initialize the DependencyTrigger object."""
     self.fullType_ = environment.getType(common.ANY)
예제 #6
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()
예제 #7
0
 def __init__(self):
     """Initialize the ConstructorObjectId object."""
     self.fullType_ = environment.getType(common.STRING)
예제 #8
0
 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_)