org.jibx.schema.codegen.custom
Class SchemaRootBase.NameConverterUnmarshaller

java.lang.Object
  extended by org.jibx.schema.codegen.custom.SchemaRootBase.ExtensionUnmarshaller
      extended by org.jibx.schema.codegen.custom.SchemaRootBase.NameConverterUnmarshaller
All Implemented Interfaces:
IUnmarshaller
Enclosing class:
SchemaRootBase

public static class SchemaRootBase.NameConverterUnmarshaller
extends SchemaRootBase.ExtensionUnmarshaller

Unmarshaller for name converter extension elements.


Constructor Summary
SchemaRootBase.NameConverterUnmarshaller()
          Constructor.
 
Method Summary
protected  java.lang.Object createInstance(java.lang.String cname, UnmarshallingContext ctx)
          Create an instance of the appropriate name converter class, to be used for unmarshalling.
 
Methods inherited from class org.jibx.schema.codegen.custom.SchemaRootBase.ExtensionUnmarshaller
isPresent, unmarshal
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SchemaRootBase.NameConverterUnmarshaller

public SchemaRootBase.NameConverterUnmarshaller()
Constructor.

Method Detail

createInstance

protected java.lang.Object createInstance(java.lang.String cname,
                                          UnmarshallingContext ctx)
Create an instance of the appropriate name converter class, to be used for unmarshalling. This first looks for a constructor in the target class which takes an instance of the existing name converter class as an argument, and uses that constructor if found (passing the existing name converter, so that settings can be inherited). If there's no constructor matching the existing name converter class the default constructor is instead used.

Specified by:
createInstance in class SchemaRootBase.ExtensionUnmarshaller
Parameters:
cname - class name from element (null if not supplied)
ctx - unmarshalling context
Returns:
object


Project Web Site