Class PropertyDictionary
- java.lang.Object
-
- com.thoughtworks.xstream.converters.javabean.PropertyDictionary
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.Map
propertyNameCache
private PropertySorter
sorter
-
Constructor Summary
Constructors Constructor Description PropertyDictionary()
PropertyDictionary(PropertySorter sorter)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description private java.util.Map
buildMap(java.lang.Class type)
void
flushCache()
java.util.Iterator
propertiesFor(java.lang.Class type)
BeanProperty
property(java.lang.Class cls, java.lang.String name)
Deprecated.As of 1.3.1, usepropertyDescriptor(Class, String)
insteadjava.beans.PropertyDescriptor
propertyDescriptor(java.lang.Class type, java.lang.String name)
Locates a property descriptor.java.beans.PropertyDescriptor
propertyDescriptorOrNull(java.lang.Class type, java.lang.String name)
Locates a property descriptor.java.util.Iterator
serializablePropertiesFor(java.lang.Class type)
Deprecated.As of 1.3.1, usepropertiesFor(Class)
instead
-
-
-
Field Detail
-
propertyNameCache
private transient java.util.Map propertyNameCache
-
sorter
private final PropertySorter sorter
-
-
Constructor Detail
-
PropertyDictionary
public PropertyDictionary()
-
PropertyDictionary
public PropertyDictionary(PropertySorter sorter)
-
-
Method Detail
-
serializablePropertiesFor
public java.util.Iterator serializablePropertiesFor(java.lang.Class type)
Deprecated.As of 1.3.1, usepropertiesFor(Class)
instead
-
property
public BeanProperty property(java.lang.Class cls, java.lang.String name)
Deprecated.As of 1.3.1, usepropertyDescriptor(Class, String)
insteadLocates a serializable property.- Parameters:
cls
-name
-
-
propertiesFor
public java.util.Iterator propertiesFor(java.lang.Class type)
-
propertyDescriptor
public java.beans.PropertyDescriptor propertyDescriptor(java.lang.Class type, java.lang.String name)
Locates a property descriptor.- Parameters:
type
-name
-- Throws:
MissingFieldException
- if property does not exist
-
propertyDescriptorOrNull
public java.beans.PropertyDescriptor propertyDescriptorOrNull(java.lang.Class type, java.lang.String name)
Locates a property descriptor.- Parameters:
type
-name
-- Returns:
null
if property does not exist- Since:
- 1.4.10
-
buildMap
private java.util.Map buildMap(java.lang.Class type)
-
flushCache
public void flushCache()
- Specified by:
flushCache
in interfaceCaching
-
-