| Modifier and Type | Class and Description |
|---|---|
| private static class | |
| public static class | AbstractReflectionConverter.DuplicateFieldException
Deprecated
as a consequence of
ConversionException being deprecated.
|
| private static class | |
| private static class | |
| private static interface | |
| private class | |
| public static class | AbstractReflectionConverter.UnknownFieldException
Deprecated
as a consequence of
ConversionException being deprecated.
|
| Modifier and Type | Field and Description |
|---|---|
| protected final Mapper | |
| private transient ReflectionProvider | |
| protected final ReflectionProvider | |
| protected transient SerializationMembers | |
| protected transient SerializationMethodInvoker | serializationMethodInvoker
Deprecated
As of 1.4.8, use
serializationMembers.
|
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected boolean | |
| protected void | doMarshal(final Object source, final HierarchicalStreamWriter writer, final MarshallingContext context)
|
| public Object | doUnmarshal(final Object result, final HierarchicalStreamReader reader, final UnmarshallingContext context)
|
| public void | |
| private void | handleUnknownField(Class<T> classDefiningField, String fieldName, Class<T> resultType, String originalNodeName)
|
| protected Object | |
| public void | marshal(Object
The object to be marshalled. original, final HierarchicalStreamWriter A stream to write to. writer, final MarshallingContext A context that allows nested objects to be processed by XStream. context)Implements com. |
| protected void | |
| private Class | |
| protected Object | |
| protected boolean | |
| protected boolean | |
| public Object | unmarshal(final HierarchicalStreamReader
The stream to read the text from. reader, final UnmarshallingContext context)Implements com. |
| protected Object | unmarshallField(final UnmarshallingContext context, final Object result, Class<T> type, Field field)
|
| private void | writeValueToImplicitCollection(Object value, Map<K, V> implicitCollections, Object result, final AbstractReflectionConverter.
|
| mapper | back to summary |
|---|---|
| protected final Mapper mapper | |
| pureJavaReflectionProvider | back to summary |
|---|---|
| private transient ReflectionProvider pureJavaReflectionProvider | |
| reflectionProvider | back to summary |
|---|---|
| protected final ReflectionProvider reflectionProvider | |
| serializationMembers | back to summary |
|---|---|
| protected transient SerializationMembers serializationMembers | |
| serializationMethodInvoker | back to summary |
|---|---|
| protected transient SerializationMethodInvoker serializationMethodInvoker
Deprecated As of 1.4.8, use | |
| AbstractReflectionConverter | back to summary |
|---|---|
| public AbstractReflectionConverter(Mapper mapper, ReflectionProvider reflectionProvider) | |
| canAccess | back to summary |
|---|---|
| protected boolean canAccess(Class<T> type) | |
| doMarshal | back to summary |
|---|---|
| protected void doMarshal(final Object source, final HierarchicalStreamWriter writer, final MarshallingContext context) | |
| doUnmarshal | back to summary |
|---|---|
| public Object doUnmarshal(final Object result, final HierarchicalStreamReader reader, final UnmarshallingContext context) | |
| flushCache | back to summary |
|---|---|
| public void flushCache() Implements com. | |
| handleUnknownField | back to summary |
|---|---|
| private void handleUnknownField(Class<T> classDefiningField, String fieldName, Class<T> resultType, String originalNodeName) | |
| instantiateNewInstance | back to summary |
|---|---|
| protected Object instantiateNewInstance(HierarchicalStreamReader reader, UnmarshallingContext context) | |
| marshal | back to summary |
|---|---|
| public void marshal(Object original, final HierarchicalStreamWriter writer, final MarshallingContext context) Implements com. Doc from com. Convert an object to textual data.
| |
| marshallField | back to summary |
|---|---|
| protected void marshallField(final MarshallingContext context, Object newObj, Field field) | |
| readDeclaringClass | back to summary |
|---|---|
| private Class | |
| readResolve | back to summary |
|---|---|
| protected Object readResolve() | |
| shouldUnmarshalField | back to summary |
|---|---|
| protected boolean shouldUnmarshalField(Field field) | |
| shouldUnmarshalTransientFields | back to summary |
|---|---|
| protected boolean shouldUnmarshalTransientFields() | |
| unmarshal | back to summary |
|---|---|
| public Object unmarshal(final HierarchicalStreamReader reader, final UnmarshallingContext context) Implements com. Doc from com. Convert textual data back into an object.
| |
| unmarshallField | back to summary |
|---|---|
| protected Object unmarshallField(final UnmarshallingContext context, final Object result, Class<T> type, Field field) | |
| writeValueToImplicitCollection | back to summary |
|---|---|
| private void writeValueToImplicitCollection(Object value, Map<K, V> implicitCollections, Object result, final AbstractReflectionConverter. | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final Class |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv Object |
| physicalFieldType | back to summary |
|---|---|
| pack-priv final Class<T> physicalFieldType | |
| ArraysList | back to summary |
|---|---|
| pack-priv ArraysList(Class<T> physicalFieldType) | |
| toPhysicalArray | back to summary |
|---|---|
| pack-priv Object toPhysicalArray() | |
Deprecated
as a consequence of ConversionException being deprecated. See corresponding docs for further information.
| Access | Constructor and Description |
|---|---|
| public |
| DuplicateFieldException | back to summary |
|---|---|
| public DuplicateFieldException(String msg) | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final Class | |
| pack-priv final Object |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| type | back to summary |
|---|---|
| pack-priv final Class<T> type | |
| value | back to summary |
|---|---|
| pack-priv final Object value | |
| FieldInfo | back to summary |
|---|---|
| pack-priv FieldInfo(final String fieldName, final Class<T> type, final Class<T> definedIn, final Object value) | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final Class | |
| pack-priv final String |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(final Object
the reference object with which to compare. obj)Overrides java. |
| public int |
| definedIn | back to summary |
|---|---|
| pack-priv final Class<T> definedIn | |
| fieldName | back to summary |
|---|---|
| pack-priv final String fieldName | |
| FieldLocation | back to summary |
|---|---|
| pack-priv FieldLocation(final String fieldName, final Class<T> definedIn) | |
| equals | back to summary |
|---|---|
| public boolean equals(final Object obj) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes.
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for the object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void |
| writeField | back to summary |
|---|---|
| public void writeField(final String fieldName, final String aliasName, final Class<T> fieldType, final Class<T> definedIn, final Object newObj) | |
| writeItem | back to summary |
|---|---|
| public void writeItem(final Object item) | |
| Modifier and Type | Field and Description |
|---|---|
| private final Map | |
| private final String | |
| private final Map |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | add(Object
element to be appended to this list object)Overrides java. Implements java. |
| public Object | get(int
index of the element to return index)Implements abstract java. Implements java. |
| public int | size()
Implements abstract java. Implements java. |
| fieldCache | back to summary |
|---|---|
| private final Map<K, V> fieldCache | |
| keyFieldName | back to summary |
|---|---|
| private final String keyFieldName | |
| map | back to summary |
|---|---|
| private final Map<K, V> map | |
| MappingList | back to summary |
|---|---|
| public MappingList(Map<K, V> map, String keyFieldName) | |
| add | back to summary |
|---|---|
| public boolean add(Object object) Overrides java. Implements java. Doc from java. Appends the specified element to the end of this list (optional operation). Lists that support this operation may place limitations on what elements may be added to this list. In particular, some lists will refuse to add null elements, and others will impose restrictions on the type of elements that may be added. List classes should clearly specify in their documentation any restrictions on what elements may be added.
| |
| get | back to summary |
|---|---|
| public Object get(int index) Implements abstract java. Implements java. Doc from java. Returns the element at the specified position in this list.
| |
| size | back to summary |
|---|---|
| public int size() Implements abstract java. Implements java. Doc from java. Returns the number of elements in this list. If this list contains
more than
| |
Deprecated
as a consequence of ConversionException being deprecated. See corresponding docs for further information.
| Access | Constructor and Description |
|---|---|
| public |
| UnknownFieldException | back to summary |
|---|---|
| public UnknownFieldException(String type, String field) | |