public final class StyleConverterUtils
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
IGNORED_ATTRIBUTE
Converter constants.
|
| Constructor and Description |
|---|
StyleConverterUtils() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.Class<? extends Painter> |
getDefaultPainter(java.lang.Class inClass,
java.lang.String field)
Retuns default painter class for the painter field in specified class.
|
static void |
readProperties(com.thoughtworks.xstream.io.HierarchicalStreamReader reader,
com.thoughtworks.xstream.converters.UnmarshallingContext context,
java.util.Map<java.lang.String,java.lang.Object> properties,
java.lang.Class clazz,
java.lang.String styleId)
Read properties for the specified class into the provided properties map.
|
static void |
readProperty(com.thoughtworks.xstream.io.HierarchicalStreamReader reader,
com.thoughtworks.xstream.converters.UnmarshallingContext context,
java.lang.String styleId,
java.util.Map<java.lang.String,java.lang.Object> properties,
java.lang.Class propertyClass,
java.lang.String propertyName)
Parses single style property into properties map.
|
public static final java.lang.String IGNORED_ATTRIBUTE
public static void readProperties(com.thoughtworks.xstream.io.HierarchicalStreamReader reader,
com.thoughtworks.xstream.converters.UnmarshallingContext context,
java.util.Map<java.lang.String,java.lang.Object> properties,
java.lang.Class clazz,
java.lang.String styleId)
reader - HierarchicalStreamReadercontext - UnmarshallingContextproperties - map to read properties intoclazz - class to read properties for, it will be used to retrieve properties field typesstyleId - component style ID, might be used to report problemspublic static void readProperty(com.thoughtworks.xstream.io.HierarchicalStreamReader reader,
com.thoughtworks.xstream.converters.UnmarshallingContext context,
java.lang.String styleId,
java.util.Map<java.lang.String,java.lang.Object> properties,
java.lang.Class propertyClass,
java.lang.String propertyName)
reader - HierarchicalStreamReadercontext - UnmarshallingContextstyleId - component style ID, might be used to report problemsproperties - map to read property intopropertyClass - class to read property for, it will be used to retrieve property field typepropertyName - property namepublic static java.lang.Class<? extends Painter> getDefaultPainter(java.lang.Class inClass, java.lang.String field)
inClass - class containing painter referencing fieldfield - painter referencing field name