Class Schema
Abstract class representing a TSSL schema. Actual TSSL schemas are compiled into concrete subclasses of this class.
Namespace: TagSoup
Assembly: Lucene.Net.Benchmark.dll
Syntax
public abstract class Schema : object
Fields
| Improve this Doc View SourceF_CDATA
Declaration
public const int F_CDATA = null
Field Value
Type | Description |
---|---|
System. |
F_NOFORCE
Declaration
public const int F_NOFORCE = null
Field Value
Type | Description |
---|---|
System. |
F_RESTART
Declaration
public const int F_RESTART = null
Field Value
Type | Description |
---|---|
System. |
M_ANY
Declaration
public const int M_ANY = null
Field Value
Type | Description |
---|---|
System. |
M_EMPTY
Declaration
public const int M_EMPTY = null
Field Value
Type | Description |
---|---|
System. |
M_PCDATA
Declaration
public const int M_PCDATA = null
Field Value
Type | Description |
---|---|
System. |
M_ROOT
Declaration
public const int M_ROOT = null
Field Value
Type | Description |
---|---|
System. |
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. |
RootElementType
Gets or sets the root element of this schema
Declaration
public virtual ElementType RootElementType { get; }
Property Value
Type | Description |
---|---|
Element |
Uri
Gets or sets the URI (namespace name) of this schema.
Declaration
public virtual string Uri { get; set; }
Property Value
Type | Description |
---|---|
System. |
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. |
elemName | Name (Qname) of the element type |
System. |
attrName | Name (Qname) of the attribute |
System. |
type | Type of the attribute |
System. |
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. |
name | Name (Qname) of the element |
System. |
model | Models of the element's content as a vector of bits |
System. |
memberOf | Models the element is a member of as a vector of bits |
System. |
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. |
name | Name of the entity |
System. |
value | Value of the entity |
GetElementType(String)
Get an Element
Declaration
public virtual ElementType GetElementType(string name)
Parameters
Type | Name | Description |
---|---|---|
System. |
name | Name (Qname) of the element type |
Returns
Type | Description |
---|---|
Element |
The corresponding Element |
GetEntity(String)
Get an entity value by name.
Declaration
public virtual int GetEntity(string name)
Parameters
Type | Name | Description |
---|---|---|
System. |
name | Name of the entity |
Returns
Type | Description |
---|---|
System. |
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. |
name | Name of the child element |
System. |
parentName | Name of the parent element |