org.jibx.extras
Class DiscardListMapper

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

public class DiscardListMapper
extends Object
implements IMarshaller, IUnmarshaller

Custom marshaller/unmarshaller for arbitrary ignored content to end of element. This ignores all content to the end of the enclosing element when unmarshalling, and does nothing with marshalling.

Author:
Dennis M. Sosnoski

Constructor Summary
DiscardListMapper()
           
 
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

DiscardListMapper

public DiscardListMapper()
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.