Enum VerboseFormatter
- java.lang.Object
-
- java.lang.Enum<VerboseFormatter>
-
- org.jboss.shrinkwrap.api.formatter.VerboseFormatter
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<VerboseFormatter>
,Formatter
enum VerboseFormatter extends java.lang.Enum<VerboseFormatter> implements Formatter
Formatter
implementation to provide an "ls -l"-esque output for anArchive
, listing all internal contents in sorted order- Version:
- $Revision: $
-
-
Enum Constant Summary
Enum Constants Enum Constant Description INSTANCE
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.String
ROOT
Root character "/"
-
Constructor Summary
Constructors Modifier Constructor Description private
VerboseFormatter()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private void
format(java.lang.StringBuilder sb, Node node)
java.lang.String
format(Archive<?> archive)
Returns a formatted view of the specified archivestatic VerboseFormatter
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static VerboseFormatter[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INSTANCE
public static final VerboseFormatter INSTANCE
-
-
Field Detail
-
ROOT
private static final java.lang.String ROOT
Root character "/"- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static VerboseFormatter[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (VerboseFormatter c : VerboseFormatter.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static VerboseFormatter valueOf(java.lang.String name)
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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
format
public java.lang.String format(Archive<?> archive) throws java.lang.IllegalArgumentException
Description copied from interface:Formatter
Returns a formatted view of the specified archive
-
format
private void format(java.lang.StringBuilder sb, Node node)
-
-