Class StringSwap<T>
java.lang.Object
org.apache.juneau.marshall.swap.spi.ObjectSwap<T,String>
org.apache.juneau.marshall.swap.spi.StringSwap<T>
- Type Parameters:
T- The normal form of the class.
- Direct Known Subclasses:
AutoStringSwap,BinarySwap,ClassFormatSwap,InputStreamSwap,MarshallingStringSwap,ReaderSwap,StringFormatSwap,UrlSwap
Abstract subclass for object swaps that swap objects for strings.
Example:
See Also:
-
Field Summary
Fields inherited from class org.apache.juneau.marshall.swap.spi.ObjectSwap
NULL -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedConstructor.protectedStringSwap(Class<T> normalClass) Constructor for when the normal and transformed classes are already known. -
Method Summary
Methods inherited from class org.apache.juneau.marshall.swap.spi.ObjectSwap
forMediaTypes, forMediaTypes, getNormalClass, getSwapClass, getSwapClassMeta, isNormalObject, isSwappedObject, match, swap, swap, toString, unswap, unswap, withTemplate, withTemplate
-
Constructor Details
-
StringSwap
protected StringSwap()Constructor. -
StringSwap
Constructor for when the normal and transformed classes are already known.- Parameters:
normalClass- The normal class (cannot be serialized).
-