SourceForge.net Logo
aXSL API 0.2

org.axsl.common.value
Enum SwitchTo

java.lang.Object
  extended by java.lang.Enum<SwitchTo>
      extended by org.axsl.common.value.SwitchTo
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<SwitchTo>

public enum SwitchTo
extends java.lang.Enum<SwitchTo>

Enumeration of possible switch-to values.

See Also:
"XSL-FO, 1.1, Section 7.23.11 (page 359)."

Enum Constant Summary
NAME_LIST
          A list of one or more objects that can be switched to is provided separately.
XSL_ANY
          When the switch is activated, the user is allowed to select any other sibling.
XSL_FOLLOWING
          When the switch is activated, replace with the next sibling.
XSL_PRECEDING
          When the switch is activated, replace with the preceding sibling.
 
Method Summary
static SwitchTo valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static SwitchTo[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

XSL_PRECEDING

public static final SwitchTo XSL_PRECEDING
When the switch is activated, replace with the preceding sibling.


XSL_FOLLOWING

public static final SwitchTo XSL_FOLLOWING
When the switch is activated, replace with the next sibling.


XSL_ANY

public static final SwitchTo XSL_ANY
When the switch is activated, the user is allowed to select any other sibling.


NAME_LIST

public static final SwitchTo NAME_LIST
A list of one or more objects that can be switched to is provided separately.

Method Detail

values

public static final SwitchTo[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(SwitchTo c : SwitchTo.values())
        System.out.println(c);

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

valueOf

public static SwitchTo 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 name

SourceForge.net Logo
aXSL API 0.2

This documentation was created August 8 2007 by The aXSL Group and may be freely copied. See license for details.