C# Класс Habanero.BO.Loaders.XmlRuleLoader

Provides a super-class for loaders that read property rules from xml data
Наследование: XmlLoader
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
_name string

Открытые методы

Метод Описание
LoadPropertyRule ( XmlElement ruleElement ) : IPropRule

Loads a property rule from the given xml element

LoadRule ( string propTypeName, string ruleXml ) : IPropRule

Loads a property rule from the given xml string

LoadRuleIntoProperty ( string propertyRuleElement, IPropDef def ) : void

Loads the property rule from the given xml string and applies this to the specified property definition

XmlRuleLoader ( Habanero.BO.Loaders.DtdLoader dtdLoader, IDefClassFactory defClassFactory ) : System

Constructor to initialise a new loader with a dtd path

Защищенные методы

Метод Описание
Create ( ) : object

Creates the object using the data that has been read in using LoadFromReader(). This method needs to be implemented by the sub-class.

CreatePropRule ( ) : IPropRule

Creates the Prop Rule for.

CreatePropRule ( string propTypeName, string name, string message ) : IPropRule

Creates a IPropRule based on the type name.

LoadFromReader ( ) : void

Loads the property rule data from the reader

Описание методов

Create() защищенный Метод

Creates the object using the data that has been read in using LoadFromReader(). This method needs to be implemented by the sub-class.
protected Create ( ) : object
Результат object

CreatePropRule() защищенный Метод

Creates the Prop Rule for.
protected CreatePropRule ( ) : IPropRule
Результат IPropRule

CreatePropRule() защищенный Метод

Creates a IPropRule based on the type name.
protected CreatePropRule ( string propTypeName, string name, string message ) : IPropRule
propTypeName string The type name to create the rule for
name string The rule name
message string The rule message
Результат IPropRule

LoadFromReader() защищенный закрытый Метод

Loads the property rule data from the reader
protected final LoadFromReader ( ) : void
Результат void

LoadPropertyRule() публичный Метод

Loads a property rule from the given xml element
public LoadPropertyRule ( XmlElement ruleElement ) : IPropRule
ruleElement System.Xml.XmlElement The xml element containing the /// rule
Результат IPropRule

LoadRule() публичный Метод

Loads a property rule from the given xml string
public LoadRule ( string propTypeName, string ruleXml ) : IPropRule
propTypeName string
ruleXml string The xml string containing the rule
Результат IPropRule

LoadRuleIntoProperty() публичный Метод

Loads the property rule from the given xml string and applies this to the specified property definition
public LoadRuleIntoProperty ( string propertyRuleElement, IPropDef def ) : void
propertyRuleElement string The xml string containing the /// property rule
def IPropDef The property definition
Результат void

XmlRuleLoader() публичный Метод

Constructor to initialise a new loader with a dtd path
public XmlRuleLoader ( Habanero.BO.Loaders.DtdLoader dtdLoader, IDefClassFactory defClassFactory ) : System
dtdLoader Habanero.BO.Loaders.DtdLoader The dtd loader
defClassFactory IDefClassFactory The factory for the definition classes
Результат System

Описание свойств

_name защищенное свойство

The name of the rule
protected string _name
Результат string