|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jibx.custom.classes.GlobalCustom.Mapper
public static class GlobalCustom.Mapper
Unmarshaller implementation for class. This handles the nested structure of packages and classes, using the abstract mappings defined by the binding to handle all the actual details.
Constructor Summary | |
---|---|
GlobalCustom.Mapper()
|
Method Summary | |
---|---|
private java.lang.String |
buildFullName(PackageCustom contain,
UnmarshallingContext ctx)
Build the fully-qualified name for a package or class by appending the supplied name attribute value to the fully-qualified name of the containing package. |
boolean |
isPresent(IUnmarshallingContext ictx)
Check if instance present in XML. |
java.lang.Object |
unmarshal(java.lang.Object obj,
IUnmarshallingContext ictx)
Unmarshal root element of customizations. |
private ClassCustom |
unmarshalClass(GlobalCustom global,
PackageCustom contain,
UnmarshallingContext ctx)
Unmarshal class element. |
private PackageCustom |
unmarshalPackage(GlobalCustom global,
PackageCustom contain,
UnmarshallingContext ctx)
Unmarshal package element. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GlobalCustom.Mapper()
Method Detail |
---|
public boolean isPresent(IUnmarshallingContext ictx) throws JiBXException
IUnmarshaller
isPresent
in interface IUnmarshaller
ictx
- unmarshalling context
true
if expected parse data found,
false
if not
JiBXException
- on error in unmarshalling processprivate java.lang.String buildFullName(PackageCustom contain, UnmarshallingContext ctx) throws JiBXException
contain
- ctx
-
JiBXException
private PackageCustom unmarshalPackage(GlobalCustom global, PackageCustom contain, UnmarshallingContext ctx) throws JiBXException
unmarshalClass(GlobalCustom, PackageCustom, UnmarshallingContext)
to handle nested
class elements.
global
- root customizationscontain
- containing packagectx
- unmarshalling context
JiBXException
private ClassCustom unmarshalClass(GlobalCustom global, PackageCustom contain, UnmarshallingContext ctx) throws JiBXException
unmarshalClass(GlobalCustom, PackageCustom, UnmarshallingContext)
to handle nested
class elements.
global
- root customizationscontain
- containing packagectx
- unmarshalling context
JiBXException
public java.lang.Object unmarshal(java.lang.Object obj, IUnmarshallingContext ictx) throws JiBXException
IUnmarshallable.unmarshal(IUnmarshallingContext)
method. The actual root element may
be anything, allowing the unmarshaller to be used for subclasses (with different names) of the outer class.
unmarshal
in interface IUnmarshaller
obj
- root element object (must be an instance of the GlobalCustom type)ictx
- unmarshalling context
JiBXException
|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |