public class GetByNameUtil extends Object
Constructor and Description |
---|
GetByNameUtil() |
Modifier and Type | Method and Description |
---|---|
static <T extends AbstractJaxb> |
getByName(T target,
String name,
Class<T> tagType) |
static <T extends AbstractJaxb> |
getByNameAsList(T target,
List<T> resultList,
String name,
Class<T> tagType) |
public static <T extends AbstractJaxb> List<T> getByNameAsList(T target, List<T> resultList, String name, Class<T> tagType)
T
- tag class type. (i.e. Input.class, Select.class ...)target
- objects for scanresultList
- usually, pass new ArrayListname
- "name" property of tagtagType
- tag classpublic static <T extends AbstractJaxb> T getByName(T target, String name, Class<T> tagType)
T
- tag class type. (i.e. Input.class, Select.class ...)target
- objects for scanname
- "name" property of tagtagType
- tag classCopyright © 2021 Project Mixer2. All rights reserved.