C# Class Monobjc.Tools.Generator.Parsers.Sgml.AttDef

An attribute definition in a DTD.
Mostra file Open project: Monobjc/monobjc-tools Class Usage Examples

Private Properties

Property Type Description

Public Methods

Method Description
AttDef ( string name ) : System

Initialises a new instance of the AttDef class.

SetEnumeratedType ( string enumValues, AttributeType type ) : void

Sets the attribute definition to have an enumerated value.

SetPresence ( string token ) : bool

Sets the attribute presence declaration.

SetType ( string type ) : void

Sets the type of the attribute definition.

Method Details

AttDef() public method

Initialises a new instance of the AttDef class.
public AttDef ( string name ) : System
name string The name of the attribute.
return System

SetEnumeratedType() public method

Sets the attribute definition to have an enumerated value.
If the type parameter is not either or .
public SetEnumeratedType ( string enumValues, AttributeType type ) : void
enumValues string The possible values in the enumeration.
type AttributeType The type to set the attribute to.
return void

SetPresence() public method

Sets the attribute presence declaration.
public SetPresence ( string token ) : bool
token string The string representation of the attribute presence, corresponding to one of the values in the enumeration.
return bool

SetType() public method

Sets the type of the attribute definition.
public SetType ( string type ) : void
type string The string representation of the attribute type, corresponding to the values in the enumeration.
return void