Class SchemaVocabulary
Represents a draft-08 schema vocabulary.
Inheritance
System.Object
SchemaVocabulary
Implements
System.IEquatable<SchemaVocabulary>
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Manatee.Json.Schema
Assembly: Manatee.Json.dll
Syntax
public class SchemaVocabulary : IEquatable<SchemaVocabulary>
Remarks
Currently a vocabulary is merely a link between the vocabulary ID and the meta-schema ID. In the future, as vocabularies are better defined, there may be a data format for them. As the feature develops in JSON Schema, it will be developed within this library.
Constructors
| Improve this Doc View SourceSchemaVocabulary(String, String)
Creates a new instance of the SchemaVocabulary class.
Declaration
public SchemaVocabulary(string id, string metaSchemaId)
Parameters
Type | Name | Description |
---|---|---|
System.String | id | |
System.String | metaSchemaId |
Properties
| Improve this Doc View SourceId
Gets the vocabulary ID.
Declaration
public string Id { get; }
Property Value
Type | Description |
---|---|
System.String |
MetaSchemaId
Gets the ID of the meta-schema associated with the vocabulary.
Declaration
public string MetaSchemaId { get; }
Property Value
Type | Description |
---|---|
System.String |
Methods
| Improve this Doc View SourceEquals(Nullable<SchemaVocabulary>)
Declaration
public bool Equals(SchemaVocabulary? other)
Parameters
Type | Name | Description |
---|---|---|
System.Nullable<SchemaVocabulary> | other |
Returns
Type | Description |
---|---|
System.Boolean |
Equals(Nullable<Object>)
Declaration
public override bool Equals(object? obj)
Parameters
Type | Name | Description |
---|---|---|
System.Nullable<System.Object> | obj |
Returns
Type | Description |
---|---|
System.Boolean |
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 |
Overrides
System.Object.GetHashCode()
Implements
System.IEquatable<T>