|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jibx.schema.codegen.custom.SchemaRootBase.ExtensionUnmarshaller
public abstract static class SchemaRootBase.ExtensionUnmarshaller
Unmarshaller for extension elements. This expects to find a 'class' attribute giving the name of the class to be created, along with other attributes used to set properties on an instance of the class. The latter attributes are handled by converting the attribute name into a field (with an 'm_' prefix) or method (with a 'set' prefix) name, then storing the value to that field or method.
Field Summary | |
---|---|
private java.lang.String |
m_name
|
Constructor Summary | |
---|---|
SchemaRootBase.ExtensionUnmarshaller(java.lang.String name)
Constructor. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private java.lang.String m_name
Constructor Detail |
---|
public SchemaRootBase.ExtensionUnmarshaller(java.lang.String name)
name
- local name for the element handledMethod Detail |
---|
protected 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 context
null
if errorpublic boolean isPresent(IUnmarshallingContext ictx) throws JiBXException
isPresent
in interface IUnmarshaller
ictx
-
true
if present, false
if not
JiBXException
- 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
|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |