Class Schema
Abstract class representing a TSSL schema. Actual TSSL schemas are compiled into concrete subclasses of this class.
Inherited Members
Namespace: TagSoup
Assembly: Lucene.Net.Benchmark.dll
Syntax
public abstract class Schema
  Fields
| Improve this Doc View SourceF_CDATA
Declaration
public const int F_CDATA = 2
  Field Value
| Type | Description | 
|---|---|
| System.Int32 | 
F_NOFORCE
Declaration
public const int F_NOFORCE = 4
  Field Value
| Type | Description | 
|---|---|
| System.Int32 | 
F_RESTART
Declaration
public const int F_RESTART = 1
  Field Value
| Type | Description | 
|---|---|
| System.Int32 | 
M_ANY
Declaration
public const int M_ANY = -1
  Field Value
| Type | Description | 
|---|---|
| System.Int32 | 
M_EMPTY
Declaration
public const int M_EMPTY = 0
  Field Value
| Type | Description | 
|---|---|
| System.Int32 | 
M_PCDATA
Declaration
public const int M_PCDATA = 1073741824
  Field Value
| Type | Description | 
|---|---|
| System.Int32 | 
M_ROOT
Declaration
public const int M_ROOT = -2147483648
  Field Value
| Type | Description | 
|---|---|
| System.Int32 | 
Properties
| Improve this Doc View SourcePrefix
Gets ot sets the prefix of this schema.
Declaration
public virtual string Prefix { get; set; }
  Property Value
| Type | Description | 
|---|---|
| System.String | 
RootElementType
Gets or sets the root element of this schema
Declaration
public virtual ElementType RootElementType { get; }
  Property Value
| Type | Description | 
|---|---|
| ElementType | 
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 SourceAttribute(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  | 
      
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  | 
      
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  | 
      
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  | 
      
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  | 
      
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  |