Class LicenseTemplateRule


  • public class LicenseTemplateRule
    extends Object
    Implements a license rule
    Author:
    Gary O'Neall
    • Method Detail

      • parseLicenseTemplateRule

        public void parseLicenseTemplateRule​(String parseableLicenseTemplateRule)
                                      throws LicenseTemplateRuleException
        Parse a license template rule string compliant with the SPDX license template text and replace all properties with the parsed values
        Parameters:
        parseableLicenseTemplateRule - String representation of a license template rule
        Throws:
        LicenseTemplateRuleException - if the license template could not be parsed
      • getOriginal

        public String getOriginal()
        Returns:
        the original
      • setOriginal

        public void setOriginal​(String original)
        Parameters:
        original - the original to set
      • getName

        public String getName()
        Returns:
        the name
      • setName

        public void setName​(String name)
        Parameters:
        name - the name to set
      • getExample

        public String getExample()
        Returns:
        the example
      • setExample

        public void setExample​(String example)
        Parameters:
        example - the example to set
      • getMatch

        public String getMatch()
        Returns:
        the match
      • setMatch

        public void setMatch​(String match)
        Parameters:
        match - the match to set