|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<XmlProperty>
org.foray.fotree.xml.XmlProperty
public enum XmlProperty
An enumeration for property types in the xml: namespace.
Enum Constant Summary | |
---|---|
LANG
Constant indicating a "xml:lang" property. |
Method Summary | |
---|---|
String |
toStringUnparsed()
Returns the raw, unparsed value of this property type that would be found in an input file, or that would be meaningful to a user in a user message. |
static XmlProperty |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static XmlProperty[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
static XmlProperty |
xmlValueOf(String xmlName)
Similar to valueOf(String) method, but operates on the
XML name of the property 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 XmlProperty LANG
Method Detail |
---|
public static XmlProperty[] values()
for (XmlProperty c : XmlProperty.values()) System.out.println(c);
public static XmlProperty 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 toStringUnparsed()
PropertyType
toStringUnparsed
in interface PropertyType
public static XmlProperty xmlValueOf(String xmlName)
valueOf(String)
method, but operates on the
XML name of the property instead of its enumerated name.
For example, for the XML property "lang", the enum is
LANG
.
The valueOf(String)
method operates on the enum name "LANG".
This method instead operates on "lang".
xmlName
- The name of the XML property for which the enumerated
value is needed.
xmlName
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |