public class

BeanProvider

extends Object
java.lang.Object
   ↳ com.thoughtworks.xstream.converters.javabean.BeanProvider

Summary

Fields
protected static final Object[] NO_PARAMS
Public Constructors
BeanProvider()
BeanProvider(Comparator propertyNameComparator)
Public Methods
boolean canInstantiate(Class type)
Returns true if the Bean provider can instantiate the specified class
Class getPropertyType(Object object, String name)
Object newInstance(Class type)
boolean propertyDefinedInClass(String name, Class type)
boolean propertyWriteable(String name, Class type)
void visitSerializableProperties(Object object, BeanProvider.Visitor visitor)
void writeProperty(Object object, String propertyName, Object value)
Protected Methods
boolean canStreamProperty(PropertyDescriptor descriptor)
Constructor getDefaultConstrutor(Class type)
Returns the default constructor, or null if none is found
[Expand]
Inherited Methods
From class java.lang.Object

Fields

protected static final Object[] NO_PARAMS

Public Constructors

public BeanProvider ()

public BeanProvider (Comparator propertyNameComparator)

Public Methods

public boolean canInstantiate (Class type)

Returns true if the Bean provider can instantiate the specified class

public Class getPropertyType (Object object, String name)

public Object newInstance (Class type)

public boolean propertyDefinedInClass (String name, Class type)

public boolean propertyWriteable (String name, Class type)

public void visitSerializableProperties (Object object, BeanProvider.Visitor visitor)

public void writeProperty (Object object, String propertyName, Object value)

Protected Methods

protected boolean canStreamProperty (PropertyDescriptor descriptor)

protected Constructor getDefaultConstrutor (Class type)

Returns the default constructor, or null if none is found