<s> """<STR_LIT>""" <EOL> from kraken . core . objects . attributes . attribute import Attribute <EOL> from kraken . core . kraken_system import ks <EOL> class StringAttribute ( Attribute ) : <EOL> """<STR_LIT>""" <EOL> def __init__ ( self , name , value = "<STR_LIT>" , parent = None ) : <EOL> super ( StringAttribute , self ) . __init__ ( name , value = value , parent = parent ) <EOL> if not isinstance ( value , basestring ) : <EOL> raise TypeError ( "<STR_LIT>" + str ( value ) ) <EOL> def setValue ( self , value ) : <EOL> """<STR_LIT>""" <EOL> if not isinstance ( value , basestring ) : <EOL> raise TypeError ( "<STR_LIT>" + str ( value ) ) <EOL> super ( StringAttribute , self ) . setValue ( str ( value ) ) <EOL> return True <EOL> def getRTVal ( self ) : <EOL> """<STR_LIT>""" <EOL> return ks . rtVal ( '<STR_LIT>' , self . _value ) <EOL> def getDataType ( self ) : <EOL> """<STR_LIT>""" <EOL> return '<STR_LIT>' </s>
