Supports java.util.ArrayList, java.util.HashSet, java.util.LinkedList, java.util.Vector and java.util.LinkedHashSet.
| Access | Constructor and Description |
|---|---|
| public | |
| public | CollectionConverter(Mapper
the mapper mapper, Class<T> the Collection type to handle type)Construct a CollectionConverter for a special Collection type. |
| type | back to summary |
|---|---|
| private final Class<T> type | |
| CollectionConverter | back to summary |
|---|---|
| public CollectionConverter(Mapper mapper) | |
| CollectionConverter | back to summary |
|---|---|
| public CollectionConverter(Mapper mapper, Class<T> type) Construct a CollectionConverter for a special Collection type. | |
| addCurrentElementToCollection | back to summary |
|---|---|
| protected void addCurrentElementToCollection(HierarchicalStreamReader reader, UnmarshallingContext context, Collection<E> collection, Collection<E> target) | |
| canConvert | back to summary |
|---|---|
| public boolean canConvert(Class<T> type) Implements abstract com. Implements com. Doc from com. Determines whether the converter can marshall a particular type.
| |
| createCollection | back to summary |
|---|---|
| protected Object createCollection(Class<T> type) Overrides com. | |
| marshal | back to summary |
|---|---|
| public void marshal(Object source, HierarchicalStreamWriter writer, MarshallingContext context) Implements abstract com. Implements com. Doc from com. Convert an object to textual data.
| |
| populateCollection | back to summary |
|---|---|
| protected void populateCollection(HierarchicalStreamReader reader, UnmarshallingContext context, Collection<E> collection) | |
| populateCollection | back to summary |
|---|---|
| protected void populateCollection(HierarchicalStreamReader reader, UnmarshallingContext context, Collection<E> collection, Collection<E> target) | |
| unmarshal | back to summary |
|---|---|
| public Object unmarshal(HierarchicalStreamReader reader, UnmarshallingContext context) Implements abstract com. Implements com. Doc from com. Convert textual data back into an object.
| |