com.thoughtworks.xstream.converters.javabean
Class BeanProvider

java.lang.Object
  extended by com.thoughtworks.xstream.converters.javabean.BeanProvider

public class BeanProvider
extends java.lang.Object


Field Summary
protected static java.lang.Object[] NO_PARAMS
           
 
Constructor Summary
BeanProvider()
           
BeanProvider(java.util.Comparator propertyNameComparator)
           
 
Method Summary
 boolean canInstantiate(java.lang.Class type)
          Returns true if the Bean provider can instantiate the specified class
protected  boolean canStreamProperty(java.beans.PropertyDescriptor descriptor)
           
protected  java.lang.reflect.Constructor getDefaultConstrutor(java.lang.Class type)
          Returns the default constructor, or null if none is found
 java.lang.Class getPropertyType(java.lang.Object object, java.lang.String name)
           
 java.lang.Object newInstance(java.lang.Class type)
           
 boolean propertyDefinedInClass(java.lang.String name, java.lang.Class type)
           
 boolean propertyWriteable(java.lang.String name, java.lang.Class type)
           
 void visitSerializableProperties(java.lang.Object object, com.thoughtworks.xstream.converters.javabean.BeanProvider.Visitor visitor)
           
 void writeProperty(java.lang.Object object, java.lang.String propertyName, java.lang.Object value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NO_PARAMS

protected static final java.lang.Object[] NO_PARAMS
Constructor Detail

BeanProvider

public BeanProvider()

BeanProvider

public BeanProvider(java.util.Comparator propertyNameComparator)
Method Detail

newInstance

public java.lang.Object newInstance(java.lang.Class type)

visitSerializableProperties

public void visitSerializableProperties(java.lang.Object object,
                                        com.thoughtworks.xstream.converters.javabean.BeanProvider.Visitor visitor)

writeProperty

public void writeProperty(java.lang.Object object,
                          java.lang.String propertyName,
                          java.lang.Object value)

getPropertyType

public java.lang.Class getPropertyType(java.lang.Object object,
                                       java.lang.String name)

propertyDefinedInClass

public boolean propertyDefinedInClass(java.lang.String name,
                                      java.lang.Class type)

canInstantiate

public boolean canInstantiate(java.lang.Class type)
Returns true if the Bean provider can instantiate the specified class


getDefaultConstrutor

protected java.lang.reflect.Constructor getDefaultConstrutor(java.lang.Class type)
Returns the default constructor, or null if none is found

Parameters:
type -

canStreamProperty

protected boolean canStreamProperty(java.beans.PropertyDescriptor descriptor)

propertyWriteable

public boolean propertyWriteable(java.lang.String name,
                                 java.lang.Class type)


Copyright © 2004-2012 XStream. All Rights Reserved.