Package se.ansman.kotshi.model
Class SealedClassJsonAdapter
-
- All Implemented Interfaces:
public final class SealedClassJsonAdapter extends GeneratableJsonAdapter
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classSealedClassJsonAdapter.Subtype
-
Field Summary
Fields Modifier and Type Field Description private final StringtargetPackageNameprivate final List<String>targetSimpleNamesprivate final List<TypeVariableName>targetTypeVariablesprivate final Map<String, String>polymorphicLabelsprivate final StringlabelKeyprivate final Polymorphic.FallbackonMissingprivate final Polymorphic.FallbackonInvalidprivate final List<SealedClassJsonAdapter.Subtype>subtypesprivate final ClassNamedefaultTypeprivate final ClassNamerawTargetTypeprivate final TypeNametargetTypeprivate final ClassNameadapterClassNameprivate final TypeNameadapterTypeNameprivate final StringadapterName
-
Constructor Summary
Constructors Constructor Description SealedClassJsonAdapter(String targetPackageName, List<String> targetSimpleNames, List<TypeVariableName> targetTypeVariables, Map<String, String> polymorphicLabels, String labelKey, Polymorphic.Fallback onMissing, Polymorphic.Fallback onInvalid, List<SealedClassJsonAdapter.Subtype> subtypes, ClassName defaultType)
-
Method Summary
Modifier and Type Method Description StringgetTargetPackageName()List<String>getTargetSimpleNames()List<TypeVariableName>getTargetTypeVariables()final Map<String, String>getPolymorphicLabels()final StringgetLabelKey()final Polymorphic.FallbackgetOnMissing()final Polymorphic.FallbackgetOnInvalid()final List<SealedClassJsonAdapter.Subtype>getSubtypes()final ClassNamegetDefaultType()-
Methods inherited from class se.ansman.kotshi.model.GeneratableJsonAdapter
getAdapterClassName, getAdapterName, getAdapterTypeName, getRawTargetType, getTargetType -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
SealedClassJsonAdapter
SealedClassJsonAdapter(String targetPackageName, List<String> targetSimpleNames, List<TypeVariableName> targetTypeVariables, Map<String, String> polymorphicLabels, String labelKey, Polymorphic.Fallback onMissing, Polymorphic.Fallback onInvalid, List<SealedClassJsonAdapter.Subtype> subtypes, ClassName defaultType)
-
-
Method Detail
-
getTargetPackageName
String getTargetPackageName()
-
getTargetSimpleNames
List<String> getTargetSimpleNames()
-
getTargetTypeVariables
List<TypeVariableName> getTargetTypeVariables()
-
getPolymorphicLabels
final Map<String, String> getPolymorphicLabels()
-
getLabelKey
final String getLabelKey()
-
getOnMissing
final Polymorphic.Fallback getOnMissing()
-
getOnInvalid
final Polymorphic.Fallback getOnInvalid()
-
getSubtypes
final List<SealedClassJsonAdapter.Subtype> getSubtypes()
-
getDefaultType
final ClassName getDefaultType()
-
-
-
-