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    
Esempio n. 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('"', '') + '.'
Esempio n. 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(
             '"', '') + '.'
Esempio n. 4
0
 def __init__(self):
     """Initialize the OverwriteFlag object."""
     self.fullType_ = environment.getType(common.BOOL)
Esempio n. 5
0
 def __init__(self):
     """Initialize the DependencyTrigger object."""
     self.fullType_ = environment.getType(common.ANY)
Esempio n. 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()
Esempio n. 7
0
 def __init__(self):
     """Initialize the ConstructorObjectId object."""
     self.fullType_ = environment.getType(common.STRING)
Esempio n. 8
0
 def postSerialize(self):
     """Perform post serialization initialization."""
     self.fullType_ = environment.getType(self.type_, self.superType_)
Esempio n. 9
0
 def __init__(self):
     """Initialize the OverwriteFlag object."""
     self.fullType_ = environment.getType(common.BOOL)
Esempio n. 10
0
 def __init__(self):
     """Initialize the DependencyTrigger object."""
     self.fullType_ = environment.getType(common.ANY)
Esempio n. 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(
     )
Esempio n. 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()
Esempio n. 13
0
 def __init__(self):
     """Initialize the ConstructorObjectId object."""
     self.fullType_ = environment.getType(common.STRING)
Esempio n. 14
0
 def postSerialize(self):
     """Perform post serialization initialization."""
     self.fullType_ = environment.getType(self.type_, self.superType_)