global.sandbox.xmlutilities
Enum OutputFormat.Boolean

java.lang.Object
  extended by java.lang.Enum<OutputFormat.Boolean>
      extended by global.sandbox.xmlutilities.OutputFormat.Boolean
All Implemented Interfaces:
OutputFormat.ConfigurationValue, Serializable, Comparable<OutputFormat.Boolean>
Enclosing class:
OutputFormat

public static enum OutputFormat.Boolean
extends Enum<OutputFormat.Boolean>
implements OutputFormat.ConfigurationValue

Represents Boolean value with appropriate value expected by Transformer.

Version:
1.2
Author:
Petr Hadraba

Enum Constant Summary
FALSE
          NO.
NO
          NO.
TRUE
          YES.
YES
          YES.
 
Field Summary
private  String value
          Appropriate code.
 
Method Summary
 String getValue()
          Returns code required by Transformer#setOutputProperties(java.util.Properties).
static OutputFormat.Boolean valueOf(String name)
          Returns the enum constant of this type with the specified name.
static OutputFormat.Boolean[] 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

YES

public static final OutputFormat.Boolean YES
YES.


NO

public static final OutputFormat.Boolean NO
NO.


TRUE

public static final OutputFormat.Boolean TRUE
YES.


FALSE

public static final OutputFormat.Boolean FALSE
NO.

Field Detail

value

private final String value
Appropriate code.

Method Detail

values

public static OutputFormat.Boolean[] 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 (OutputFormat.Boolean c : OutputFormat.Boolean.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static OutputFormat.Boolean valueOf(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:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

getValue

public String getValue()
Returns code required by Transformer#setOutputProperties(java.util.Properties).

Specified by:
getValue in interface OutputFormat.ConfigurationValue
Returns:
text


Copyright © 2006–2018. All rights reserved.