public enum Formatters extends java.lang.Enum<Formatters> implements Formatter
Formatter
instances used in constructing a human-readable form for a specified
Archive
.Modifier and Type | Field and Description |
---|---|
private Formatter |
formatter
Internal formatter type, used as a delegate to make
Formatters itself a Formatter |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
format(Archive<?> archive)
Returns a formatted view of the specified archive
|
static Formatters |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Formatters[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Formatters VERBOSE
public static final Formatters SIMPLE
private final Formatter formatter
Formatters
itself a Formatter
public static Formatters[] values()
for (Formatters c : Formatters.values()) System.out.println(c);
public static Formatters valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.lang.String format(Archive<?> archive) throws java.lang.IllegalArgumentException
format
in interface Formatter
java.lang.IllegalArgumentException
- If the archive is not specifiedFormatter.format(org.jboss.shrinkwrap.api.Archive)