Top Description Inners Fields Constructors Methods
com.thoughtworks.xstream.converters.reflection

public Class AbstractAttributedCharacterIteratorAttributeConverter

extends AbstractSingleValueConverter
Class Inheritance
Known Direct Subclasses
com.thoughtworks.xstream.converters.extended.TextAttributeConverter
Imports
com.thoughtworks.xstream.converters.ConversionException, com.thoughtworks.xstream.converters.basic.AbstractSingleValueConverter, com.thoughtworks.xstream.core.util.Fields, java.lang.reflect.Field, .InvocationTargetException, .Method, .Modifier, java.text.AttributedCharacterIterator, java.util.Collections, .HashMap, .Iterator, .Map

An abstract converter implementation for constants of java.text.AttributedCharacterIterator.Attribute and derived types.
Author
Jörg Schaible
Since
1.2.2

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Field Summary

Modifier and TypeField and Description
private static final Map<K, V>
private final Class<T>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private Map<K, V>
public boolean
canConvert(final Class<T>
the Class representing the object type to be converted
type
)

Implements abstract com.thoughtworks.xstream.converters.basic.AbstractSingleValueConverter.canConvert.

Implements com.thoughtworks.xstream.converters.ConverterMatcher.canConvert.

Determines whether the converter can marshall a particular type.
public Object
fromString(final String
the String with the single value of the Object
str
)

Implements abstract com.thoughtworks.xstream.converters.basic.AbstractSingleValueConverter.fromString.

Implements com.thoughtworks.xstream.converters.SingleValueConverter.fromString.

Unmarshals an Object from its single value representation.
private Map<K, V>
private String
public String
toString(final Object
the Object to be converted
source
)

Overrides com.thoughtworks.xstream.converters.basic.AbstractSingleValueConverter.toString.

Implements com.thoughtworks.xstream.converters.SingleValueConverter.toString.

Marshals an Object into a single value representation.

Field Detail

instanceMapsback to summary
private static final Map<K, V> instanceMaps
typeback to summary
private final Class<T> type

Constructor Detail

AbstractAttributedCharacterIteratorAttributeConverterback to summary
public AbstractAttributedCharacterIteratorAttributeConverter(final Class<T> type)

Method Detail

buildAttributeMapback to summary
private Map<K, V> buildAttributeMap()
canConvertback to summary
public boolean canConvert(final Class<T> type)

Implements abstract com.thoughtworks.xstream.converters.basic.AbstractSingleValueConverter.canConvert.

Implements com.thoughtworks.xstream.converters.ConverterMatcher.canConvert.

Doc from com.thoughtworks.xstream.converters.ConverterMatcher.canConvert.

Determines whether the converter can marshall a particular type.

Parameters
type:Class<T>

the Class representing the object type to be converted

fromStringback to summary
public Object fromString(final String str)

Implements abstract com.thoughtworks.xstream.converters.basic.AbstractSingleValueConverter.fromString.

Implements com.thoughtworks.xstream.converters.SingleValueConverter.fromString.

Doc from com.thoughtworks.xstream.converters.SingleValueConverter.fromString.

Unmarshals an Object from its single value representation.

Parameters
str:String

the String with the single value of the Object

Returns:Object

the Object

getAttributeMapback to summary
private Map<K, V> getAttributeMap()
getNameback to summary
private String getName(AttributedCharacterIterator.Attribute attribute)
toStringback to summary
public String toString(final Object source)

Overrides com.thoughtworks.xstream.converters.basic.AbstractSingleValueConverter.toString.

Implements com.thoughtworks.xstream.converters.SingleValueConverter.toString.

Doc from com.thoughtworks.xstream.converters.SingleValueConverter.toString.

Marshals an Object into a single value representation.

Parameters
source:Object

the Object to be converted

Returns:String

a String with the single value of the Object or null

com.thoughtworks.xstream.converters.reflection back to summary

private Class AbstractAttributedCharacterIteratorAttributeConverter.Reflections

extends Object
Class Inheritance
  • java.lang.Object
  • com.thoughtworks.xstream.converters.reflection.AbstractAttributedCharacterIteratorAttributeConverter.Reflections

Field Summary

Modifier and TypeField and Description
private static final Method

Constructor Summary

AccessConstructor and Description
private

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

getNameback to summary
private static final Method getName

Constructor Detail

Reflectionsback to summary
private Reflections()