|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<OutputFormat.OutputMethod>
global.sandbox.xmlutilities.OutputFormat.OutputMethod
public static enum OutputFormat.OutputMethod
Typed representation of output method with appropriate and expected values by Transformer
.
Enum Constant Summary | |
---|---|
CUSTOM
Custom method. |
|
HTML
HTML output method. |
|
TEXT
Plain text output method. |
|
XML
XML output method. |
Field Summary | |
---|---|
private String |
defaultCode
Default code. |
private String |
value
Used for custom value. |
Method Summary | |
---|---|
String |
getValue()
Returns code required by Transformer#setOutputProperties(java.util.Properties) . |
void |
setValue(String code)
Sets value for custom method. |
static OutputFormat.OutputMethod |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static OutputFormat.OutputMethod[] |
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 OutputFormat.OutputMethod XML
public static final OutputFormat.OutputMethod HTML
public static final OutputFormat.OutputMethod TEXT
public static final OutputFormat.OutputMethod CUSTOM
Field Detail |
---|
private final String defaultCode
private String value
Method Detail |
---|
public static OutputFormat.OutputMethod[] values()
for (OutputFormat.OutputMethod c : OutputFormat.OutputMethod.values()) System.out.println(c);
public static OutputFormat.OutputMethod valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is nullpublic String getValue()
Transformer#setOutputProperties(java.util.Properties)
.
getValue
in interface OutputFormat.ConfigurationValue
public void setValue(String code)
code
- code
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |