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