com.sun.jersey.server.impl.model.parameter.multivalued
Class StringReaderProviders.TypeFromStringEnum

java.lang.Object
  extended by com.sun.jersey.server.impl.model.parameter.multivalued.StringReaderProviders.TypeFromString
      extended by com.sun.jersey.server.impl.model.parameter.multivalued.StringReaderProviders.TypeFromStringEnum
All Implemented Interfaces:
StringReaderProvider
Enclosing class:
StringReaderProviders

public static class StringReaderProviders.TypeFromStringEnum
extends StringReaderProviders.TypeFromString


Constructor Summary
StringReaderProviders.TypeFromStringEnum()
           
 
Method Summary
 StringReader getStringReader(Class type, Type genericType, Annotation[] annotations)
          Obtain a StringReader that can produce an instance of a particular type from a string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringReaderProviders.TypeFromStringEnum

public StringReaderProviders.TypeFromStringEnum()
Method Detail

getStringReader

public StringReader getStringReader(Class type,
                                    Type genericType,
                                    Annotation[] annotations)
Description copied from interface: StringReaderProvider
Obtain a StringReader that can produce an instance of a particular type from a string.

Specified by:
getStringReader in interface StringReaderProvider
Overrides:
getStringReader in class StringReaderProviders.TypeFromString
Parameters:
type - the class of object to be produced.
genericType - the type of object to be produced. E.g. if the string is to be converted into a method parameter, this will be the formal type of the method parameter as returned by Class.getGenericParameterTypes.
annotations - an array of the annotations on the declaration of the artifact that will be initialized with the produced instance. E.g. if the string is to be converted into a method parameter, this will be the annotations on that parameter returned by Class.getParameterAnnotations.
Returns:
the string reader, otherwise null.


Copyright © 2013 Oracle Corporation. All Rights Reserved.