public class EnumParser<E extends java.lang.Enum<E>> extends java.lang.Object implements PrimitiveParser<E>
Node into an enum constant.| Constructor and Description |
|---|
EnumParser(@NonNull java.lang.Class<E> type) |
EnumParser(@NonNull com.google.inject.TypeLiteral<E> type) |
| Modifier and Type | Method and Description |
|---|---|
E |
throwingParse(@NonNull Node node,
@NonNull java.lang.String string)
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitthrowingParsepublic EnumParser(@NonNull java.lang.Class<E> type)
@Inject public EnumParser(@NonNull com.google.inject.TypeLiteral<E> type)
public E throwingParse(@NonNull Node node, @NonNull java.lang.String string) throws XMLException
PrimitiveParserthrowingParse in interface PrimitiveParser<E extends java.lang.Enum<E>>node - the nodestring - the node valueXMLException - if an exception occurred while parsing