ca.intelliware.amakihi.web.servlet
Class MarshallingHelper

java.lang.Object
  |
  +--ca.intelliware.amakihi.web.servlet.MarshallingHelper

public class MarshallingHelper
extends java.lang.Object

Marshall values received in String form to produce object instances populated with the given value(s). For most values, this means invoking the single String argument constructor for the type. However, if the value String is parseable as XML, then the object is instantiated and populated from the XML as a bean. Limitations: - can handle array types, but can't handle arrays of arrays - order isn't preserved for arrays - limited by the DOMUtils xml-to-bean conversion capabilities - if a type implements a single String arg constructor that is an XML value, it won't be used since this class assumes that an XML value should be passed to the DOMUtils converter. - the top level node name must match the (unqualified) class name


Constructor Summary
MarshallingHelper()
           
 
Method Summary
 java.lang.Object unmarshalObject(java.lang.Class type, java.lang.String value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MarshallingHelper

public MarshallingHelper()
Method Detail

unmarshalObject

public java.lang.Object unmarshalObject(java.lang.Class type,
                                        java.lang.String value)
                                 throws java.lang.InstantiationException


Copyright 2002 Intelliware Development. All Rights Reserved.