Class UntypedNode

java.lang.Object
com.microsoft.kiota.serialization.UntypedNode
All Implemented Interfaces:
Parsable
Direct Known Subclasses:
UntypedArray, UntypedBoolean, UntypedDecimal, UntypedDouble, UntypedFloat, UntypedInteger, UntypedLong, UntypedNull, UntypedObject, UntypedString

public class UntypedNode extends Object implements Parsable
Base class for untyped node.
  • Constructor Details

    • UntypedNode

      public UntypedNode()
  • Method Details

    • getFieldDeserializers

      @Nonnull public Map<String,Consumer<ParseNode>> getFieldDeserializers()
      The deserialization information for the current model.
      Specified by:
      getFieldDeserializers in interface Parsable
      Returns:
      The map of serializer methods for this object.
    • serialize

      public void serialize(@Nonnull SerializationWriter writer)
      Serializes the current object
      Specified by:
      serialize in interface Parsable
      Parameters:
      writer - The writer to write to.
    • getValue

      @Nullable public Object getValue()
      Gets the value assigned to untyped node.
      Returns:
      The value assigned to untyped node.
    • createFromDiscriminatorValue

      @Nonnull public static UntypedNode createFromDiscriminatorValue(@Nonnull ParseNode parseNode)
      Creates a new instance of the appropriate class based on discriminator value.
      Parameters:
      parseNode - The parse node to crate from
      Returns:
      A new UntypedNode instance.