Class JsonParseNode
java.lang.Object
com.microsoft.kiota.serialization.JsonParseNode
- All Implemented Interfaces:
com.microsoft.kiota.serialization.ParseNode
ParseNode implementation for JSON
-
Constructor Summary
ConstructorsConstructorDescriptionJsonParseNode(com.google.gson.JsonElement node) Creates a new instance of the JsonParseNode class. -
Method Summary
Modifier and TypeMethodDescriptionbyte[]com.microsoft.kiota.serialization.ParseNodegetChildNode(String identifier) getCollectionOfEnumValues(com.microsoft.kiota.serialization.ValuedEnumParser<T> enumParser) <T extends com.microsoft.kiota.serialization.Parsable>
List<T> getCollectionOfObjectValues(com.microsoft.kiota.serialization.ParsableFactory<T> factory) <T> List<T> getCollectionOfPrimitiveValues(Class<T> targetClass) getEnumSetValue(com.microsoft.kiota.serialization.ValuedEnumParser<T> enumParser) <T extends Enum<T>>
TgetEnumValue(com.microsoft.kiota.serialization.ValuedEnumParser<T> enumParser) <T extends com.microsoft.kiota.serialization.Parsable>
TgetObjectValue(com.microsoft.kiota.serialization.ParsableFactory<T> factory) Consumer<com.microsoft.kiota.serialization.Parsable> Consumer<com.microsoft.kiota.serialization.Parsable> com.microsoft.kiota.PeriodAndDurationvoidsetOnAfterAssignFieldValues(Consumer<com.microsoft.kiota.serialization.Parsable> value) voidsetOnBeforeAssignFieldValues(Consumer<com.microsoft.kiota.serialization.Parsable> value)
-
Constructor Details
-
JsonParseNode
public JsonParseNode(@Nonnull com.google.gson.JsonElement node) Creates a new instance of the JsonParseNode class.- Parameters:
node- the node to wrap.
-
-
Method Details
-
getChildNode
@Nullable public com.microsoft.kiota.serialization.ParseNode getChildNode(@Nonnull String identifier) - Specified by:
getChildNodein interfacecom.microsoft.kiota.serialization.ParseNode
-
getStringValue
- Specified by:
getStringValuein interfacecom.microsoft.kiota.serialization.ParseNode
-
getBooleanValue
- Specified by:
getBooleanValuein interfacecom.microsoft.kiota.serialization.ParseNode
-
getByteValue
- Specified by:
getByteValuein interfacecom.microsoft.kiota.serialization.ParseNode
-
getShortValue
- Specified by:
getShortValuein interfacecom.microsoft.kiota.serialization.ParseNode
-
getBigDecimalValue
- Specified by:
getBigDecimalValuein interfacecom.microsoft.kiota.serialization.ParseNode
-
getIntegerValue
- Specified by:
getIntegerValuein interfacecom.microsoft.kiota.serialization.ParseNode
-
getFloatValue
- Specified by:
getFloatValuein interfacecom.microsoft.kiota.serialization.ParseNode
-
getDoubleValue
- Specified by:
getDoubleValuein interfacecom.microsoft.kiota.serialization.ParseNode
-
getLongValue
- Specified by:
getLongValuein interfacecom.microsoft.kiota.serialization.ParseNode
-
getUUIDValue
- Specified by:
getUUIDValuein interfacecom.microsoft.kiota.serialization.ParseNode
-
getOffsetDateTimeValue
- Specified by:
getOffsetDateTimeValuein interfacecom.microsoft.kiota.serialization.ParseNode
-
getLocalDateValue
- Specified by:
getLocalDateValuein interfacecom.microsoft.kiota.serialization.ParseNode
-
getLocalTimeValue
- Specified by:
getLocalTimeValuein interfacecom.microsoft.kiota.serialization.ParseNode
-
getPeriodAndDurationValue
@Nullable public com.microsoft.kiota.PeriodAndDuration getPeriodAndDurationValue()- Specified by:
getPeriodAndDurationValuein interfacecom.microsoft.kiota.serialization.ParseNode
-
getCollectionOfPrimitiveValues
- Specified by:
getCollectionOfPrimitiveValuesin interfacecom.microsoft.kiota.serialization.ParseNode
-
getCollectionOfObjectValues
@Nullable public <T extends com.microsoft.kiota.serialization.Parsable> List<T> getCollectionOfObjectValues(@Nonnull com.microsoft.kiota.serialization.ParsableFactory<T> factory) - Specified by:
getCollectionOfObjectValuesin interfacecom.microsoft.kiota.serialization.ParseNode
-
getCollectionOfEnumValues
@Nullable public <T extends Enum<T>> List<T> getCollectionOfEnumValues(@Nonnull com.microsoft.kiota.serialization.ValuedEnumParser<T> enumParser) - Specified by:
getCollectionOfEnumValuesin interfacecom.microsoft.kiota.serialization.ParseNode
-
getObjectValue
@Nonnull public <T extends com.microsoft.kiota.serialization.Parsable> T getObjectValue(@Nonnull com.microsoft.kiota.serialization.ParsableFactory<T> factory) - Specified by:
getObjectValuein interfacecom.microsoft.kiota.serialization.ParseNode
-
getEnumValue
@Nullable public <T extends Enum<T>> T getEnumValue(@Nonnull com.microsoft.kiota.serialization.ValuedEnumParser<T> enumParser) - Specified by:
getEnumValuein interfacecom.microsoft.kiota.serialization.ParseNode
-
getEnumSetValue
@Nullable public <T extends Enum<T>> EnumSet<T> getEnumSetValue(@Nonnull com.microsoft.kiota.serialization.ValuedEnumParser<T> enumParser) - Specified by:
getEnumSetValuein interfacecom.microsoft.kiota.serialization.ParseNode
-
getOnBeforeAssignFieldValues
@Nullable public Consumer<com.microsoft.kiota.serialization.Parsable> getOnBeforeAssignFieldValues()- Specified by:
getOnBeforeAssignFieldValuesin interfacecom.microsoft.kiota.serialization.ParseNode
-
getOnAfterAssignFieldValues
- Specified by:
getOnAfterAssignFieldValuesin interfacecom.microsoft.kiota.serialization.ParseNode
-
setOnBeforeAssignFieldValues
public void setOnBeforeAssignFieldValues(@Nullable Consumer<com.microsoft.kiota.serialization.Parsable> value) - Specified by:
setOnBeforeAssignFieldValuesin interfacecom.microsoft.kiota.serialization.ParseNode
-
setOnAfterAssignFieldValues
public void setOnAfterAssignFieldValues(@Nullable Consumer<com.microsoft.kiota.serialization.Parsable> value) - Specified by:
setOnAfterAssignFieldValuesin interfacecom.microsoft.kiota.serialization.ParseNode
-
getByteArrayValue
@Nullable public byte[] getByteArrayValue()- Specified by:
getByteArrayValuein interfacecom.microsoft.kiota.serialization.ParseNode
-