public enum Formatters extends Enum<Formatters> implements Formatter
Formatter
instances used in constructing a human-readable form for a specified
Archive
.Modifier and Type | Method and Description |
---|---|
String |
format(Archive<?> archive)
Returns a formatted view of the specified archive
|
static Formatters |
valueOf(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
public static Formatters[] values()
for (Formatters c : Formatters.values()) System.out.println(c);
public static Formatters valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String format(Archive<?> archive) throws IllegalArgumentException
format
in interface Formatter
IllegalArgumentException
- If the archive is not specifiedFormatter.format(org.jboss.shrinkwrap.api.Archive)
Copyright © 2016 JBoss by Red Hat. All rights reserved.