|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<AxslValue>
org.foray.fotree.axsl.AxslValue
public enum AxslValue
An enumeration of the hard-coded XSL-FO property values.
Enum Constant Summary | |
---|---|
AUTHOR
Constant indicating an "author" property value. |
|
KEYWORDS
Constant indicating a "keywords" property value. |
|
SUBJECT
Constant indicating a "subject" property value. |
|
TITLE
Constant indicating a "title" property value. |
Method Summary | |
---|---|
String |
toXslFo()
Returns the XSL-FO name for this value. |
static AxslValue |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static AxslValue[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
static AxslValue |
xslValueOf(String xslName)
Similar to the Java 1.5 Enum valueOf(String) method, but operates on the XSL-FO value instead of its enumerated name. |
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 AxslValue AUTHOR
public static final AxslValue KEYWORDS
public static final AxslValue SUBJECT
public static final AxslValue TITLE
Method Detail |
---|
public static AxslValue[] values()
for (AxslValue c : AxslValue.values()) System.out.println(c);
public static AxslValue 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 toXslFo()
AUTHOR
converts to
the XSL-FO name "author".
public static AxslValue xslValueOf(String xslName)
AUTHOR
.
The Java 1.5 Enum valueOf(String) method would operate on the enum name
"AUTHOR".
This method instead operates on "author".
xslName
- The XSL-FO value for which the enumerated value is needed.
xslName
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |