Package | Description |
---|---|
com.thoughtworks.xstream | |
com.thoughtworks.xstream.converters | |
com.thoughtworks.xstream.converters.basic |
Converters for common basic types in Java.
|
com.thoughtworks.xstream.converters.enums | |
com.thoughtworks.xstream.converters.extended |
Extra converters that may not be enabled in XStream by default.
|
com.thoughtworks.xstream.converters.reflection | |
com.thoughtworks.xstream.converters.time |
Extra converters for the java.time package.
|
com.thoughtworks.xstream.mapper |
Modifier and Type | Method and Description |
---|---|
void |
XStream.registerConverter(SingleValueConverter converter) |
void |
XStream.registerConverter(SingleValueConverter converter,
int priority) |
void |
XStream.registerLocalConverter(java.lang.Class definedIn,
java.lang.String fieldName,
SingleValueConverter converter)
Register a local
SingleValueConverter for a field. |
Modifier and Type | Class and Description |
---|---|
class |
SingleValueConverterWrapper
Wrapper to convert a
SingleValueConverter into a
Converter . |
Constructor and Description |
---|
SingleValueConverterWrapper(SingleValueConverter wrapped) |
Modifier and Type | Class and Description |
---|---|
class |
AbstractSingleValueConverter
Base abstract implementation of
SingleValueConverter . |
class |
BigDecimalConverter
Converts a java.math.BigDecimal to a String, retaining
its precision.
|
class |
BigIntegerConverter
Converts a java.math.BigInteger to a String.
|
class |
BooleanConverter
Converts a boolean primitive or java.lang.Boolean wrapper to
a String.
|
class |
ByteConverter
Converts a byte primitive or java.lang.Byte wrapper to
a String.
|
class |
CharConverter
Converts a char primitive or java.lang.Character wrapper to
a String.
|
class |
DateConverter
Converts a
Date to a string as a date format, retaining precision down to milliseconds. |
class |
DoubleConverter
Converts a double primitive or java.lang.Double wrapper to
a String.
|
class |
FloatConverter
Converts a float primitive or java.lang.Float wrapper to
a String.
|
class |
IntConverter
Converts an int primitive or java.lang.Integer wrapper to
a String.
|
class |
LongConverter
Converts a long primitive or java.lang.Long wrapper to a String.
|
class |
ShortConverter
Converts a short primitive or java.lang.Short wrapper to
a String.
|
class |
StringBufferConverter
Converts the contents of a StringBuffer to XML.
|
class |
StringBuilderConverter
Converts the contents of a StringBuilder to XML.
|
class |
StringConverter
Converts a String to a String ;).
|
class |
URIConverter
Converts a java.net.URI to a string.
|
class |
URLConverter
Converts a java.net.URL to a string.
|
class |
UUIDConverter
Converts a java.util.UUID to a string.
|
Modifier and Type | Class and Description |
---|---|
class |
EnumSingleValueConverter
A single value converter for a special enum type.
|
class |
EnumToStringConverter<T extends java.lang.Enum<T>>
A single value converter for a special enum type using its string representation.
|
Modifier and Type | Class and Description |
---|---|
class |
AtomicBooleanConverter
Converts an AtomicBoolean type.
|
class |
AtomicIntegerConverter
Converts an AtomicInteger type.
|
class |
AtomicLongConverter
Converts an AtomicLong type.
|
class |
CharsetConverter
Converts a java.nio.charset.Carset to a string.
|
class |
CurrencyConverter
Converts a java.util.Currency to String.
|
class |
DurationConverter
A Converter for the XML Schema datatype duration and the Java type
Duration . |
class |
EncodedByteArrayConverter
Converts a byte array by default to a single Base64 encoding string.
|
class |
FileConverter
This converter will take care of storing and retrieving File with either
an absolute path OR a relative path depending on how they were created.
|
class |
ISO8601DateConverter
A DateConverter conforming to the ISO8601 standard.
|
class |
ISO8601GregorianCalendarConverter
A GregorianCalendarConverter conforming to the ISO8601 standard.
|
class |
ISO8601SqlTimestampConverter
A SqlTimestampConverter conforming to the ISO8601 standard.
|
class |
JavaClassConverter
Converts a java.lang.Class to XML.
|
class |
LocaleConverter
Converts a java.util.Locale to a string.
|
class |
OptionalDoubleConverter
Converts an OptionalDouble type.
|
class |
OptionalIntConverter
Converts an OptionalInt type.
|
class |
OptionalLongConverter
Converts an OptionalLong type.
|
class |
PathConverter
Converts a
Path to string. |
class |
PropertyEditorCapableConverter
A SingleValueConverter that can utilize a
PropertyEditor implementation used for a
specific type. |
class |
SqlDateConverter
Converts a java.sql.Date to text.
|
class |
SqlTimeConverter
Converts a java.sql.Time to text.
|
class |
SqlTimestampConverter
Converts a
Timestamp to a string. |
class |
StackTraceElementConverter
Converter for StackTraceElement (the lines of a stack trace) - JDK 1.4+ only.
|
class |
TextAttributeConverter
A converter for
TextAttribute constants. |
class |
ToStringConverter
Convenient converter for classes with natural string representation.
|
Constructor and Description |
---|
JavaFieldConverter(SingleValueConverter javaClassConverter,
Mapper mapper)
Construct a JavaFieldConverter.
|
JavaMethodConverter(SingleValueConverter javaClassConverter)
Construct a JavaMethodConverter.
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractAttributedCharacterIteratorAttributeConverter
An abstract converter implementation for constants of
AttributedCharacterIterator.Attribute and derived types. |
Modifier and Type | Class and Description |
---|---|
class |
ChronologyConverter
Converts a
Chronology instance to a string using its id. |
class |
HijrahDateConverter
Converts a
HijrahDate to a string. |
class |
InstantConverter
Converts a
Instant instance to string. |
class |
JapaneseDateConverter
Converts a
JapaneseDate to a string. |
class |
JapaneseEraConverter
Converts a
JapaneseEra instance to a string using its id. |
class |
LocalDateConverter
Converts a
LocalDate to a string. |
class |
LocalDateTimeConverter
Converts a
LocalDateTime to a string. |
class |
LocalTimeConverter
Converts a
LocalTime to a string. |
class |
MinguoDateConverter
Converts a
MinguoDate to a string. |
class |
MonthDayConverter
Converts a
MonthDay instance to string. |
class |
OffsetDateTimeConverter
Converts a
OffsetDateTime to a string. |
class |
OffsetTimeConverter
Converts a
OffsetTime to a string. |
class |
PeriodConverter
Converts a
Period instance to string. |
class |
ThaiBuddhistDateConverter
Converts a
ThaiBuddhistDate to a string. |
class |
YearConverter
Converts a
Year instance to string. |
class |
YearMonthConverter
Converts a
YearMonth instance to string. |
class |
ZonedDateTimeConverter
Converts a
ZonedDateTime to a string. |
class |
ZoneIdConverter
Converts a
ZoneId instance to string. |
Modifier and Type | Method and Description |
---|---|
SingleValueConverter |
DefaultMapper.getConverterFromAttribute(java.lang.Class definedIn,
java.lang.String attribute)
Deprecated.
As of 1.3.1, use
DefaultMapper.getConverterFromAttribute(Class, String, Class) |
SingleValueConverter |
MapperWrapper.getConverterFromAttribute(java.lang.Class type,
java.lang.String attribute)
Deprecated.
As of 1.3.1, use
MapperWrapper.getConverterFromAttribute(Class, String, Class) |
SingleValueConverter |
AttributeMapper.getConverterFromAttribute(java.lang.Class definedIn,
java.lang.String attribute)
Deprecated.
As of 1.3.1, use
AttributeMapper.getConverterFromAttribute(Class, String, Class) |
SingleValueConverter |
Mapper.getConverterFromAttribute(java.lang.Class definedIn,
java.lang.String attribute)
Deprecated.
As of 1.3.1, use
Mapper.getConverterFromAttribute(Class, String, Class) |
SingleValueConverter |
EnumMapper.getConverterFromAttribute(java.lang.Class definedIn,
java.lang.String attribute,
java.lang.Class type) |
SingleValueConverter |
DefaultMapper.getConverterFromAttribute(java.lang.Class definedIn,
java.lang.String attribute,
java.lang.Class type) |
SingleValueConverter |
LocalConversionMapper.getConverterFromAttribute(java.lang.Class definedIn,
java.lang.String attribute,
java.lang.Class type) |
SingleValueConverter |
MapperWrapper.getConverterFromAttribute(java.lang.Class definedIn,
java.lang.String attribute,
java.lang.Class type) |
SingleValueConverter |
AttributeMapper.getConverterFromAttribute(java.lang.Class definedIn,
java.lang.String attribute,
java.lang.Class type) |
SingleValueConverter |
Mapper.getConverterFromAttribute(java.lang.Class definedIn,
java.lang.String attribute,
java.lang.Class type)
Returns which converter to use for an specific attribute in a type.
|
SingleValueConverter |
DefaultMapper.getConverterFromAttribute(java.lang.String name)
Deprecated.
|
SingleValueConverter |
MapperWrapper.getConverterFromAttribute(java.lang.String name)
Deprecated.
|
SingleValueConverter |
AttributeMapper.getConverterFromAttribute(java.lang.String attributeName)
Deprecated.
|
SingleValueConverter |
Mapper.getConverterFromAttribute(java.lang.String name)
Deprecated.
As of 1.3, use
Mapper.getConverterFromAttribute(Class, String, Class) |
SingleValueConverter |
DefaultMapper.getConverterFromItemType(java.lang.Class type)
Deprecated.
As of 1.3, use
DefaultMapper.getConverterFromItemType(String, Class, Class) |
SingleValueConverter |
MapperWrapper.getConverterFromItemType(java.lang.Class type)
Deprecated.
As of 1.3, use
MapperWrapper.getConverterFromItemType(String, Class, Class) |
SingleValueConverter |
AttributeMapper.getConverterFromItemType(java.lang.Class type)
Deprecated.
|
SingleValueConverter |
Mapper.getConverterFromItemType(java.lang.Class type)
Deprecated.
As of 1.3, use
Mapper.getConverterFromItemType(String, Class, Class) |
SingleValueConverter |
DefaultMapper.getConverterFromItemType(java.lang.String fieldName,
java.lang.Class type)
Deprecated.
As of 1.3, use
DefaultMapper.getConverterFromItemType(String, Class, Class) |
SingleValueConverter |
MapperWrapper.getConverterFromItemType(java.lang.String fieldName,
java.lang.Class type)
Deprecated.
As of 1.3, use
MapperWrapper.getConverterFromItemType(String, Class, Class) |
SingleValueConverter |
AttributeMapper.getConverterFromItemType(java.lang.String fieldName,
java.lang.Class type)
Deprecated.
|
SingleValueConverter |
Mapper.getConverterFromItemType(java.lang.String fieldName,
java.lang.Class type)
Deprecated.
As of 1.3, use
Mapper.getConverterFromItemType(String, Class, Class) |
SingleValueConverter |
EnumMapper.getConverterFromItemType(java.lang.String fieldName,
java.lang.Class type,
java.lang.Class definedIn) |
SingleValueConverter |
DefaultMapper.getConverterFromItemType(java.lang.String fieldName,
java.lang.Class type,
java.lang.Class definedIn) |
SingleValueConverter |
LocalConversionMapper.getConverterFromItemType(java.lang.String fieldName,
java.lang.Class type,
java.lang.Class definedIn) |
SingleValueConverter |
MapperWrapper.getConverterFromItemType(java.lang.String fieldName,
java.lang.Class type,
java.lang.Class definedIn) |
SingleValueConverter |
AttributeMapper.getConverterFromItemType(java.lang.String fieldName,
java.lang.Class type,
java.lang.Class definedIn) |
SingleValueConverter |
Mapper.getConverterFromItemType(java.lang.String fieldName,
java.lang.Class type,
java.lang.Class definedIn)
Returns a single value converter to be used in a specific field.
|
Copyright © 2004–2024 XStream. All rights reserved.