com.atlassian.jira.license.thirdparty
Interface BomParser

All Known Implementing Classes:
BomParserImpl

@ExperimentalApi
public interface BomParser

Parses Bill Of Materials files into information that can be used by plugins.

Since:
6.0.2

Method Summary
 List<AboutPagePanelModuleDescriptorImpl.Material> extractLgplMaterials(String bomContents)
          Extracts LGPL information from a String.
 

Method Detail

extractLgplMaterials

List<AboutPagePanelModuleDescriptorImpl.Material> extractLgplMaterials(String bomContents)
Extracts LGPL information from a String. The String should be csv formatted and may contain multiple lines. Each line should contain exactly 5 elements, separated by commas. Lines beginning with # should be treated as comments. Only lines containing the text GNU Lesser General Public License will be considered.

For example:

For example: Abdera Core,org.apache.abdera:abdera-core:bundle:1.1,Apache License 2.0,http://abdera.apache.org/abdera-core,binary

Parameters:
bomContents - usually the complete contents of a bom.csv file
Returns:
a list of Materials that fall under the LGPL license
Since:
6.0.2


Copyright © 2002-2014 Atlassian. All Rights Reserved.