/// <summary> /// Constructs a new <see cref="SchemaNode"/> with additional options. /// </summary> /// <param name="name">The name of the corresponding <see cref="TagNode"/>.</param> /// <param name="options">One or more option flags modifying the processing of this node.</param> protected SchemaNode(string name, SchemaOptions options) { _name = name; _options = options; }
/// <summary> /// Constructs a new <see cref="SchemaNodeString"/> with additional options. /// </summary> /// <param name="name">The name of the corresponding <see cref="TagNodeString"/>.</param> /// <param name="value">The value that the corresponding <see cref="TagNodeString"/> must be set to.</param> /// <param name="options">One or more option flags modifying the processing of this node.</param> public SchemaNodeString (string name, string value, SchemaOptions options) : base(name, options) { _value = value; }
/// <summary> /// Constructs a new <see cref="SchemaNodeString"/> with additional options. /// </summary> /// <param name="name">The name of the corresponding <see cref="TagNodeString"/>.</param> /// <param name="length">The maximum length of strings in the corresponding <see cref="TagNodeString"/>.</param> /// <param name="options">One or more option flags modifying the processing of this node.</param> public SchemaNodeString (string name, int length, SchemaOptions options) : base(name, options) { _length = length; }
/// <summary> /// Constructs a new <see cref="SchemaNodeString"/> with additional options. /// </summary> /// <param name="name">The name of the corresponding <see cref="TagNodeString"/>.</param> /// <param name="options">One or more option flags modifying the processing of this node.</param> public SchemaNodeString (string name, SchemaOptions options) : base(name, options) { }
/// <summary> /// Constructs a new <see cref="SchemaNodeArray"/> with additional options. /// </summary> /// <param name="name">The name of the corresponding <see cref="TagNodeByteArray"/>.</param> /// <param name="options">One or more option flags modifying the processing of this node.</param> public SchemaNodeArray (string name, SchemaOptions options) : base(name, options) { _length = 0; }
/// <summary> /// Constructs a new <see cref="SchemaNodeScaler"/> with additional options. /// </summary> /// <param name="name">The name of the corresponding <see cref="TagNode"/>.</param> /// <param name="type">The type of the corresponding <see cref="TagNode"/>, restricted to scaler types.</param> /// <param name="options">One or more option flags modifying the processing of this node.</param> public SchemaNodeScaler(string name, TagType type, SchemaOptions options) : base(name, options) { _type = type; }
/// <summary> /// Constructs a new <see cref="SchemaNodeList"/> with additional options. /// </summary> /// <param name="name">The name of the corresponding <see cref="TagNodeList"/>.</param> /// <param name="type">The type of items contained in the corresponding <see cref="TagNodeList"/>.</param> /// <param name="length">The number of items contained in the corresponding <see cref="TagNodeList"/>.</param> /// <param name="options">One or more option flags modifying the processing of this node.</param> public SchemaNodeList (string name, TagType type, int length, SchemaOptions options) : base(name, options) { _type = type; _length = length; }
/// <summary> /// Constructs a new <see cref="SchemaNodeList"/> with additional options. /// </summary> /// <param name="name">The name of the corresponding <see cref="TagNodeList"/>.</param> /// <param name="type">The type of items contained in the corresponding <see cref="TagNodeList"/>.</param> /// <param name="subschema">A <see cref="SchemaNode"/> representing a schema to verify against items contained in the corresponding <see cref="TagNodeList"/>.</param> /// <param name="options">One or more option flags modifying the processing of this node.</param> public SchemaNodeList (string name, TagType type, SchemaNode subschema, SchemaOptions options) : base(name, options) { _type = type; _subschema = subschema; }