'Get the attributes value with optional default.
@param default: An optional value to be return when the
attribute\'s has not been set.
@type default: basestring
@return: The attribute\'s value, or I{default}
@rtype: L{Text}'

def getValue(self, default=Text('')):

    if self.hasText():
        return self.value
    else:
        return default
