C# 클래스 Newtonsoft.Json.JsonValidatingReader

Represents a reader that provides JsonSchema validation.
상속: JsonReader, IJsonLineInfo
파일 보기 프로젝트 열기: JamesNK/Newtonsoft.Json 1 사용 예제들

Private Properties

프로퍼티 타입 설명
FloatingPointRemainder double
GetCurrentNodeSchemaType JsonSchemaType?
IJsonLineInfo bool
IsPropertyDefinied bool
IsZero bool
OnValidationEvent void
Pop SchemaScope
ProcessValue void
Push void
RaiseError void
TestType bool
ValidateArray bool
ValidateBoolean void
ValidateCurrentToken void
ValidateEndArray void
ValidateEndObject void
ValidateFloat void
ValidateInteger void
ValidateNotDisallowed void
ValidateNull void
ValidateObject bool
ValidatePropertyName void
ValidateString void
WriteToken void

공개 메소드들

메소드 설명
JsonValidatingReader ( JsonReader reader ) : System

Initializes a new instance of the JsonValidatingReader class that validates the content returned from the given JsonReader.

Read ( ) : bool

Reads the next JSON token from the stream.

ReadAsBoolean ( ) : bool?

Reads the next JSON token from the stream as a Nullable{T} of Boolean.

ReadAsBytes ( ) : byte[]

Reads the next JSON token from the stream as a Byte[].

ReadAsDateTime ( ) : DateTime?

Reads the next JSON token from the stream as a Nullable{T} of DateTime.

ReadAsDateTimeOffset ( ) : DateTimeOffset?

Reads the next JSON token from the stream as a Nullable{T} of DateTimeOffset.

ReadAsDecimal ( ) : decimal?

Reads the next JSON token from the stream as a Nullable{T} of Decimal.

ReadAsDouble ( ) : double?

Reads the next JSON token from the stream as a Nullable{T} of Double.

ReadAsInt32 ( ) : int?

Reads the next JSON token from the stream as a Nullable{T} of Int32.

ReadAsString ( ) : string

Reads the next JSON token from the stream as a String.

비공개 메소드들

메소드 설명
FloatingPointRemainder ( double dividend, double divisor ) : double
GetCurrentNodeSchemaType ( ) : JsonSchemaType?
IJsonLineInfo ( ) : bool
IsPropertyDefinied ( JsonSchemaModel schema, string propertyName ) : bool
IsZero ( double value ) : bool
OnValidationEvent ( JsonSchemaException exception ) : void
Pop ( ) : SchemaScope
ProcessValue ( ) : void
Push ( SchemaScope scope ) : void
RaiseError ( string message, JsonSchemaModel schema ) : void
TestType ( JsonSchemaModel currentSchema, JsonSchemaType currentType ) : bool
ValidateArray ( JsonSchemaModel schema ) : bool
ValidateBoolean ( JsonSchemaModel schema ) : void
ValidateCurrentToken ( ) : void
ValidateEndArray ( JsonSchemaModel schema ) : void
ValidateEndObject ( JsonSchemaModel schema ) : void
ValidateFloat ( JsonSchemaModel schema ) : void
ValidateInteger ( JsonSchemaModel schema ) : void
ValidateNotDisallowed ( JsonSchemaModel schema ) : void
ValidateNull ( JsonSchemaModel schema ) : void
ValidateObject ( JsonSchemaModel schema ) : bool
ValidatePropertyName ( JsonSchemaModel schema ) : void
ValidateString ( JsonSchemaModel schema ) : void
WriteToken ( IList schemas ) : void

메소드 상세

JsonValidatingReader() 공개 메소드

Initializes a new instance of the JsonValidatingReader class that validates the content returned from the given JsonReader.
public JsonValidatingReader ( JsonReader reader ) : System
reader JsonReader The to read from while validating.
리턴 System

Read() 공개 메소드

Reads the next JSON token from the stream.
public Read ( ) : bool
리턴 bool

ReadAsBoolean() 공개 메소드

Reads the next JSON token from the stream as a Nullable{T} of Boolean.
public ReadAsBoolean ( ) : bool?
리턴 bool?

ReadAsBytes() 공개 메소드

Reads the next JSON token from the stream as a Byte[].
public ReadAsBytes ( ) : byte[]
리턴 byte[]

ReadAsDateTime() 공개 메소드

Reads the next JSON token from the stream as a Nullable{T} of DateTime.
public ReadAsDateTime ( ) : DateTime?
리턴 DateTime?

ReadAsDateTimeOffset() 공개 메소드

Reads the next JSON token from the stream as a Nullable{T} of DateTimeOffset.
public ReadAsDateTimeOffset ( ) : DateTimeOffset?
리턴 DateTimeOffset?

ReadAsDecimal() 공개 메소드

Reads the next JSON token from the stream as a Nullable{T} of Decimal.
public ReadAsDecimal ( ) : decimal?
리턴 decimal?

ReadAsDouble() 공개 메소드

Reads the next JSON token from the stream as a Nullable{T} of Double.
public ReadAsDouble ( ) : double?
리턴 double?

ReadAsInt32() 공개 메소드

Reads the next JSON token from the stream as a Nullable{T} of Int32.
public ReadAsInt32 ( ) : int?
리턴 int?

ReadAsString() 공개 메소드

Reads the next JSON token from the stream as a String.
public ReadAsString ( ) : string
리턴 string