SourceForge.net Logo
aXSL API 0.2

org.axsl.common.value
Enum PageNumberTreatment

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

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

An enumeration of possible "page-number-treatment" options.


Enum Constant Summary
LINK
          Page numbers in the index should be hyperlinks back to the source of the reference.
NO_LINK
          Page numbers in the index are not links.
 
Method Summary
 boolean isLink()
          Indicates whether page numbers should be linked.
static PageNumberTreatment valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static PageNumberTreatment[] 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

LINK

public static final PageNumberTreatment LINK
Page numbers in the index should be hyperlinks back to the source of the reference.


NO_LINK

public static final PageNumberTreatment NO_LINK
Page numbers in the index are not links.

Method Detail

values

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

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

valueOf

public static PageNumberTreatment 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

isLink

public boolean isLink()
Indicates whether page numbers should be linked.

Returns:
True iff page numbers should be linked.

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.