Class JsonParseNode

java.lang.Object
com.microsoft.kiota.serialization.JsonParseNode
All Implemented Interfaces:
com.microsoft.kiota.serialization.ParseNode

public class JsonParseNode extends Object implements com.microsoft.kiota.serialization.ParseNode
ParseNode implementation for JSON
  • 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:
      getChildNode in interface com.microsoft.kiota.serialization.ParseNode
    • getStringValue

      @Nullable public String getStringValue()
      Specified by:
      getStringValue in interface com.microsoft.kiota.serialization.ParseNode
    • getBooleanValue

      @Nullable public Boolean getBooleanValue()
      Specified by:
      getBooleanValue in interface com.microsoft.kiota.serialization.ParseNode
    • getByteValue

      @Nullable public Byte getByteValue()
      Specified by:
      getByteValue in interface com.microsoft.kiota.serialization.ParseNode
    • getShortValue

      @Nullable public Short getShortValue()
      Specified by:
      getShortValue in interface com.microsoft.kiota.serialization.ParseNode
    • getBigDecimalValue

      @Nullable public BigDecimal getBigDecimalValue()
      Specified by:
      getBigDecimalValue in interface com.microsoft.kiota.serialization.ParseNode
    • getIntegerValue

      @Nullable public Integer getIntegerValue()
      Specified by:
      getIntegerValue in interface com.microsoft.kiota.serialization.ParseNode
    • getFloatValue

      @Nullable public Float getFloatValue()
      Specified by:
      getFloatValue in interface com.microsoft.kiota.serialization.ParseNode
    • getDoubleValue

      @Nullable public Double getDoubleValue()
      Specified by:
      getDoubleValue in interface com.microsoft.kiota.serialization.ParseNode
    • getLongValue

      @Nullable public Long getLongValue()
      Specified by:
      getLongValue in interface com.microsoft.kiota.serialization.ParseNode
    • getUUIDValue

      @Nullable public UUID getUUIDValue()
      Specified by:
      getUUIDValue in interface com.microsoft.kiota.serialization.ParseNode
    • getOffsetDateTimeValue

      @Nullable public OffsetDateTime getOffsetDateTimeValue()
      Specified by:
      getOffsetDateTimeValue in interface com.microsoft.kiota.serialization.ParseNode
    • getLocalDateValue

      @Nullable public LocalDate getLocalDateValue()
      Specified by:
      getLocalDateValue in interface com.microsoft.kiota.serialization.ParseNode
    • getLocalTimeValue

      @Nullable public LocalTime getLocalTimeValue()
      Specified by:
      getLocalTimeValue in interface com.microsoft.kiota.serialization.ParseNode
    • getPeriodAndDurationValue

      @Nullable public com.microsoft.kiota.PeriodAndDuration getPeriodAndDurationValue()
      Specified by:
      getPeriodAndDurationValue in interface com.microsoft.kiota.serialization.ParseNode
    • getCollectionOfPrimitiveValues

      @Nullable public <T> List<T> getCollectionOfPrimitiveValues(@Nonnull Class<T> targetClass)
      Specified by:
      getCollectionOfPrimitiveValues in interface com.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:
      getCollectionOfObjectValues in interface com.microsoft.kiota.serialization.ParseNode
    • getCollectionOfEnumValues

      @Nullable public <T extends Enum<T>> List<T> getCollectionOfEnumValues(@Nonnull com.microsoft.kiota.serialization.ValuedEnumParser<T> enumParser)
      Specified by:
      getCollectionOfEnumValues in interface com.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:
      getObjectValue in interface com.microsoft.kiota.serialization.ParseNode
    • getEnumValue

      @Nullable public <T extends Enum<T>> T getEnumValue(@Nonnull com.microsoft.kiota.serialization.ValuedEnumParser<T> enumParser)
      Specified by:
      getEnumValue in interface com.microsoft.kiota.serialization.ParseNode
    • getEnumSetValue

      @Nullable public <T extends Enum<T>> EnumSet<T> getEnumSetValue(@Nonnull com.microsoft.kiota.serialization.ValuedEnumParser<T> enumParser)
      Specified by:
      getEnumSetValue in interface com.microsoft.kiota.serialization.ParseNode
    • getOnBeforeAssignFieldValues

      @Nullable public Consumer<com.microsoft.kiota.serialization.Parsable> getOnBeforeAssignFieldValues()
      Specified by:
      getOnBeforeAssignFieldValues in interface com.microsoft.kiota.serialization.ParseNode
    • getOnAfterAssignFieldValues

      @Nullable public Consumer<com.microsoft.kiota.serialization.Parsable> getOnAfterAssignFieldValues()
      Specified by:
      getOnAfterAssignFieldValues in interface com.microsoft.kiota.serialization.ParseNode
    • setOnBeforeAssignFieldValues

      public void setOnBeforeAssignFieldValues(@Nullable Consumer<com.microsoft.kiota.serialization.Parsable> value)
      Specified by:
      setOnBeforeAssignFieldValues in interface com.microsoft.kiota.serialization.ParseNode
    • setOnAfterAssignFieldValues

      public void setOnAfterAssignFieldValues(@Nullable Consumer<com.microsoft.kiota.serialization.Parsable> value)
      Specified by:
      setOnAfterAssignFieldValues in interface com.microsoft.kiota.serialization.ParseNode
    • getByteArrayValue

      @Nullable public byte[] getByteArrayValue()
      Specified by:
      getByteArrayValue in interface com.microsoft.kiota.serialization.ParseNode