org.codehaus.jackson.map.type
Class MapType

java.lang.Object
  extended by org.codehaus.jackson.type.JavaType
      extended by org.codehaus.jackson.map.type.MapType

public final class MapType
extends JavaType

Type that represents Java Map types.


Field Summary
 
Fields inherited from class org.codehaus.jackson.type.JavaType
_class, _hashCode
 
Method Summary
protected  JavaType _narrow(Class<?> subclass)
           
static MapType construct(Class<?> rawType, JavaType keyT, JavaType valueT)
           
 boolean equals(Object o)
           
 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 getKeyType()
          Method for accessing key type for this type, assuming type has such a concept (only Map types do)
 boolean isContainerType()
           
 JavaType narrowContentsBy(Class<?> contentClass)
           
 JavaType narrowKey(Class<?> keySubclass)
           
 String toString()
           
 
Methods inherited from class org.codehaus.jackson.type.JavaType
_assertSubclass, _widen, findVariableType, getHandler, getRawClass, hashCode, hasRawClass, isAbstract, isArrayType, isConcrete, isEnumType, isInterface, isPrimitive, isThrowable, narrowBy, setHandler, widenBy
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

construct

public static MapType construct(Class<?> rawType,
                                JavaType keyT,
                                JavaType valueT)

_narrow

protected JavaType _narrow(Class<?> subclass)
Specified by:
_narrow in class JavaType

narrowContentsBy

public JavaType narrowContentsBy(Class<?> contentClass)
Specified by:
narrowContentsBy in class JavaType

isContainerType

public boolean isContainerType()
Specified by:
isContainerType in class JavaType
Returns:
True if type represented is a container type; this includes array, Map and Collection types.

narrowKey

public JavaType narrowKey(Class<?> keySubclass)

getKeyType

public JavaType getKeyType()
Description copied from class: JavaType
Method for accessing key type for this type, assuming type has such a concept (only Map types do)

Overrides:
getKeyType in class JavaType

getContentType

public JavaType getContentType()
Description copied from class: JavaType
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)

Overrides:
getContentType in class JavaType

toString

public String toString()
Specified by:
toString in class JavaType

equals

public boolean equals(Object o)
Specified by:
equals in class JavaType