19 using System.Collections.Generic;
20 using Newtonsoft.Json.Linq;
43 JToken jitem = jtok[
"items"];
53 private ArraySchema(
Schema items, PropertyMap props) : base(
Type.Array, props)
55 if (
null == items)
throw new ArgumentNullException(
"items");
67 writer.WritePropertyName(
"items");
78 if (writerSchema.
Tag !=
Tag)
return false;
89 public override bool Equals(
object obj)
91 if (
this == obj)
return true;
97 return areEqual(that.Props,
this.Props);
static int getHashCode(object obj)
Hash code helper function
override int GetHashCode()
Hash code function
override bool Equals(object obj)
Function to compare equality of two array schemas
Base class for all unnamed schemas
Base class for all schema types
virtual bool CanRead(Schema writerSchema)
Returns true if and only if data written using writerSchema can be read using the current schema acco...
Type
Enum for schema types
virtual internal void WriteJson(JsonTextWriter writer, SchemaNames names, string encspace)
Writes schema object in JSON format
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements.
override int GetHashCode()
Hashcode function
Class for array type schemas
A class that contains a list of named schemas.
internal override void WriteJsonFields(Newtonsoft.Json.JsonTextWriter writer, SchemaNames names, string encspace)
Writes the array schema in JSON format
Schema(Type type, PropertyMap props)
Constructor for schema class
static bool areEqual(object o1, object o2)
Compares two objects, null is equal to null
Schema ItemSchema
Schema for the array 'type' attribute
Type Tag
Schema type property
override bool CanRead(Schema writerSchema)
Checks if this schema can read data written by the given schema.