test_class.file: rest-backend/src/test/java/org/eclipse/steady/backend/cve/CveTest.java
test_class.identifier: CveTest
test_case.body: @Test
    public void testExtractCveIdentifier() {
      assertEquals("CVE-2014-0050", Cve.extractCveIdentifier("cVe-2014-0050"));
      assertEquals("CVE-2014-0050", Cve.extractCveIdentifier("cVe-2014-0050a"));
      assertEquals(null, Cve.extractCveIdentifier("cVe-2014-000a"));
      assertEquals("CVE-2014-005001010", Cve.extractCveIdentifier("cVe-2014-005001010-Foo"));
      assertEquals(null, Cve.extractCveIdentifier("Foo-cVe-2014-0050a"));
    }
test_case.class_method_signature: CveTest.testExtractCveIdentifier()
test_case.full_signature: @Test public void testExtractCveIdentifier()
test_case.identifier: testExtractCveIdentifier
test_case.invocations: assertEquals extractCveIdentifier assertEquals extractCveIdentifier assertEquals extractCveIdentifier assertEquals extractCveIdentifier assertEquals extractCveIdentifier
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testExtractCveIdentifier()
focal_class.declarator: CVE_REGEX = "(CVE-\\d{4}+-\\d{4,}).*"
focal_class.modifier: public static final
focal_class.original_string: public static final String CVE_REGEX = "(CVE-\\d{4}+-\\d{4,}).*";
focal_class.type: String
focal_class.var_name: CVE_REGEX
focal_class.declarator: CVE_PATTERN = Pattern.compile(CVE_REGEX)
focal_class.modifier: public static final
focal_class.original_string: public static final Pattern CVE_PATTERN = Pattern.compile(CVE_REGEX);
focal_class.type: Pattern
focal_class.var_name: CVE_PATTERN
focal_class.declarator: id
focal_class.modifier: @JsonProperty(value = "id")
    private
focal_class.original_string: @JsonProperty(value = "id")
    private String id;
focal_class.type: String
focal_class.var_name: id
focal_class.declarator: published
focal_class.modifier: @JsonProperty(value = "Published")
    @JsonFormat(
        shape = JsonFormat.Shape.STRING,
        pattern = "yyyy-MM-dd'T'HH:mm:ss.SSSXXX",
        timezone = "GMT")
    private
focal_class.original_string: @JsonProperty(value = "Published")
    @JsonFormat(
        shape = JsonFormat.Shape.STRING,
        pattern = "yyyy-MM-dd'T'HH:mm:ss.SSSXXX",
        timezone = "GMT")
    private java.util.Calendar published;
focal_class.type: java.util.Calendar
focal_class.var_name: published
focal_class.declarator: modified
focal_class.modifier: @JsonProperty(value = "Modified")
    @JsonFormat(
        shape = JsonFormat.Shape.STRING,
        pattern = "yyyy-MM-dd'T'HH:mm:ss.SSSXXX",
        timezone = "GMT")
    private
focal_class.original_string: @JsonProperty(value = "Modified")
    @JsonFormat(
        shape = JsonFormat.Shape.STRING,
        pattern = "yyyy-MM-dd'T'HH:mm:ss.SSSXXX",
        timezone = "GMT")
    private java.util.Calendar modified;
focal_class.type: java.util.Calendar
focal_class.var_name: modified
focal_class.declarator: cvssScore = null
focal_class.modifier: @JsonProperty(value = "cvss")
    private
focal_class.original_string: @JsonProperty(value = "cvss")
    private Float cvssScore = null;
focal_class.type: Float
focal_class.var_name: cvssScore
focal_class.declarator: cvssVersion = null
focal_class.modifier: @JsonProperty(value = "cvssVersion")
    private
focal_class.original_string: @JsonProperty(value = "cvssVersion")
    private String cvssVersion = null;
focal_class.type: String
focal_class.var_name: cvssVersion
focal_class.declarator: cvssVector = null
focal_class.modifier: @JsonProperty(value = "cvssVector")
    private
focal_class.original_string: @JsonProperty(value = "cvssVector")
    private String cvssVector = null;
focal_class.type: String
focal_class.var_name: cvssVector
focal_class.declarator: summary
focal_class.modifier: @JsonProperty(value = "summary")
    private
focal_class.original_string: @JsonProperty(value = "summary")
    private String summary;
