|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<Formatters> org.jboss.shrinkwrap.api.formatter.Formatters
public enum Formatters
Available pre-configured Formatter
instances
used in constructing a human-readable form
for a specified Archive
.
Enum Constant Summary | |
---|---|
SIMPLE
Formatter implementation to provide a simple, one-line
description of an Archive , including its name. |
|
VERBOSE
Formatter implementation to provide an "ls -l"-esque
output for an Archive , listing all internal contents
in sorted order. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final Formatters VERBOSE
Formatter
implementation to provide an "ls -l"-esque
output for an Archive
, listing all internal contents
in sorted order.
public static final Formatters SIMPLE
Formatter
implementation to provide a simple, one-line
description of an Archive
, including its name.
Method Detail |
---|
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 name
java.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)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |