confluent-kafka-dotnet
Show / Hide Table of Contents

Class RuleContext

A rule context.

Inheritance
object
RuleContext
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Confluent.SchemaRegistry
Assembly: Confluent.SchemaRegistry.dll
Syntax
public class RuleContext

Constructors

RuleContext(Schema, Schema, string, string, Headers, bool, RuleMode, Rule, int, IList<Rule>, FieldTransformer)

Declaration
public RuleContext(Schema source, Schema target, string subject, string topic, Headers headers, bool isKey, RuleMode ruleMode, Rule rule, int index, IList<Rule> rules, FieldTransformer fieldTransformer)
Parameters
TypeNameDescription
Schemasource
Schematarget
stringsubject
stringtopic
Headersheaders
boolisKey
RuleModeruleMode
Rulerule
intindex
IList<Rule>rules
FieldTransformerfieldTransformer

Properties

CustomData

Declaration
public IDictionary<object, object> CustomData { get; }
Property Value
TypeDescription
IDictionary<object, object>

FieldTransformer

Declaration
public FieldTransformer FieldTransformer { get; set; }
Property Value
TypeDescription
FieldTransformer

Headers

Declaration
public Headers Headers { get; set; }
Property Value
TypeDescription
Headers

Index

Declaration
public int Index { get; set; }
Property Value
TypeDescription
int

IsKey

Declaration
public bool IsKey { get; set; }
Property Value
TypeDescription
bool

Rule

Declaration
public Rule Rule { get; set; }
Property Value
TypeDescription
Rule

RuleMode

Declaration
public RuleMode RuleMode { get; set; }
Property Value
TypeDescription
RuleMode

Rules

Declaration
public IList<Rule> Rules { get; set; }
Property Value
TypeDescription
IList<Rule>

Source

Declaration
public Schema Source { get; set; }
Property Value
TypeDescription
Schema

Subject

Declaration
public string Subject { get; set; }
Property Value
TypeDescription
string

Target

Declaration
public Schema Target { get; set; }
Property Value
TypeDescription
Schema

Topic

Declaration
public string Topic { get; set; }
Property Value
TypeDescription
string

Methods

CurrentField()

Declaration
public RuleContext.FieldContext CurrentField()
Returns
TypeDescription
RuleContext.FieldContext

EnterField(object, string, string, Type, ISet<string>)

Declaration
public RuleContext.FieldContext EnterField(object containingMessage, string fullName, string name, RuleContext.Type type, ISet<string> tags)
Parameters
TypeNameDescription
objectcontainingMessage
stringfullName
stringname
RuleContext.Typetype
ISet<string>tags
Returns
TypeDescription
RuleContext.FieldContext

GetParameter(string)

Declaration
public string GetParameter(string key)
Parameters
TypeNameDescription
stringkey
Returns
TypeDescription
string

GetTags(string)

Declaration
public ISet<string> GetTags(string fullName)
Parameters
TypeNameDescription
stringfullName
Returns
TypeDescription
ISet<string>
In this article