public static class GlobalCustom.Mapper extends java.lang.Object implements IUnmarshaller
Constructor and Description |
---|
Mapper() |
Modifier and Type | Method and Description |
---|---|
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.
|
public boolean isPresent(IUnmarshallingContext ictx) throws JiBXException
IUnmarshaller
isPresent
in interface IUnmarshaller
ictx
- unmarshalling contexttrue
if expected parse data found,
false
if notJiBXException
- 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 contextJiBXException
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 contextJiBXException
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 contextJiBXException