public class MWStructToBeanFactoryConstructor extends MWStructToBeanFactory
beanType, beanTypeMap, propNames| Constructor and Description |
|---|
MWStructToBeanFactoryConstructor(Class beanType,
List<String> fieldNames,
Map<String,Class> beanTypeMap,
Constructor beanConstructor)
Create an instance of this factory.
|
| Modifier and Type | Method and Description |
|---|---|
Constructor |
getBeanConstructor() |
Object |
newInstance(List<String> structFieldNames,
Object... args)
Create instance of user defined class using the constructor with @ConstructorProperties annotation.
|
getAllPropTypes, getBeanType, getJavaClassForStructField, getPropNamespublic MWStructToBeanFactoryConstructor(Class beanType, List<String> fieldNames, Map<String,Class> beanTypeMap, Constructor beanConstructor)
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 valuesbeanConstructor - Reference to the Constructor that as @ConstructorProperties annotationpublic 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 fieldspublic Constructor getBeanConstructor()
Copyright © 2015–2024. All rights reserved.