Constructor and Description |
---|
PetTagNameSwap() |
Modifier and Type | Method and Description |
---|---|
MediaType[] |
forMediaTypes()
This is only applicable to HTML serialization.
|
String |
swap(BeanSession bs,
PetTag o)
Swap PetTag with name.
|
forMediaTypes, getNormalClass, getSwapClass, getSwapClassMeta, isNormalObject, isSwappedObject, match, swap, toString, unswap, unswap, withTemplate, withTemplate
public PetTagNameSwap()
public String swap(BeanSession bs, PetTag o) throws Exception
swap
in class PojoSwap<PetTag,String>
bs
- 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.Exception
- If a problem occurred trying to convert the output.public MediaType[] forMediaTypes()
forMediaTypes
in class PojoSwap<PetTag,String>
Copyright © 2016–2019 The Apache Software Foundation. All rights reserved.