Show / Hide Table of Contents

    Class Schema

    Abstract class representing a TSSL schema. Actual TSSL schemas are compiled into concrete subclasses of this class.

    Inheritance
    System.Object
    Schema
    HTMLSchema
    Namespace: TagSoup
    Assembly: Lucene.Net.Benchmark.dll
    Syntax
    public abstract class Schema : object

    Fields

    | Improve this Doc View Source

    F_CDATA

    Declaration
    public const int F_CDATA = null
    Field Value
    Type Description
    System.Int32
    | Improve this Doc View Source

    F_NOFORCE

    Declaration
    public const int F_NOFORCE = null
    Field Value
    Type Description
    System.Int32
    | Improve this Doc View Source

    F_RESTART

    Declaration
    public const int F_RESTART = null
    Field Value
    Type Description
    System.Int32
    | Improve this Doc View Source

    M_ANY

    Declaration
    public const int M_ANY = null
    Field Value
    Type Description
    System.Int32
    | Improve this Doc View Source

    M_EMPTY

    Declaration
    public const int M_EMPTY = null
    Field Value
    Type Description
    System.Int32
    | Improve this Doc View Source

    M_PCDATA

    Declaration
    public const int M_PCDATA = null
    Field Value
    Type Description
    System.Int32
    | Improve this Doc View Source

    M_ROOT

    Declaration
    public const int M_ROOT = null
    Field Value
    Type Description
    System.Int32

    Properties

    | Improve this Doc View Source

    Prefix

    Gets ot sets the prefix of this schema.

    Declaration
    public virtual string Prefix { get; set; }
    Property Value
    Type Description
    System.String
    | Improve this Doc View Source

    RootElementType

    Gets or sets the root element of this schema

    Declaration
    public virtual ElementType RootElementType { get; }
    Property Value
    Type Description
    ElementType
    | Improve this Doc View Source

    Uri

    Gets or sets the URI (namespace name) of this schema.

    Declaration
    public virtual string Uri { get; set; }
    Property Value
    Type Description
    System.String

    Methods

    | Improve this Doc View Source

    Attribute(String, String, String, String)

    Add or replace a default attribute for an element type in this schema.

    Declaration
    public virtual void Attribute(string elemName, string attrName, string type, string value)
    Parameters
    Type Name Description
    System.String elemName

    Name (Qname) of the element type

    System.String attrName

    Name (Qname) of the attribute

    System.String type

    Type of the attribute

    System.String value

    Default value of the attribute; null if no default

    | Improve this Doc View Source

    ElementType(String, Int32, Int32, Int32)

    Add or replace an element type for this schema.

    Declaration
    public virtual void ElementType(string name, int model, int memberOf, int flags)
    Parameters
    Type Name Description
    System.String name

    Name (Qname) of the element

    System.Int32 model

    Models of the element's content as a vector of bits

    System.Int32 memberOf

    Models the element is a member of as a vector of bits

    System.Int32 flags

    Flags for the element

    | Improve this Doc View Source

    Entity(String, Int32)

    Add to or replace a character entity in this schema.

    Declaration
    public virtual void Entity(string name, int value)
    Parameters
    Type Name Description
    System.String name

    Name of the entity

    System.Int32 value

    Value of the entity

    | Improve this Doc View Source

    GetElementType(String)

    Get an ElementType by name.

    Declaration
    public virtual ElementType GetElementType(string name)
    Parameters
    Type Name Description
    System.String name

    Name (Qname) of the element type

    Returns
    Type Description
    ElementType

    The corresponding ElementType

    | Improve this Doc View Source

    GetEntity(String)

    Get an entity value by name.

    Declaration
    public virtual int GetEntity(string name)
    Parameters
    Type Name Description
    System.String name

    Name of the entity

    Returns
    Type Description
    System.Int32

    The corresponding character, or 0 if none

    | Improve this Doc View Source

    Parent(String, String)

    Specify natural parent of an element in this schema.

    Declaration
    public virtual void Parent(string name, string parentName)
    Parameters
    Type Name Description
    System.String name

    Name of the child element

    System.String parentName

    Name of the parent element

    • Improve this Doc
    • View Source
    Back to top Copyright © 2020 Licensed to the Apache Software Foundation (ASF)