|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use JavaType | |
---|---|
org.codehaus.jackson | Main public API classes of the core streaming JSON
processor: most importantly JsonFactory
used for constructing
Json parser (JsonParser )
and generator
(JsonParser )
instances. |
org.codehaus.jackson.jaxrs | Jackson-based JAX-RS provider that can automatically serialize and deserialize resources for JSON content type (MediaType). |
org.codehaus.jackson.map | Contains basic mapper (conversion) functionality that
allows for converting between regular streaming json content and
Java objects (beans or Tree Model: support for both is via
ObjectMapper class, as well
as convenience methods included in
JsonParser |
org.codehaus.jackson.map.deser | Contains implementation classes of deserialization part of data binding. |
org.codehaus.jackson.map.introspect | Functionality needed for Bean introspection, required for detecting accessors and mutators for Beans, as well as locating and handling method annotations. |
org.codehaus.jackson.map.type | Concrete JavaType implementations. |
org.codehaus.jackson.type | Contains classes needed for type introspection, mostly used by data binding functionality. |
Uses of JavaType in org.codehaus.jackson |
---|
Methods in org.codehaus.jackson with parameters of type JavaType | ||
---|---|---|
abstract
|
ObjectCodec.readValue(JsonParser jp,
JavaType valueType)
Method to deserialize JSON content as tree expressed using set of JsonNode instances. |
Uses of JavaType in org.codehaus.jackson.jaxrs |
---|
Methods in org.codehaus.jackson.jaxrs that return JavaType | |
---|---|
protected JavaType |
JacksonJsonProvider._convertType(Type jdkType)
Method used to construct a JDK generic type into type definition Jackson understands. |
Uses of JavaType in org.codehaus.jackson.map |
---|
Fields in org.codehaus.jackson.map declared as JavaType | |
---|---|
protected JavaType |
BeanDescription._type
Bean type information, including raw class and possible * generics information |
Fields in org.codehaus.jackson.map with type parameters of type JavaType | |
---|---|
protected ConcurrentHashMap<JavaType,JsonDeserializer<Object>> |
ObjectMapper._rootDeserializers
We will use a separate main-level Map for keeping track of root-level deserializers. |
Methods in org.codehaus.jackson.map that return JavaType | |
---|---|
JavaType |
BeanDescription.getType()
|
Methods in org.codehaus.jackson.map with parameters of type JavaType | ||
---|---|---|
protected Object |
ObjectMapper._convert(Object fromValue,
JavaType toValueType)
|
|
protected JsonDeserializer<Object> |
ObjectMapper._findRootDeserializer(JavaType valueType)
Method called to locate deserializer for the passed root-level value. |
|
protected Object |
ObjectMapper._readMapAndClose(JsonParser jp,
JavaType valueType)
|
|
protected Object |
ObjectMapper._readValue(JsonParser jp,
JavaType valueType,
DeserializationConfig cfg)
Actual implementation of value reading+binding operation. |
|
boolean |
ObjectMapper.canDeserialize(JavaType type)
Method that can be called to check whether mapper thinks it could deserialize an Object of given type. |
|
|
ObjectMapper.convertValue(Object fromValue,
JavaType toValueType)
|
|
abstract JsonDeserializer<Object> |
DeserializerFactory.createBeanDeserializer(DeserializationConfig config,
JavaType type,
DeserializerProvider p)
Method called to create (or, for completely immutable deserializers, reuse) a deserializer that can convert Json content into values of specified Java "bean" (POJO) type. |
|
abstract KeyDeserializer |
DeserializerProvider.findKeyDeserializer(DeserializationConfig config,
JavaType type)
Method called to get hold of a deserializer to use for deserializing keys for Map . |
|
abstract JsonDeserializer<Object> |
DeserializerProvider.findValueDeserializer(DeserializationConfig config,
JavaType type,
JavaType referrer,
String refPropName)
Method called to get hold of a deserializer for a value of given type; or if no such deserializer can be found, a default handler (which may do a best-effort generic serialization or just simply throw an exception when invoked). |
|
abstract T |
ClassIntrospector.forDeserialization(DeserializationConfig cfg,
JavaType type,
ClassIntrospector.MixInResolver r)
Factory method that constructs an introspector that has all information needed for deserialization purposes. |
|
abstract boolean |
DeserializerProvider.hasValueDeserializerFor(DeserializationConfig config,
JavaType type)
Method called to find out whether provider would be able to find a deserializer for given type, using a root reference (i.e. |
|
|
DeserializationConfig.introspect(JavaType type)
Method that will introspect full bean properties for the purpose of building a bean deserializer |
|
|
ObjectMapper.readValue(byte[] src,
int offset,
int len,
JavaType valueType)
|
|
|
ObjectMapper.readValue(File src,
JavaType valueType)
|
|
|
ObjectMapper.readValue(InputStream src,
JavaType valueType)
|
|
|
ObjectMapper.readValue(JsonParser jp,
JavaType valueType)
Method to deserialize Json content into a Java type, reference to which is passed as argument. |
|
|
ObjectMapper.readValue(JsonParser jp,
JavaType valueType,
DeserializationConfig cfg)
Method to deserialize Json content into a Java type, reference to which is passed as argument. |
|
|
ObjectMapper.readValue(Reader src,
JavaType valueType)
|
|
|
ObjectMapper.readValue(String content,
JavaType valueType)
|
|
|
ObjectMapper.readValue(URL src,
JavaType valueType)
|
Constructors in org.codehaus.jackson.map with parameters of type JavaType | |
---|---|
BeanDescription(JavaType type)
|
Uses of JavaType in org.codehaus.jackson.map.deser |
---|
Fields in org.codehaus.jackson.map.deser declared as JavaType | |
---|---|
protected JavaType |
BeanDeserializer._beanType
|
Fields in org.codehaus.jackson.map.deser with type parameters of type JavaType | |
---|---|
protected ConcurrentHashMap<JavaType,JsonDeserializer<Object>> |
StdDeserializerProvider._cachedDeserializers
We will also cache some dynamically constructed deserializers; specifically, ones that are expensive to construct. |
Methods in org.codehaus.jackson.map.deser with type parameters of type JavaType | ||
---|---|---|
protected
|
BasicDeserializerFactory.modifyTypeByAnnotation(DeserializationConfig config,
Annotated a,
T type)
Method called to see if given method has annotations that indicate a more specific type than what the argument specifies. |
Methods in org.codehaus.jackson.map.deser that return JavaType | |
---|---|
JavaType |
SettableAnyProperty.getType()
|
JavaType |
SettableBeanProperty.getType()
|
JavaType |
MapDeserializer.getValueType()
|
JavaType |
BeanDeserializer.getValueType()
|
JavaType |
StdDeserializer.getValueType()
|
protected JavaType |
BasicDeserializerFactory.resolveType(DeserializationConfig config,
BasicBeanDescription beanDesc,
Type rawType,
Annotated a)
Helper method used to resolve method return types and field types. |
Methods in org.codehaus.jackson.map.deser that return types with arguments of type JavaType | |
---|---|
static HashMap<JavaType,JsonDeserializer<Object>> |
ArrayDeserializers.getAll()
|
Methods in org.codehaus.jackson.map.deser with parameters of type JavaType | |
---|---|
protected JsonDeserializer<Object> |
StdDeserializerProvider._createAndCacheValueDeserializer(DeserializationConfig config,
JavaType type,
JavaType referrer,
String refPropName)
Method that will try to create a deserializer for given type, and resolve and cache it if necessary |
protected JsonDeserializer<Object> |
StdDeserializerProvider._createDeserializer(DeserializationConfig config,
JavaType type,
JavaType referrer,
String refPropName)
|
protected JsonDeserializer<Object> |
StdDeserializerProvider._findCachedDeserializer(JavaType type)
|
protected KeyDeserializer |
StdDeserializerProvider._handleUnknownKeyDeserializer(JavaType type)
|
protected JsonDeserializer<Object> |
StdDeserializerProvider._handleUnknownValueDeserializer(JavaType type)
|
JsonDeserializer<Object> |
BeanDeserializerFactory.buildBeanDeserializer(DeserializationConfig config,
JavaType type,
BasicBeanDescription beanDesc)
Method that is to actually build a bean deserializer instance. |
JsonDeserializer<Object> |
BeanDeserializerFactory.buildThrowableDeserializer(DeserializationConfig config,
JavaType type,
BasicBeanDescription beanDesc)
|
protected BeanDeserializer |
BeanDeserializerFactory.constructBeanDeserializerInstance(DeserializationConfig config,
JavaType type,
BasicBeanDescription beanDesc)
Method for construcing "empty" deserializer: overridable to allow sub-classing of BeanDeserializer . |
protected ThrowableDeserializer |
BeanDeserializerFactory.constructThrowableDeserializerInstance(DeserializationConfig config,
JavaType type,
BasicBeanDescription beanDesc)
|
JsonDeserializer<Object> |
BasicDeserializerFactory.createBeanDeserializer(DeserializationConfig config,
JavaType type,
DeserializerProvider p)
|
JsonDeserializer<Object> |
CustomDeserializerFactory.createBeanDeserializer(DeserializationConfig config,
JavaType type,
DeserializerProvider p)
|
JsonDeserializer<Object> |
BeanDeserializerFactory.createBeanDeserializer(DeserializationConfig config,
JavaType type,
DeserializerProvider p)
Method that DeserializerProvider s call to create a new
deserializer for types other than Collections, Maps, arrays and
enums. |
protected JsonDeserializer<Object> |
StdDeserializer.findDeserializer(DeserializationConfig config,
DeserializerProvider provider,
JavaType type,
String propertyName,
Map<JavaType,JsonDeserializer<Object>> seen)
Helper method used to locate deserializers for properties the bean itself contains. |
KeyDeserializer |
StdDeserializerProvider.findKeyDeserializer(DeserializationConfig config,
JavaType type)
|
JsonDeserializer<Object> |
StdDeserializerProvider.findValueDeserializer(DeserializationConfig config,
JavaType type,
JavaType referrer,
String refPropName)
|
boolean |
StdDeserializerProvider.hasValueDeserializerFor(DeserializationConfig config,
JavaType type)
Method that can be called to find out whether a deserializer can be found for given type |
Method parameters in org.codehaus.jackson.map.deser with type arguments of type JavaType | |
---|---|
protected JsonDeserializer<Object> |
StdDeserializer.findDeserializer(DeserializationConfig config,
DeserializerProvider provider,
JavaType type,
String propertyName,
Map<JavaType,JsonDeserializer<Object>> seen)
Helper method used to locate deserializers for properties the bean itself contains. |
Constructors in org.codehaus.jackson.map.deser with parameters of type JavaType | |
---|---|
BeanDeserializer(JavaType type)
|
|
MapDeserializer(JavaType mapType,
Constructor<Map<Object,Object>> defCtor,
KeyDeserializer keyDeser,
JsonDeserializer<Object> valueDeser)
|
|
SettableAnyProperty(JavaType type,
Method setter)
|
|
SettableBeanProperty.CreatorProperty(String propName,
JavaType type,
Class<?> declaringClass,
int index)
|
|
SettableBeanProperty.FieldProperty(String propName,
JavaType type,
Field f)
|
|
SettableBeanProperty.MethodProperty(String propName,
JavaType type,
Method setter)
|
|
SettableBeanProperty.SetterlessProperty(String propName,
JavaType type,
Method getter)
|
|
SettableBeanProperty(String propName,
JavaType type)
|
|
ThrowableDeserializer(JavaType type)
|
Uses of JavaType in org.codehaus.jackson.map.introspect |
---|
Methods in org.codehaus.jackson.map.introspect with parameters of type JavaType | |
---|---|
BasicBeanDescription |
BasicClassIntrospector.forDeserialization(DeserializationConfig cfg,
JavaType type,
ClassIntrospector.MixInResolver r)
|
Constructors in org.codehaus.jackson.map.introspect with parameters of type JavaType | |
---|---|
BasicBeanDescription(JavaType type,
AnnotatedClass ac,
AnnotationIntrospector ai)
|
Uses of JavaType in org.codehaus.jackson.map.type |
---|
Subclasses of JavaType in org.codehaus.jackson.map.type | |
---|---|
class |
ArrayType
Array types represent Java arrays, both primitive and object valued. |
class |
CollectionType
Type that represents Java Collection types (Lists, Sets). |
class |
MapType
Type that represents Java Map types. |
class |
SimpleType
Simple types are defined as anything other than one of recognized container types (arrays, Collections, Maps). |
Fields in org.codehaus.jackson.map.type with type parameters of type JavaType | |
---|---|
protected LinkedHashMap<String,JavaType> |
SimpleType._typeParameters
For generic types we need to keep track of mapping from formal into actual types, to be able to resolve generic signatures. |
Methods in org.codehaus.jackson.map.type with type parameters of type JavaType | ||
---|---|---|
protected
|
TypeFactory._findParentType(Class<?> clz,
Class<T> expType)
Method that is to figure out actual type parameters that given class binds to generic types defined by given interface type. |
Methods in org.codehaus.jackson.map.type that return JavaType | |
---|---|
protected JavaType |
TypeFactory._fromArrayType(GenericArrayType type,
JavaType context)
|
protected JavaType |
TypeFactory._fromClass(Class<?> clz,
Map<String,JavaType> genericParams)
|
protected JavaType |
TypeFactory._fromParamType(ParameterizedType type,
JavaType context)
This method deals with parameterized types, that is, first class generic classes. |
JavaType |
TypeFactory._fromType(Type type,
JavaType context)
Factory method that can be used if type information is passed as Java typing returned from getGenericXxx methods
(usually for a return or argument type). |
protected JavaType |
TypeFactory._fromVariable(TypeVariable<?> type,
JavaType context)
|
protected JavaType |
TypeFactory._fromWildcard(WildcardType type,
JavaType context)
|
protected JavaType |
ArrayType._narrow(Class<?> subclass)
Handling of narrowing conversions for arrays is trickier: for now, it is not even allowed. |
protected JavaType |
MapType._narrow(Class<?> subclass)
|
protected JavaType |
SimpleType._narrow(Class<?> subclass)
|
protected JavaType |
CollectionType._narrow(Class<?> subclass)
|
protected JavaType |
TypeFactory._unknownType()
|
static JavaType |
TypeFactory.arrayType(Class<?> elementType)
Convenience factory method for constructing JavaType that
represent array that contains elements
of specified type. |
static JavaType |
TypeFactory.arrayType(JavaType elementType)
Convenience factory method for constructing JavaType that
represent array that contains elements
of specified type. |
static JavaType |
TypeFactory.collectionType(Class<? extends Collection> collectionType,
Class<?> elementType)
Convenience factory method for constructing JavaType that
represent Collection of specified type and contains elements
of specified type |
static JavaType |
TypeFactory.collectionType(Class<? extends Collection> collectionType,
JavaType elementType)
Convenience factory method for constructing JavaType that
represent Collection of specified type and contains elements
of specified type |
JavaType |
SimpleType.findVariableType(String name)
|
static JavaType |
TypeFactory.fromClass(Class<?> clz)
Deprecated. Use TypeFactory.type(Type) instead |
static JavaType |
TypeFactory.fromType(Type type)
Deprecated. Use TypeFactory.type(Type) instead |
static JavaType |
TypeFactory.fromType(Type type,
JavaType context)
Deprecated. Use TypeFactory.type(Type,JavaType) instead |
static JavaType |
TypeFactory.fromTypeReference(TypeReference<?> ref)
Deprecated. Use TypeFactory.type(Type) instead |
JavaType |
ArrayType.getContentType()
|
JavaType |
MapType.getContentType()
|
JavaType |
CollectionType.getContentType()
|
JavaType |
MapType.getKeyType()
|
static JavaType |
TypeFactory.mapType(Class<? extends Map> mapType,
Class<?> keyType,
Class<?> valueType)
Convenience factory method for constructing JavaType that
represent Map of specified type and contains elements
of specified type |
static JavaType |
TypeFactory.mapType(Class<? extends Map> mapType,
JavaType keyType,
JavaType valueType)
Convenience factory method for constructing JavaType that
represent Map of specified type and contains elements
of specified type |
JavaType |
ArrayType.narrowContentsBy(Class<?> contentClass)
For array types, both main type and content type can be modified; but ultimately they are interchangeable. |
JavaType |
MapType.narrowContentsBy(Class<?> contentClass)
|
JavaType |
SimpleType.narrowContentsBy(Class<?> subclass)
|
JavaType |
CollectionType.narrowContentsBy(Class<?> contentClass)
|
JavaType |
MapType.narrowKey(Class<?> keySubclass)
|
static JavaType |
TypeFactory.type(Type t)
Factory method for constructing JavaType from given
"raw" type; which may be anything from simple Class
to full generic type. |
static JavaType |
TypeFactory.type(Type type,
JavaType context)
Factory method that can use given context to resolve named generic types. |
static JavaType |
TypeFactory.type(TypeReference<?> ref)
Factory method that can be used if the full generic type has been passed using TypeReference . |
Methods in org.codehaus.jackson.map.type with parameters of type JavaType | |
---|---|
protected JavaType |
TypeFactory._fromArrayType(GenericArrayType type,
JavaType context)
|
protected JavaType |
TypeFactory._fromParamType(ParameterizedType type,
JavaType context)
This method deals with parameterized types, that is, first class generic classes. |
JavaType |
TypeFactory._fromType(Type type,
JavaType context)
Factory method that can be used if type information is passed as Java typing returned from getGenericXxx methods
(usually for a return or argument type). |
protected JavaType |
TypeFactory._fromVariable(TypeVariable<?> type,
JavaType context)
|
protected JavaType |
TypeFactory._fromWildcard(WildcardType type,
JavaType context)
|
static JavaType |
TypeFactory.arrayType(JavaType elementType)
Convenience factory method for constructing JavaType that
represent array that contains elements
of specified type. |
static JavaType |
TypeFactory.collectionType(Class<? extends Collection> collectionType,
JavaType elementType)
Convenience factory method for constructing JavaType that
represent Collection of specified type and contains elements
of specified type |
static CollectionType |
CollectionType.construct(Class<?> rawType,
JavaType elemT)
|
static MapType |
MapType.construct(Class<?> rawType,
JavaType keyT,
JavaType valueT)
|
static ArrayType |
ArrayType.construct(JavaType componentType)
|
static JavaType |
TypeFactory.fromType(Type type,
JavaType context)
Deprecated. Use TypeFactory.type(Type,JavaType) instead |
static JavaType |
TypeFactory.mapType(Class<? extends Map> mapType,
JavaType keyType,
JavaType valueType)
Convenience factory method for constructing JavaType that
represent Map of specified type and contains elements
of specified type |
static JavaType |
TypeFactory.type(Type type,
JavaType context)
Factory method that can use given context to resolve named generic types. |
Method parameters in org.codehaus.jackson.map.type with type arguments of type JavaType | |
---|---|
protected JavaType |
TypeFactory._fromClass(Class<?> clz,
Map<String,JavaType> genericParams)
|
static SimpleType |
SimpleType.construct(Class<?> cls,
Map<String,JavaType> typeParams)
|
Constructor parameters in org.codehaus.jackson.map.type with type arguments of type JavaType | |
---|---|
SimpleType(Class<?> cls,
Map<String,JavaType> typeParams)
|
Uses of JavaType in org.codehaus.jackson.type |
---|
Methods in org.codehaus.jackson.type that return JavaType | |
---|---|
protected abstract JavaType |
JavaType._narrow(Class<?> subclass)
|
protected JavaType |
JavaType._widen(Class<?> superclass)
Default implementation is just to call _narrow(java.lang.Class>) , since
underlying type construction is usually identical |
JavaType |
JavaType.findVariableType(String name)
Method that can be called to see if this type has generic type binding information for type variables, for given formal type parameter name. |
JavaType |
JavaType.getContentType()
Method for accessing content type of this type, if type has such a thing: simple types do not, structured types do (like arrays, Collections and Maps) |
JavaType |
JavaType.getKeyType()
Method for accessing key type for this type, assuming type has such a concept (only Map types do) |
JavaType |
JavaType.narrowBy(Class<?> subclass)
Method that can be called to do a "narrowing" conversions; that is, to return a type with a raw class that is assignable to the raw class of this type. |
abstract JavaType |
JavaType.narrowContentsBy(Class<?> contentClass)
|
JavaType |
JavaType.widenBy(Class<?> superclass)
Method that can be called to do a "widening" conversions; that is, to return a type with a raw class that could be assigned from this type. |
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |