net.sf.json
Class JSONDynaClass

java.lang.Object
  extended by net.sf.json.JSONDynaClass
All Implemented Interfaces:
java.io.Serializable, org.apache.commons.beanutils.DynaClass

public class JSONDynaClass
extends java.lang.Object
implements org.apache.commons.beanutils.DynaClass, java.io.Serializable

Author:
Andres Almiray
See Also:
Serialized Form

Field Summary
protected  java.util.Map attributes
           
protected  org.apache.commons.beanutils.DynaProperty[] dynaProperties
           
protected  java.lang.Class jsonBeanClass
           
protected  java.lang.String name
           
protected  java.util.Map properties
           
protected  java.lang.Class type
           
 
Constructor Summary
JSONDynaClass(java.lang.String name, java.lang.Class type, java.util.Map attributes)
           
 
Method Summary
 org.apache.commons.beanutils.DynaProperty[] getDynaProperties()
           
 org.apache.commons.beanutils.DynaProperty getDynaProperty(java.lang.String propertyName)
           
protected  java.lang.Class getJsonBeanClass()
           
 java.lang.String getName()
           
 org.apache.commons.beanutils.DynaBean newInstance()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

attributes

protected java.util.Map attributes

dynaProperties

protected org.apache.commons.beanutils.DynaProperty[] dynaProperties

jsonBeanClass

protected transient java.lang.Class jsonBeanClass

name

protected java.lang.String name

properties

protected java.util.Map properties

type

protected java.lang.Class type
Constructor Detail

JSONDynaClass

public JSONDynaClass(java.lang.String name,
                     java.lang.Class type,
                     java.util.Map attributes)
Method Detail

getDynaProperties

public org.apache.commons.beanutils.DynaProperty[] getDynaProperties()
Specified by:
getDynaProperties in interface org.apache.commons.beanutils.DynaClass

getDynaProperty

public org.apache.commons.beanutils.DynaProperty getDynaProperty(java.lang.String propertyName)
Specified by:
getDynaProperty in interface org.apache.commons.beanutils.DynaClass

getName

public java.lang.String getName()
Specified by:
getName in interface org.apache.commons.beanutils.DynaClass

newInstance

public org.apache.commons.beanutils.DynaBean newInstance()
                                                  throws java.lang.IllegalAccessException,
                                                         java.lang.InstantiationException
Specified by:
newInstance in interface org.apache.commons.beanutils.DynaClass
Throws:
java.lang.IllegalAccessException
java.lang.InstantiationException

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getJsonBeanClass

protected java.lang.Class getJsonBeanClass()


Copyright © 2006 null. All Rights Reserved.