Class OneOfDeserializer<T>
- java.lang.Object
-
- com.fasterxml.jackson.databind.JsonDeserializer<T>
-
- com.fasterxml.jackson.databind.deser.std.StdDeserializer<T>
-
- com.stackone.stackone_client_java.utils.OneOfDeserializer<T>
-
- All Implemented Interfaces:
com.fasterxml.jackson.databind.deser.NullValueProvider,com.fasterxml.jackson.databind.deser.ValueInstantiator.Gettable,java.io.Serializable
- Direct Known Subclasses:
AccountAddressLocationTypeSourceValue._Deserializer,AccountAddressSourceValue._Deserializer,Active._Deserializer,AdditionalDataValue._Deserializer,AnswerSourceValue._Deserializer,ApplicationAttachmentSourceValue._Deserializer,ApplicationChangesDataModelSourceValue._Deserializer,ApplicationChangesSourceValue._Deserializer,ApplicationSourceValue._Deserializer,Archived._Deserializer,AssessmentResultSourceValue._Deserializer,AssignmentLearningObjectTypeSourceValue._Deserializer,AssignmentSourceValue._Deserializer,AtsCreateApplicationRequestDtoSourceValue._Deserializer,AtsCreateBackgroundCheckOrderRequestDtoSourceValue._Deserializer,AtsCreateCandidatesAssessmentsRequestDtoSourceValue._Deserializer,AtsCreateJobRequestDtoSourceValue._Deserializer,AtsCreateNotesRequestDtoSourceValue._Deserializer,AtsCreateOfferRequestDtoSourceValue._Deserializer,AtsDocumentApiModelFileFormatSourceValue._Deserializer,AtsDocumentApiModelSourceValue._Deserializer,AtsDocumentApiModelTypeSourceValue._Deserializer,AtsUpdateApplicationRequestDtoSourceValue._Deserializer,AtsUpdateBackgroundCheckResultRequestDtoSourceValue._Deserializer,AtsUpdateCandidatesAssessmentsResultsRequestDtoSourceValue._Deserializer,AtsUpdateJobRequestDtoSourceValue._Deserializer,AtsUpdateNotesRequestDtoSourceValue._Deserializer,AttachmentSourceValue._Deserializer,BackgroundCheckResultSourceValue._Deserializer,Body._Deserializer,CampaignSourceValue._Deserializer,CampaignStatusSourceValue._Deserializer,CategoryActive._Deserializer,CategoryLanguageSourceValue._Deserializer,CategoryLevelSourceValue._Deserializer,CategorySourceValue._Deserializer,ChannelsEnumSourceValue._Deserializer,CompletionLearningObjectTypeSourceValue._Deserializer,CompletionSourceValue._Deserializer,ContentBlockSourceValue._Deserializer,ContentBlockStatusSourceValue._Deserializer,ContentSourceValue._Deserializer,CourseActive._Deserializer,CreateAnswerSourceValue._Deserializer,CreateCategoriesApiModelLanguageSourceValue._Deserializer,CreateCategoriesApiModelLevelSourceValue._Deserializer,CreateCategoriesApiModelSourceValue._Deserializer,CreateEmploymentApiModelEmploymentContractTypeSourceValue._Deserializer,CreateEmploymentApiModelEmploymentTypeSourceValue._Deserializer,CreateEmploymentApiModelPayFrequencySourceValue._Deserializer,CreateEmploymentApiModelSourceValue._Deserializer,CreateEmploymentApiModelWorkTimeSourceValue._Deserializer,CreateHRISBenefitSourceValue._Deserializer,CreateMessageMessageContent._Deserializer,CreateMessageSourceValue._Deserializer,CreateSkillsApiModelLanguageSourceValue._Deserializer,CreateSkillsApiModelLevelSourceValue._Deserializer,CreateSkillsApiModelSourceValue._Deserializer,CustomFieldDefinitionSourceValue._Deserializer,CustomFieldsValue._Deserializer,Draft._Deserializer,EmailMessagesSourceValue._Deserializer,EmployeeEmploymentContractTypeSourceValue._Deserializer,EmployeeEmploymentStatusSourceValue._Deserializer,EmployeeEmploymentTypeSourceValue._Deserializer,EmployeeEthnicitySourceValue._Deserializer,EmployeeHomeLocationLocationTypeSourceValue._Deserializer,EmployeeHomeLocationSourceValue._Deserializer,EmployeeMaritalStatusSourceValue._Deserializer,EmployeeNationalIdentityNumberCountrySourceValue._Deserializer,EmployeeNationalIdentityNumberSourceValue._Deserializer,EmployeePreferredLanguageSourceValue._Deserializer,EmployeeSourceValue._Deserializer,EmployeeWorkLocationLocationTypeSourceValue._Deserializer,EmployeeWorkLocationSourceValue._Deserializer,EmploymentContractTypeSourceValue._Deserializer,EmploymentCostCenterSourceValue._Deserializer,EmploymentDepartmentSourceValue._Deserializer,EmploymentDivisionSourceValue._Deserializer,EmploymentEmploymentContractTypeSourceValue._Deserializer,EmploymentEmploymentTypeSourceValue._Deserializer,EmploymentManagerApiModelSourceValue._Deserializer,EmploymentPayFrequencySourceValue._Deserializer,EmploymentSourceValue._Deserializer,EmploymentTypeSourceValue._Deserializer,EmploymentWorkTimeSourceValue._Deserializer,EndHalfDay._Deserializer,EntitySkillsCreateRequestDtoMinimumProficiencySourceValue._Deserializer,EntitySkillsCreateRequestDtoSourceValue._Deserializer,EntitySkillsMaximumProficiencySourceValue._Deserializer,EntitySkillsMinimumProficiencySourceValue._Deserializer,EntitySkillsSourceValue._Deserializer,FileFileFormatSourceValue._Deserializer,FileSourceValue._Deserializer,HRISBenefitSourceValue._Deserializer,HRISCostCenterSourceValue._Deserializer,HrisCreateEmployeeRequestDtoEmploymentContractTypeSourceValue._Deserializer,HrisCreateEmployeeRequestDtoEmploymentEmploymentContractTypeSourceValue._Deserializer,HrisCreateEmployeeRequestDtoEmploymentEmploymentTypeSourceValue._Deserializer,HrisCreateEmployeeRequestDtoEmploymentPayFrequencySourceValue._Deserializer,HrisCreateEmployeeRequestDtoEmploymentSourceValue._Deserializer,HrisCreateEmployeeRequestDtoEmploymentStatusSourceValue._Deserializer,HrisCreateEmployeeRequestDtoEmploymentTypeSourceValue._Deserializer,HrisCreateEmployeeRequestDtoEmploymentWorkTimeSourceValue._Deserializer,HrisCreateEmployeeRequestDtoEthnicitySourceValue._Deserializer,HrisCreateEmployeeRequestDtoHomeLocationSourceValue._Deserializer,HrisCreateEmployeeRequestDtoHomeLocationStateSourceValue._Deserializer,HrisCreateEmployeeRequestDtoMaritalStatusSourceValue._Deserializer,HrisCreateEmployeeRequestDtoNationalIdentityNumberCountrySourceValue._Deserializer,HrisCreateEmployeeRequestDtoNationalIdentityNumberSourceValue._Deserializer,HrisCreateEmployeeRequestDtoPreferredLanguageSourceValue._Deserializer,HrisCreateEmployeeRequestDtoSourceValue._Deserializer,HrisCreateEmployeeRequestDtoWorkLocationSourceValue._Deserializer,HrisCreateEmployeeRequestDtoWorkLocationStateSourceValue._Deserializer,HrisCreateEmploymentRequestDtoEmploymentContractTypeSourceValue._Deserializer,HrisCreateEmploymentRequestDtoEmploymentTypeSourceValue._Deserializer,HrisCreateEmploymentRequestDtoPayFrequencySourceValue._Deserializer,HrisCreateEmploymentRequestDtoSourceValue._Deserializer,HrisCreateEmploymentRequestDtoWorkTimeSourceValue._Deserializer,HrisCreateTimeOffRequestDtoEndHalfDay._Deserializer,HrisCreateTimeOffRequestDtoSourceValue._Deserializer,HrisCreateTimeOffRequestDtoStartHalfDay._Deserializer,HrisCreateTimeOffRequestDtoTypeSourceValue._Deserializer,HrisCreateWorkEligibilityRequestDtoDocumentCategorySourceValue._Deserializer,HrisCreateWorkEligibilityRequestDtoDocumentSourceValue._Deserializer,HrisCreateWorkEligibilityRequestDtoSourceValue._Deserializer,HrisCreateWorkEligibilityRequestDtoTypeSourceValue._Deserializer,HRISDepartmentSourceValue._Deserializer,HRISDivisionSourceValue._Deserializer,HrisDocumentApiModelFileFormatSourceValue._Deserializer,HrisDocumentApiModelSourceValue._Deserializer,HrisDocumentApiModelTypeSourceValue._Deserializer,HrisDocumentsUploadRequestDtoConfidentialSourceValue._Deserializer,HrisDocumentsUploadRequestDtoSourceValue._Deserializer,HRISGroupSourceValue._Deserializer,HRISLocationLocationTypeSourceValue._Deserializer,HRISLocationSourceValue._Deserializer,HrisShiftApprovalStatusSourceValue._Deserializer,HrisShiftResultDataSourceValue._Deserializer,HrisShiftResultSourceValue._Deserializer,HrisShiftSourceValue._Deserializer,HRISTeamSourceValue._Deserializer,HrisUpdateEmployeeRequestDtoEmploymentContractTypeSourceValue._Deserializer,HrisUpdateEmployeeRequestDtoEmploymentEmploymentContractTypeSourceValue._Deserializer,HrisUpdateEmployeeRequestDtoEmploymentEmploymentTypeSourceValue._Deserializer,HrisUpdateEmployeeRequestDtoEmploymentPayFrequencySourceValue._Deserializer,HrisUpdateEmployeeRequestDtoEmploymentSourceValue._Deserializer,HrisUpdateEmployeeRequestDtoEmploymentStatusSourceValue._Deserializer,HrisUpdateEmployeeRequestDtoEmploymentTypeSourceValue._Deserializer,HrisUpdateEmployeeRequestDtoEmploymentWorkTimeSourceValue._Deserializer,HrisUpdateEmployeeRequestDtoEthnicitySourceValue._Deserializer,HrisUpdateEmployeeRequestDtoHomeLocationSourceValue._Deserializer,HrisUpdateEmployeeRequestDtoHomeLocationStateSourceValue._Deserializer,HrisUpdateEmployeeRequestDtoMaritalStatusSourceValue._Deserializer,HrisUpdateEmployeeRequestDtoNationalIdentityNumberCountrySourceValue._Deserializer,HrisUpdateEmployeeRequestDtoNationalIdentityNumberSourceValue._Deserializer,HrisUpdateEmployeeRequestDtoPreferredLanguageSourceValue._Deserializer,HrisUpdateEmployeeRequestDtoSourceValue._Deserializer,HrisUpdateEmployeeRequestDtoWorkLocationSourceValue._Deserializer,HrisUpdateEmployeeRequestDtoWorkLocationStateSourceValue._Deserializer,HrisUpdateEmploymentRequestDtoEmploymentContractTypeSourceValue._Deserializer,HrisUpdateEmploymentRequestDtoEmploymentTypeSourceValue._Deserializer,HrisUpdateEmploymentRequestDtoPayFrequencySourceValue._Deserializer,HrisUpdateEmploymentRequestDtoSourceValue._Deserializer,HrisUpdateEmploymentRequestDtoWorkTimeSourceValue._Deserializer,IamGroupSourceValue._Deserializer,IamMfaTypeEnumSourceValue._Deserializer,IamPermissionSourceValue._Deserializer,IamResourceSourceValue._Deserializer,IamRoleSourceValue._Deserializer,IamUpdateUserRequestDtoIsBotUser._Deserializer,IamUpdateUserRequestDtoSourceValue._Deserializer,IamUserAvatarFileFormatSourceValue._Deserializer,IamUserAvatarSourceValue._Deserializer,IamUserSourceValue._Deserializer,InAppMessagesSourceValue._Deserializer,InterviewPartSourceValue._Deserializer,InterviewSourceValue._Deserializer,IsBotUser._Deserializer,JobPostingCompensationPayFrequencySourceValue._Deserializer,JobPostingCompensationPayPeriodSourceValue._Deserializer,JobPostingCompensationSourceValue._Deserializer,JobPostingContentSectionSourceValue._Deserializer,JobPostingEmploymentContractTypeSourceValue._Deserializer,JobPostingEmploymentTypeSourceValue._Deserializer,JobPostingQuestionnaireInternal._Deserializer,JobPostingSourceValue._Deserializer,JobSourceValue._Deserializer,LanguageEnumSourceValue._Deserializer,ListSourceValue._Deserializer,LmsCreateAssignmentRequestDtoSourceValue._Deserializer,LmsCreateCompletionRequestDtoSourceValue._Deserializer,LmsCreateContentRequestDtoActive._Deserializer,LmsCreateContentRequestDtoSourceValue._Deserializer,LmsUpsertContentRequestDtoActive._Deserializer,LmsUpsertContentRequestDtoSourceValue._Deserializer,LmsUserActive._Deserializer,LocalizationModelSourceValue._Deserializer,MarketingCreateContentBlocksRequestDtoSourceValue._Deserializer,MessageMessageContent._Deserializer,MessageSourceValue._Deserializer,NationalIdentityNumberApiModelCountrySourceValue._Deserializer,NationalIdentityNumberApiModelSourceValue._Deserializer,NoteSourceValue._Deserializer,OfferSourceValue._Deserializer,PositionSourceValue._Deserializer,PushMessagesSourceValue._Deserializer,QuestionParentQuestionSourceValue._Deserializer,QuestionRequired._Deserializer,QuestionSourceValue._Deserializer,RawResponseResponse._Deserializer,ReferenceActive._Deserializer,RejectedReasonSourceValue._Deserializer,Required._Deserializer,ScheduledInterviewSourceValue._Deserializer,SkillsActive._Deserializer,SkillsLanguageSourceValue._Deserializer,SkillsLevelSourceValue._Deserializer,SkillsSourceValue._Deserializer,SmsMessagesSourceValue._Deserializer,SourceValue._Deserializer,StartHalfDay._Deserializer,TaskSourceValue._Deserializer,TaskStatusSourceValue._Deserializer,TimeEntriesActive._Deserializer,TimeEntriesSourceValue._Deserializer,TimeOffBalancesPolicySourceValue._Deserializer,TimeOffBalancesPolicyTypeSourceValue._Deserializer,TimeOffBalancesSourceValue._Deserializer,TimeOffPoliciesDurationUnitSourceValue._Deserializer,TimeOffPoliciesSourceValue._Deserializer,TimeOffPolicyDurationUnitSourceValue._Deserializer,TimeOffPolicySourceValue._Deserializer,TimeOffSourceValue._Deserializer,TimeOffTypeSourceValue._Deserializer,UnifiedUploadRequestDtoConfidentialSourceValue._Deserializer,UnifiedUploadRequestDtoSourceValue._Deserializer,WorkEligibilityDocumentFileFormatSourceValue._Deserializer,WorkEligibilityDocumentSourceValue._Deserializer,WorkEligibilityIssuedBySourceValue._Deserializer,WorkEligibilitySourceValue._Deserializer
public class OneOfDeserializer<T> extends com.fasterxml.jackson.databind.deser.std.StdDeserializer<T>- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedOneOfDeserializer(java.lang.Class<T> cls, boolean strict, Utils.TypeReferenceWithShape... typeReferences)Constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static <T> java.util.List<com.stackone.stackone_client_java.utils.OneOfDeserializer.Match<T>>applyMatchPreferences(java.util.List<com.stackone.stackone_client_java.utils.OneOfDeserializer.Match<T>> matches, java.lang.String json)Tdeserialize(com.fasterxml.jackson.core.JsonParser p, com.fasterxml.jackson.databind.DeserializationContext ctxt)static booleanmatchPossible(com.fasterxml.jackson.databind.JavaType type, java.lang.String json)-
Methods inherited from class com.fasterxml.jackson.databind.deser.std.StdDeserializer
_byteOverflow, _checkBooleanToStringCoercion, _checkCoercionFail, _checkDoubleSpecialValue, _checkFloatSpecialValue, _checkFloatToIntCoercion, _checkFloatToStringCoercion, _checkFromStringCoercion, _checkFromStringCoercion, _checkIntToFloatCoercion, _checkIntToStringCoercion, _checkTextualNull, _checkToStringCoercion, _coerceBooleanFromInt, _coercedTypeDesc, _coercedTypeDesc, _coerceEmptyString, _coerceIntegral, _coerceNullToken, _coerceTextualNull, _deserializeFromArray, _deserializeFromEmpty, _deserializeFromEmptyString, _deserializeFromString, _deserializeWrappedValue, _failDoubleToIntCoercion, _findCoercionFromBlankString, _findCoercionFromEmptyArray, _findCoercionFromEmptyString, _findNullProvider, _hasTextualNull, _intOverflow, _isBlank, _isEmptyOrTextualNull, _isFalse, _isIntNumber, _isNaN, _isNegInf, _isPosInf, _isTrue, _neitherNull, _nonNullNumber, _parseBoolean, _parseBooleanFromInt, _parseBooleanPrimitive, _parseBooleanPrimitive, _parseBytePrimitive, _parseDate, _parseDate, _parseDateFromArray, _parseDouble, _parseDouble, _parseDoublePrimitive, _parseDoublePrimitive, _parseDoublePrimitive, _parseFloatPrimitive, _parseFloatPrimitive, _parseFloatPrimitive, _parseInteger, _parseInteger, _parseIntPrimitive, _parseIntPrimitive, _parseLong, _parseLong, _parseLongPrimitive, _parseLongPrimitive, _parseShortPrimitive, _parseString, _parseString, _reportFailedNullCoerce, _shortOverflow, _verifyEndArrayForSingle, _verifyNullForPrimitive, _verifyNullForPrimitiveCoercion, _verifyNullForScalarCoercion, _verifyNumberForScalarCoercion, _verifyStringForScalarCoercion, deserializeWithType, findContentNullProvider, findContentNullStyle, findConvertingContentDeserializer, findDeserializer, findFormatFeature, findFormatOverrides, findValueNullProvider, getValueClass, getValueInstantiator, getValueType, getValueType, handledType, handleMissingEndArrayForSingle, handleNestedArrayForSingle, handleUnknownProperty, isDefaultDeserializer, isDefaultKeyDeserializer
-
Methods inherited from class com.fasterxml.jackson.databind.JsonDeserializer
deserialize, deserializeWithType, findBackReference, getAbsentValue, getDelegatee, getEmptyAccessPattern, getEmptyValue, getEmptyValue, getKnownPropertyNames, getNullAccessPattern, getNullValue, getNullValue, getObjectIdReader, isCachable, logicalType, replaceDelegatee, supportsUpdate, unwrappingDeserializer
-
-
-
-
Constructor Detail
-
OneOfDeserializer
protected OneOfDeserializer(java.lang.Class<T> cls, boolean strict, Utils.TypeReferenceWithShape... typeReferences)
Constructor.- Parameters:
cls- oneOf typestrict- if true then when multiple matches encountered an exception is thrown. If false then when multiple matches encountered the first match from the typeReferences array is used as deserialization result.typeReferences- the types of the oneOf subschemas. When strict is false the first matching member of this array will be the type of the deserialization result.
-
-
Method Detail
-
deserialize
public T deserialize(com.fasterxml.jackson.core.JsonParser p, com.fasterxml.jackson.databind.DeserializationContext ctxt) throws java.io.IOException
- Specified by:
deserializein classcom.fasterxml.jackson.databind.JsonDeserializer<T>- Throws:
java.io.IOException
-
matchPossible
public static boolean matchPossible(com.fasterxml.jackson.databind.JavaType type, java.lang.String json)
-
applyMatchPreferences
public static <T> java.util.List<com.stackone.stackone_client_java.utils.OneOfDeserializer.Match<T>> applyMatchPreferences(java.util.List<com.stackone.stackone_client_java.utils.OneOfDeserializer.Match<T>> matches, java.lang.String json)
-
-