public class MWStructToBeanFactorySetter extends MWStructToBeanFactory
beanType, beanTypeMap, propNames| Constructor and Description |
|---|
MWStructToBeanFactorySetter(Class beanType,
List<String> fieldNames,
Map<String,Class> beanTypeMap,
Map<String,Method> beanSetterMap)
Create an instance of this factory
|
| Modifier and Type | Method and Description |
|---|---|
Map<String,Method> |
getBeanSetterMap() |
Object |
newInstance(List<String> structFieldNames,
Object... args)
Create an instance of user defined class.
|
getAllPropTypes, getBeanType, getJavaClassForStructField, getPropNamespublic MWStructToBeanFactorySetter(Class beanType, List<String> fieldNames, Map<String,Class> beanTypeMap, Map<String,Method> beanSetterMap)
beanType - User defined class that this factory will create instances offieldNames - names of the fields of the user defined class. They also represent the names of fields of a
MATLAB structurebeanTypeMap - A Map containing field names as keys and their types as valuesbeanSetterMap - A Map containing field name as key and its public set method as the value.public Object newInstance(List<String> structFieldNames, Object... args)
newInstance in class MWStructToBeanFactorystructFieldNames - names of fields of beanType. The index of a field in this list is used to get the value
from args arrayargs - values of fieldsCopyright © 2015–2021. All rights reserved.