org.kuali.ole.ingest
Class OlePatronAddressLineConverter

java.lang.Object
  extended by org.kuali.ole.ingest.OlePatronAddressLineConverter
All Implemented Interfaces:
com.thoughtworks.xstream.converters.Converter, com.thoughtworks.xstream.converters.ConverterMatcher

public class OlePatronAddressLineConverter
extends Object
implements com.thoughtworks.xstream.converters.Converter

OlePatronAddressLineConverter is a converter class used to convert object into data and data into object by using hierarchicalStreamWriter and hierarchicalStreamReader respectively


Constructor Summary
OlePatronAddressLineConverter()
           
 
Method Summary
 boolean canConvert(Class aClass)
          This method returns True/False.
 void marshal(Object obj, com.thoughtworks.xstream.io.HierarchicalStreamWriter hierarchicalStreamWriter, com.thoughtworks.xstream.converters.MarshallingContext marshallingContext)
          This method convert the object into data by using hierarchicalStreamWriter.
 Object unmarshal(com.thoughtworks.xstream.io.HierarchicalStreamReader hierarchicalStreamReader, com.thoughtworks.xstream.converters.UnmarshallingContext unmarshallingContext)
          This method convert the data into object by using hierarchicalStreamReader.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OlePatronAddressLineConverter

public OlePatronAddressLineConverter()
Method Detail

marshal

public void marshal(Object obj,
                    com.thoughtworks.xstream.io.HierarchicalStreamWriter hierarchicalStreamWriter,
                    com.thoughtworks.xstream.converters.MarshallingContext marshallingContext)
This method convert the object into data by using hierarchicalStreamWriter.

Specified by:
marshal in interface com.thoughtworks.xstream.converters.Converter
Parameters:
obj -
hierarchicalStreamWriter -
marshallingContext -

unmarshal

public Object unmarshal(com.thoughtworks.xstream.io.HierarchicalStreamReader hierarchicalStreamReader,
                        com.thoughtworks.xstream.converters.UnmarshallingContext unmarshallingContext)
This method convert the data into object by using hierarchicalStreamReader.

Specified by:
unmarshal in interface com.thoughtworks.xstream.converters.Converter
Parameters:
hierarchicalStreamReader -
unmarshallingContext -
Returns:
oleAddressLine.

canConvert

public boolean canConvert(Class aClass)
This method returns True/False. This method check whether the class is OleAddressLine class or not.

Specified by:
canConvert in interface com.thoughtworks.xstream.converters.ConverterMatcher
Parameters:
aClass -
Returns:
boolean


Copyright © 2004-2012 The Kuali Foundation. All Rights Reserved.