public abstract static class SchemaRootBase.ExtensionUnmarshaller extends java.lang.Object implements IUnmarshaller
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
m_name |
Constructor and Description |
---|
SchemaRootBase.ExtensionUnmarshaller(java.lang.String name)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected abstract java.lang.Object |
createInstance(java.lang.String cname,
UnmarshallingContext ctx)
Instance creation method.
|
boolean |
isPresent(IUnmarshallingContext ictx)
Check for element present.
|
java.lang.Object |
unmarshal(java.lang.Object obj,
IUnmarshallingContext ictx)
Unmarshal instance of element.
|
public SchemaRootBase.ExtensionUnmarshaller(java.lang.String name)
name
- local name for the element handledprotected abstract java.lang.Object createInstance(java.lang.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 IUnmarshaller
ictx
- true
if present, false
if notJiBXException
- on errorpublic java.lang.Object unmarshal(java.lang.Object obj, IUnmarshallingContext ictx) throws JiBXException
unmarshal
in interface IUnmarshaller
obj
- ignored (new instance always created)ictx
- JiBXException
- on error