def setDerivedTypeContents(self, extensions=None, restrictions=None):
if extensions:<EOL><INDENT>ofwhat = list(self.ofwhat)<EOL>if type(extensions) in _seqtypes:<EOL><INDENT>ofwhat += list(extensions)<EOL><DEDENT>else:<EOL><INDENT>ofwhat.append(extensions)<EOL><DEDENT><DEDENT>elif restrictions:<EOL><INDENT>if type(restrictions) in _seqtypes:<EOL><INDENT>ofwhat = restrictions<EOL><DEDENT>else:<EOL><INDENT>ofwhat = (restrictions,)<EOL><DEDENT><DEDENT>else:<EOL><INDENT>return<EOL><DEDENT>self.ofwhat = tuple(ofwhat)<EOL>self.lenofwhat = len(self.ofwhat)<EOL>
For derived types set appropriate parameter and