Enum Product
- All Implemented Interfaces:
Serializable
,Comparable<Product>
,java.lang.constant.Constable
Products generated by velocity templates.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionProduces a directories report.Produces a LICENSE report.Produces a missing license report.Produces a NOTICE report.Produces an xml template. -
Method Summary
Modifier and TypeMethodDescriptionGets result implemented by this product.Gets the template name that generates this product.static Product
Returns the enum constant of this type with the specified name.static Product[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.writerFrom
(ResultWriterFactory writerFactory) Builds writer for this product.
-
Enum Constant Details
-
NOTICE
Produces a NOTICE report. -
LICENSE
Produces a LICENSE report. -
DIRECTORIES_REPORT_TEMPLATE
Produces a directories report. -
MISSING_LICENSE_REPORT_TEMPLATE
Produces a missing license report. -
XML_TEMPLATE
Produces an xml template.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
getTemplate
Gets the template name that generates this product.- Returns:
- not null
-
getResult
Gets result implemented by this product.- Returns:
- not null
-
writerFrom
Builds writer for this product.- Parameters:
writerFactory
- not null- Returns:
- not null
- Throws:
IOException
- when write fails
-