com.thoughtworks.xstream.converters.javabean
Class BeanProvider
java.lang.Object
com.thoughtworks.xstream.converters.javabean.BeanProvider
public class BeanProvider
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NO_PARAMS
protected static final Object[] NO_PARAMS
BeanProvider
public BeanProvider()
BeanProvider
public BeanProvider(Comparator propertyNameComparator)
newInstance
public Object newInstance(Class type)
visitSerializableProperties
public void visitSerializableProperties(Object object,
com.thoughtworks.xstream.converters.javabean.BeanProvider.Visitor visitor)
writeProperty
public void writeProperty(Object object,
String propertyName,
Object value)
getPropertyType
public Class getPropertyType(Object object,
String name)
propertyDefinedInClass
public boolean propertyDefinedInClass(String name,
Class type)
canInstantiate
public boolean canInstantiate(Class type)
- Returns true if the Bean provider can instantiate the specified class
getDefaultConstrutor
protected Constructor getDefaultConstrutor(Class type)
- Returns the default constructor, or null if none is found
- Parameters:
type
-
canStreamProperty
protected boolean canStreamProperty(PropertyDescriptor descriptor)
propertyWriteable
public boolean propertyWriteable(String name,
Class type)
Copyright © 2004-2008 XStream. All Rights Reserved.