Package com.opencsv.bean
Class AbstractMappingStrategy.RecursiveType
- java.lang.Object
-
- com.opencsv.bean.AbstractMappingStrategy.RecursiveType
-
- Enclosing class:
- AbstractMappingStrategy<I,K extends java.lang.Comparable<K>,C extends ComplexFieldMapEntry<I,K,T>,T>
protected static class AbstractMappingStrategy.RecursiveType extends java.lang.Object
Encapsulates a bean type and all of the member variables that need to be recursed into.
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.Map<FieldAccess<java.lang.Object>,AbstractMappingStrategy.RecursiveType>
recursiveMembers
private java.lang.Class<?>
type
-
Constructor Summary
Constructors Modifier Constructor Description protected
RecursiveType(java.lang.Class<?> type)
Constructs aAbstractMappingStrategy.RecursiveType
with the specified type.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addRecursiveMember(FieldAccess<java.lang.Object> member, AbstractMappingStrategy.RecursiveType memberType)
Used to add a recursive type.java.util.Map<FieldAccess<java.lang.Object>,AbstractMappingStrategy.RecursiveType>
getRecursiveMembers()
java.lang.Class<?>
getType()
-
-
-
Field Detail
-
type
private final java.lang.Class<?> type
-
recursiveMembers
private final java.util.Map<FieldAccess<java.lang.Object>,AbstractMappingStrategy.RecursiveType> recursiveMembers
-
-
Constructor Detail
-
RecursiveType
protected RecursiveType(java.lang.Class<?> type)
Constructs aAbstractMappingStrategy.RecursiveType
with the specified type.- Parameters:
type
- Type associated with this branch
-
-
Method Detail
-
getType
public java.lang.Class<?> getType()
- Returns:
- Type associated with this branch
-
addRecursiveMember
public void addRecursiveMember(FieldAccess<java.lang.Object> member, AbstractMappingStrategy.RecursiveType memberType)
Used to add a recursive type.- Parameters:
member
- Field access member to add a recursive type tomemberType
-AbstractMappingStrategy.RecursiveType
to add
-
getRecursiveMembers
public java.util.Map<FieldAccess<java.lang.Object>,AbstractMappingStrategy.RecursiveType> getRecursiveMembers()
- Returns:
Map
of field access toAbstractMappingStrategy.RecursiveType
.
-
-