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