|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter
com.thoughtworks.xstream.converters.reflection.ReflectionConverter
com.alee.managers.style.data.ComponentStyleConverter
public class ComponentStyleConverter
Custom XStream converter for ComponentStyle class.
ComponentStyle
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter |
---|
com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.DuplicateFieldException, com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.UnknownFieldException |
Field Summary | |
---|---|
static java.lang.String |
COMPONENT_NODE
|
static java.lang.String |
COMPONENT_TYPE_ATTRIBUTE
|
static java.lang.String |
DEFAULT_STYLE_ID
Default component style ID. |
static java.lang.String |
EXTENDS_ID_ATTRIBUTE
|
static java.lang.String |
PAINTER_CLASS_ATTRIBUTE
|
static java.lang.String |
PAINTER_ID_ATTRIBUTE
|
static java.lang.String |
PAINTER_NODE
|
static java.lang.String |
STYLE_ID_ATTRIBUTE
|
static java.lang.String |
STYLE_NODE
Converter constants. |
static java.lang.String |
UI_NODE
|
Fields inherited from class com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter |
---|
mapper, reflectionProvider, serializationMethodInvoker |
Constructor Summary | |
---|---|
ComponentStyleConverter(com.thoughtworks.xstream.mapper.Mapper mapper,
com.thoughtworks.xstream.converters.reflection.ReflectionProvider reflectionProvider)
Constructs ComponentStyleConverter with the specified mapper and reflection provider. |
Method Summary | |
---|---|
boolean |
canConvert(java.lang.Class type)
|
void |
marshal(java.lang.Object source,
com.thoughtworks.xstream.io.HierarchicalStreamWriter writer,
com.thoughtworks.xstream.converters.MarshallingContext context)
|
java.lang.Object |
unmarshal(com.thoughtworks.xstream.io.HierarchicalStreamReader reader,
com.thoughtworks.xstream.converters.UnmarshallingContext context)
|
Methods inherited from class com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter |
---|
doMarshal, doUnmarshal, flushCache, instantiateNewInstance, marshallField, shouldUnmarshalTransientFields, unmarshallField |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String STYLE_NODE
public static final java.lang.String STYLE_ID_ATTRIBUTE
public static final java.lang.String COMPONENT_TYPE_ATTRIBUTE
public static final java.lang.String EXTENDS_ID_ATTRIBUTE
public static final java.lang.String COMPONENT_NODE
public static final java.lang.String UI_NODE
public static final java.lang.String PAINTER_NODE
public static final java.lang.String PAINTER_ID_ATTRIBUTE
public static final java.lang.String PAINTER_CLASS_ATTRIBUTE
public static final java.lang.String DEFAULT_STYLE_ID
Constructor Detail |
---|
public ComponentStyleConverter(com.thoughtworks.xstream.mapper.Mapper mapper, com.thoughtworks.xstream.converters.reflection.ReflectionProvider reflectionProvider)
mapper
- mapperreflectionProvider
- reflection providerMethod Detail |
---|
public boolean canConvert(java.lang.Class type)
canConvert
in interface com.thoughtworks.xstream.converters.ConverterMatcher
canConvert
in class com.thoughtworks.xstream.converters.reflection.ReflectionConverter
public void marshal(java.lang.Object source, com.thoughtworks.xstream.io.HierarchicalStreamWriter writer, com.thoughtworks.xstream.converters.MarshallingContext context)
marshal
in interface com.thoughtworks.xstream.converters.Converter
marshal
in class com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter
public java.lang.Object unmarshal(com.thoughtworks.xstream.io.HierarchicalStreamReader reader, com.thoughtworks.xstream.converters.UnmarshallingContext context)
unmarshal
in interface com.thoughtworks.xstream.converters.Converter
unmarshal
in class com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |