Top Description Fields Constructors Methods
com.thoughtworks.xstream.converters.javabean

public Class PropertyDictionary

extends Object
implements Caching
Class Inheritance
All Implemented Interfaces
com.thoughtworks.xstream.core.Caching
Imports
java.beans.BeanInfo, .IntrospectionException, .Introspector, .PropertyDescriptor, java.util.ArrayList, .Collection, .Collections, .HashMap, .Iterator, .Map, com.thoughtworks.xstream.converters.reflection.MissingFieldException, .ObjectAccessException, com.thoughtworks.xstream.core.Caching, com.thoughtworks.xstream.core.util.OrderRetainingMap

Builds the properties maps for each bean and caches them.
Authors
Joe Walnes, Jörg Schaible

Field Summary

Modifier and TypeField and Description
private transient Map<K, V>
private final PropertySorter

Constructor Summary

AccessConstructor and Description
public
public

Method Summary

Modifier and TypeMethod and Description
private Map<K, V>
buildMap(Class<T> type)

public void
public Iterator<E>
public BeanProperty
property(Class<T> cls, String name)

Deprecated As of 1.3.1, use propertyDescriptor(Class, String) instead
Locates a serializable property.
public PropertyDescriptor
propertyDescriptor(Class<T> type, String name)

Locates a property descriptor.

public PropertyDescriptor

Returns:

null if property does not exist
propertyDescriptorOrNull
(Class<T> type, String name)

Locates a property descriptor.

public Iterator<E>
serializablePropertiesFor(Class<T> type)

Deprecated As of 1.3.1, use propertiesFor(Class) instead
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

propertyNameCacheback to summary
private transient Map<K, V> propertyNameCache
sorterback to summary
private final PropertySorter sorter

Constructor Detail

PropertyDictionaryback to summary
public PropertyDictionary()
PropertyDictionaryback to summary
public PropertyDictionary(PropertySorter sorter)

Method Detail

buildMapback to summary
private Map<K, V> buildMap(Class<T> type)
flushCacheback to summary
public void flushCache()

Implements com.thoughtworks.xstream.core.Caching.flushCache.

propertiesForback to summary
public Iterator<E> propertiesFor(Class<T> type)
propertyback to summary
public BeanProperty property(Class<T> cls, String name)

Deprecated

As of 1.3.1, use propertyDescriptor(Class, String) instead

Locates a serializable property.

propertyDescriptorback to summary
public PropertyDescriptor propertyDescriptor(Class<T> type, String name)

Locates a property descriptor.

Exceptions
MissingFieldException:
if property does not exist
propertyDescriptorOrNullback to summary
public PropertyDescriptor propertyDescriptorOrNull(Class<T> type, String name)

Locates a property descriptor.

Returns:PropertyDescriptor

null if property does not exist

Since
1.4.10
serializablePropertiesForback to summary
public Iterator<E> serializablePropertiesFor(Class<T> type)

Deprecated

As of 1.3.1, use propertiesFor(Class) instead