org.kuali.rice.kns.service.impl
Class XmlObjectSerializerServiceImpl

java.lang.Object
  extended by org.kuali.rice.kns.service.impl.XmlObjectSerializerServiceImpl
All Implemented Interfaces:
XmlObjectSerializerService

public class XmlObjectSerializerServiceImpl
extends Object
implements XmlObjectSerializerService

This class is the service implementation for the XmlObjectSerializer structure. This is the default implementation that gets delivered with Kuali. It utilizes the XStream open source libraries and framework.


Nested Class Summary
 class XmlObjectSerializerServiceImpl.ProxyAwareJavaReflectionProvider
           
 class XmlObjectSerializerServiceImpl.ProxyConverter
          This custom converter only handles proxies for BusinessObjects.
 
Field Summary
private static org.apache.commons.logging.Log LOG
           
private  PersistenceService persistenceService
           
private  com.thoughtworks.xstream.XStream xstream
           
 
Constructor Summary
XmlObjectSerializerServiceImpl()
           
 
Method Summary
 Object fromXml(String xml)
          Retrieves an Object instance from a String of XML - unmarshals.
 PersistenceService getPersistenceService()
           
 String toXml(Object object)
          Marshals out XML from an object instance.
 String writeNode(Node node, boolean indent)
          Renders an org.w3c.Node to a String.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG

private static final org.apache.commons.logging.Log LOG

persistenceService

private PersistenceService persistenceService

xstream

private com.thoughtworks.xstream.XStream xstream
Constructor Detail

XmlObjectSerializerServiceImpl

public XmlObjectSerializerServiceImpl()
Method Detail

toXml

public String toXml(Object object)
Description copied from interface: XmlObjectSerializerService
Marshals out XML from an object instance.

Specified by:
toXml in interface XmlObjectSerializerService
Returns:
See Also:
org.kuali.rice.kns.service.XmlObjectSerializer#toXml(java.lang.Object)

fromXml

public Object fromXml(String xml)
Description copied from interface: XmlObjectSerializerService
Retrieves an Object instance from a String of XML - unmarshals.

Specified by:
fromXml in interface XmlObjectSerializerService
Returns:
See Also:
org.kuali.rice.kns.service.XmlObjectSerializer#fromXml(java.lang.String)

writeNode

public String writeNode(Node node,
                        boolean indent)
                 throws TransformerException
Description copied from interface: XmlObjectSerializerService
Renders an org.w3c.Node to a String.

Specified by:
writeNode in interface XmlObjectSerializerService
Throws:
TransformerException

getPersistenceService

public PersistenceService getPersistenceService()


Copyright © 2007-2011 The Kuali Foundation. All Rights Reserved.