focal_class.type: String
focal_class.var_name: summary
focal_class.file: rest-backend/src/main/java/org/eclipse/steady/backend/cve/Cve.java
focal_class.identifier: Cve
focal_class.class_method_signature: Cve.Cve()
focal_class.full_signature: public  Cve()
focal_class.identifier: Cve
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.signature:  Cve()
focal_class.class_method_signature: Cve.getId()
focal_class.full_signature: public String getId()
focal_class.identifier: getId
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getId()
focal_class.class_method_signature: Cve.setId(String id)
focal_class.full_signature: public void setId(String id)
focal_class.identifier: setId
focal_class.modifiers: public
focal_class.parameters: (String id)
focal_class.return: void
focal_class.signature: void setId(String id)
focal_class.class_method_signature: Cve.getPublished()
focal_class.full_signature: public java.util.Calendar getPublished()
focal_class.identifier: getPublished
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: java.util.Calendar
focal_class.signature: java.util.Calendar getPublished()
focal_class.class_method_signature: Cve.setPublished(java.util.Calendar published)
focal_class.full_signature: public void setPublished(java.util.Calendar published)
focal_class.identifier: setPublished
focal_class.modifiers: public
focal_class.parameters: (java.util.Calendar published)
focal_class.return: void
focal_class.signature: void setPublished(java.util.Calendar published)
focal_class.class_method_signature: Cve.getModified()
focal_class.full_signature: public java.util.Calendar getModified()
focal_class.identifier: getModified
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: java.util.Calendar
focal_class.signature: java.util.Calendar getModified()
focal_class.class_method_signature: Cve.setModified(java.util.Calendar modified)
focal_class.full_signature: public void setModified(java.util.Calendar modified)
focal_class.identifier: setModified
focal_class.modifiers: public
focal_class.parameters: (java.util.Calendar modified)
focal_class.return: void
focal_class.signature: void setModified(java.util.Calendar modified)
focal_class.class_method_signature: Cve.getCvssScore()
focal_class.full_signature: public Float getCvssScore()
focal_class.identifier: getCvssScore
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Float
focal_class.signature: Float getCvssScore()
focal_class.class_method_signature: Cve.setCvssScore(Float cvss)
focal_class.full_signature: public void setCvssScore(Float cvss)
focal_class.identifier: setCvssScore
focal_class.modifiers: public
focal_class.parameters: (Float cvss)
focal_class.return: void
focal_class.signature: void setCvssScore(Float cvss)
focal_class.class_method_signature: Cve.getCvssVersion()
focal_class.full_signature: public String getCvssVersion()
focal_class.identifier: getCvssVersion
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getCvssVersion()
focal_class.class_method_signature: Cve.setCvssVersion(String cvssVersion)
focal_class.full_signature: public void setCvssVersion(String cvssVersion)
focal_class.identifier: setCvssVersion
focal_class.modifiers: public
focal_class.parameters: (String cvssVersion)
focal_class.return: void
focal_class.signature: void setCvssVersion(String cvssVersion)
focal_class.class_method_signature: Cve.getCvssVector()
focal_class.full_signature: public String getCvssVector()
focal_class.identifier: getCvssVector
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getCvssVector()
focal_class.class_method_signature: Cve.setCvssVector(String cvssVector)
focal_class.full_signature: public void setCvssVector(String cvssVector)
focal_class.identifier: setCvssVector
focal_class.modifiers: public
focal_class.parameters: (String cvssVector)
focal_class.return: void
focal_class.signature: void setCvssVector(String cvssVector)
focal_class.class_method_signature: Cve.getSummary()
focal_class.full_signature: public String getSummary()
focal_class.identifier: getSummary
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getSummary()
focal_class.class_method_signature: Cve.setSummary(String summary)
focal_class.full_signature: public void setSummary(String summary)
focal_class.identifier: setSummary
focal_class.modifiers: public
focal_class.parameters: (String summary)
focal_class.return: void
focal_class.signature: void setSummary(String summary)
focal_class.class_method_signature: Cve.toString()
focal_class.full_signature: @Override public String toString()
focal_class.identifier: toString
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String toString()
focal_class.class_method_signature: Cve.extractCveIdentifier(String _string)
focal_class.full_signature: public static final String extractCveIdentifier(String _string)
focal_class.identifier: extractCveIdentifier
focal_class.modifiers: public static final
focal_class.parameters: (String _string)
focal_class.return: String
focal_class.signature: String extractCveIdentifier(String _string)
focal_method.body: public static final String extractCveIdentifier(String _string) {
      if (_string == null) return null;
      final Matcher m = CVE_PATTERN.matcher(_string.toUpperCase());
      if (m.matches()) return m.group(1);
      else return null;
    }
focal_method.class_method_signature: Cve.extractCveIdentifier(String _string)
focal_method.full_signature: public static final String extractCveIdentifier(String _string)
focal_method.identifier: extractCveIdentifier
focal_method.invocations: matcher toUpperCase matches group
focal_method.modifiers: public static final
focal_method.parameters: (String _string)
focal_method.return: String
focal_method.signature: String extractCveIdentifier(String _string)