Package org.apache.juneau.swaps
Class EnumerationSwap
Transforms
Enumerations to List<Object> objects.
This is a one-way transform, since Enumerations cannot be reconstituted.
See Also:
-
Field Summary
Fields inherited from class org.apache.juneau.swap.ObjectSwap
NULL -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionswap(BeanSession session, Enumeration o) Converts the specifiedEnumerationto aList.Methods inherited from class org.apache.juneau.swap.ObjectSwap
forMediaTypes, forMediaTypes, getNormalClass, getSwapClass, getSwapClassMeta, isNormalObject, isSwappedObject, match, swap, toString, unswap, unswap, withTemplate, withTemplate
-
Constructor Details
-
EnumerationSwap
public EnumerationSwap()
-
-
Method Details
-
swap
Converts the specifiedEnumerationto aList.- Overrides:
swapin classObjectSwap<Enumeration,List> - Parameters:
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.- Returns:
- The transformed object.
-