com.fasterxml.jackson.dataformat.xml
Class XmlTypeResolverBuilder.XmlClassNameIdResolver

java.lang.Object
  extended by com.fasterxml.jackson.databind.jsontype.impl.TypeIdResolverBase
      extended by com.fasterxml.jackson.databind.jsontype.impl.ClassNameIdResolver
          extended by com.fasterxml.jackson.dataformat.xml.XmlTypeResolverBuilder.XmlClassNameIdResolver
All Implemented Interfaces:
com.fasterxml.jackson.databind.jsontype.TypeIdResolver
Enclosing class:
XmlTypeResolverBuilder

protected static class XmlTypeResolverBuilder.XmlClassNameIdResolver
extends com.fasterxml.jackson.databind.jsontype.impl.ClassNameIdResolver


Field Summary
 
Fields inherited from class com.fasterxml.jackson.databind.jsontype.impl.TypeIdResolverBase
_baseType, _typeFactory
 
Constructor Summary
XmlTypeResolverBuilder.XmlClassNameIdResolver(com.fasterxml.jackson.databind.JavaType baseType, com.fasterxml.jackson.databind.type.TypeFactory typeFactory)
           
 
Method Summary
 String idFromValue(Object value)
           
 com.fasterxml.jackson.databind.JavaType typeFromId(String id)
           
 
Methods inherited from class com.fasterxml.jackson.databind.jsontype.impl.ClassNameIdResolver
_idFrom, getMechanism, idFromValueAndType, registerSubtype
 
Methods inherited from class com.fasterxml.jackson.databind.jsontype.impl.TypeIdResolverBase
idFromBaseType, init
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XmlTypeResolverBuilder.XmlClassNameIdResolver

public XmlTypeResolverBuilder.XmlClassNameIdResolver(com.fasterxml.jackson.databind.JavaType baseType,
                                                     com.fasterxml.jackson.databind.type.TypeFactory typeFactory)
Method Detail

idFromValue

public String idFromValue(Object value)
Specified by:
idFromValue in interface com.fasterxml.jackson.databind.jsontype.TypeIdResolver
Overrides:
idFromValue in class com.fasterxml.jackson.databind.jsontype.impl.ClassNameIdResolver

typeFromId

public com.fasterxml.jackson.databind.JavaType typeFromId(String id)
Specified by:
typeFromId in interface com.fasterxml.jackson.databind.jsontype.TypeIdResolver
Overrides:
typeFromId in class com.fasterxml.jackson.databind.jsontype.impl.ClassNameIdResolver


Copyright © 2012 FasterXML. All Rights Reserved.