public class MatchResultSwap extends PojoSwap<MatchResult,List<String>>
MatchResults
to List
objects.
Entries in the list represent matched groups in a regular expression.
Constructor and Description |
---|
MatchResultSwap() |
Modifier and Type | Method and Description |
---|---|
List<String> |
swap(BeanSession session,
MatchResult o)
Converts the specified
Enumeration to a List . |
forMediaTypes, forMediaTypes, getNormalClass, getSwapClass, getSwapClassMeta, isNormalObject, isSwappedObject, match, swap, toString, unswap, unswap, withTemplate, withTemplate
public MatchResultSwap()
public List<String> swap(BeanSession session, MatchResult o)
Enumeration
to a List
.swap
in class PojoSwap<MatchResult,List<String>>
session
- The bean session to use to get the class meta.
This is always going to be the same bean context that created this swap.o
- The object to be transformed.Copyright © 2016–2020 The Apache Software Foundation. All rights reserved.