org.jibx.extras
Class DiscardElementMapper

java.lang.Object
  extended by org.jibx.extras.DiscardElementMapper
All Implemented Interfaces:
IMarshaller, IUnmarshaller

public class DiscardElementMapper
extends Object
implements IMarshaller, IUnmarshaller

Custom marshaller/unmarshaller for arbitrary ignored element. This ignores an element when unmarshalling, if one is present, and does nothing when marshalling.

Author:
Dennis M. Sosnoski

Constructor Summary
DiscardElementMapper()
           
 
Method Summary
 boolean isExtension(String mapname)
           
 boolean isPresent(IUnmarshallingContext ctx)
           
 void marshal(Object obj, IMarshallingContext ictx)
           
 Object unmarshal(Object obj, IUnmarshallingContext ictx)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DiscardElementMapper

public DiscardElementMapper()
Method Detail

isExtension

public boolean isExtension(String mapname)
Specified by:
isExtension in interface IMarshaller

marshal

public void marshal(Object obj,
                    IMarshallingContext ictx)
Specified by:
marshal in interface IMarshaller

isPresent

public boolean isPresent(IUnmarshallingContext ctx)
                  throws JiBXException
Specified by:
isPresent in interface IUnmarshaller
Throws:
JiBXException

unmarshal

public Object unmarshal(Object obj,
                        IUnmarshallingContext ictx)
                 throws JiBXException
Specified by:
unmarshal in interface IUnmarshaller
Throws:
JiBXException


Copyright © 2005-2011 jibx.org. All Rights Reserved.