com.atlassian.jira.plugin.aboutpagepanel
Class BomParserImpl

java.lang.Object
  extended by com.atlassian.jira.plugin.aboutpagepanel.BomParserImpl
All Implemented Interfaces:
BomParser

public class BomParserImpl
extends Object
implements BomParser


Constructor Summary
BomParserImpl()
           
 
Method Summary
 List<AboutPagePanelModuleDescriptorImpl.Material> extractLgplMaterials(String bomContents)
          Extracts LGPL information from a String.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BomParserImpl

public BomParserImpl()
Method Detail

extractLgplMaterials

public List<AboutPagePanelModuleDescriptorImpl.Material> extractLgplMaterials(String bomContents)
Description copied from interface: BomParser
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

Specified by:
extractLgplMaterials in interface BomParser
Parameters:
bomContents - usually the complete contents of a bom.csv file
Returns:
a list of Materials that fall under the LGPL license


Copyright © 2002-2014 Atlassian. All Rights Reserved.