public abstract class MapNotationParser<T> extends TypedNotationParser<java.util.Map,T> implements NotationParser<T>
Map<String, Object> to the target type. Subclasses should define a T parseMap() method which takes a parameter
for each key value required from the source map. Each parameter should be annotated with a @MapKey annotation, and can also
be annotated with a @optional annotation.| Constructor and Description |
|---|
MapNotationParser() |
| Modifier and Type | Method and Description |
|---|---|
void |
describe(java.util.Collection<java.lang.String> candidateFormats) |
protected java.lang.String |
get(java.util.Map<java.lang.String,java.lang.Object> args,
java.lang.String key) |
T |
parseType(java.util.Map values) |
parseNotationclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitparseNotationpublic void describe(java.util.Collection<java.lang.String> candidateFormats)
describe in interface NotationParser<T>describe in class TypedNotationParser<java.util.Map,T>public T parseType(java.util.Map values) throws UnsupportedNotationException
parseType in class TypedNotationParser<java.util.Map,T>UnsupportedNotationExceptionprotected java.lang.String get(java.util.Map<java.lang.String,java.lang.Object> args,
java.lang.String key)
Copyright © 2013. All rights reserved