public abstract static class SchemaRootBase.ExtensionUnmarshaller extends Object implements IUnmarshaller
| Constructor and Description |
|---|
SchemaRootBase.ExtensionUnmarshaller(String name)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract Object |
createInstance(String cname,
UnmarshallingContext ctx)
Instance creation method.
|
boolean |
isPresent(IUnmarshallingContext ictx)
Check for element present.
|
Object |
unmarshal(Object obj,
IUnmarshallingContext ictx)
Unmarshal instance of element.
|
public SchemaRootBase.ExtensionUnmarshaller(String name)
name - local name for the element handledprotected abstract Object createInstance(String cname, UnmarshallingContext ctx)
unmarshal(Object, IUnmarshallingContext) method to
create the actual object instance to be handled. Subclasses must implement this method to create the instance
and perform any appropriate initialization.cname - class name from element (null if not supplied)ctx - unmarshalling contextnull if errorpublic boolean isPresent(IUnmarshallingContext ictx) throws JiBXException
isPresent in interface IUnmarshallerictx - true if present, false if notJiBXException - on errorpublic Object unmarshal(Object obj, IUnmarshallingContext ictx) throws JiBXException
unmarshal in interface IUnmarshallerobj - ignored (new instance always created)ictx - JiBXException - on errorCopyright © 2005-2014 jibx.org. All Rights Reserved.