public class DiscardElementMapper extends Object implements org.jibx.runtime.IMarshaller, org.jibx.runtime.IUnmarshaller
Custom marshaller/unmarshaller for arbitrary ignored element. This ignores an element when unmarshalling, if one is present, and does nothing when marshalling.
| Constructor and Description |
|---|
DiscardElementMapper() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isExtension(String mapname) |
boolean |
isPresent(org.jibx.runtime.IUnmarshallingContext ctx) |
void |
marshal(Object obj,
org.jibx.runtime.IMarshallingContext ictx) |
Object |
unmarshal(Object obj,
org.jibx.runtime.IUnmarshallingContext ictx) |
public boolean isExtension(String mapname)
isExtension in interface org.jibx.runtime.IMarshallerpublic void marshal(Object obj, org.jibx.runtime.IMarshallingContext ictx)
marshal in interface org.jibx.runtime.IMarshallerpublic boolean isPresent(org.jibx.runtime.IUnmarshallingContext ctx)
throws org.jibx.runtime.JiBXException
isPresent in interface org.jibx.runtime.IUnmarshallerorg.jibx.runtime.JiBXExceptionCopyright © 2005–2020 jibx.org. All rights reserved.