'Return the values for this attribute as stored in an AFF4Object.'

def GetValues(self, fd):

    result = None
    for result in fd.new_attributes.get(self, []):
        if self.field_names:
            for x in self.GetSubFields(result, self.field_names):
                (yield x)
        else:
            (yield result)
    for result in fd.synced_attributes.get(self, []):
        result = result.ToRDFValue()
        if (result is not None):
            if self.field_names:
                for x in self.GetSubFields(result, self.field_names):
                    (yield x)
            else:
                (yield result)
    if (result is None):
        default = self.GetDefault(fd)
        if (default is not None):
            (yield default)
