toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case PatchFilterKey.arch:
      return 'ARCH';
    case PatchFilterKey.advisoryId:
      return 'ADVISORY_ID';
    case PatchFilterKey.bugzillaId:
      return 'BUGZILLA_ID';
    case PatchFilterKey.patchSet:
      return 'PATCH_SET';
    case PatchFilterKey.product:
      return 'PRODUCT';
    case PatchFilterKey.productFamily:
      return 'PRODUCT_FAMILY';
    case PatchFilterKey.classification:
      return 'CLASSIFICATION';
    case PatchFilterKey.cveId:
      return 'CVE_ID';
    case PatchFilterKey.epoch:
      return 'EPOCH';
    case PatchFilterKey.msrcSeverity:
      return 'MSRC_SEVERITY';
    case PatchFilterKey.name:
      return 'NAME';
    case PatchFilterKey.patchId:
      return 'PATCH_ID';
    case PatchFilterKey.section:
      return 'SECTION';
    case PatchFilterKey.priority:
      return 'PRIORITY';
    case PatchFilterKey.repository:
      return 'REPOSITORY';
    case PatchFilterKey.release:
      return 'RELEASE';
    case PatchFilterKey.severity:
      return 'SEVERITY';
    case PatchFilterKey.security:
      return 'SECURITY';
    case PatchFilterKey.version:
      return 'VERSION';
  }
}