C# Class Habanero.BO.Loaders.XmlRuleLoader

Provides a super-class for loaders that read property rules from xml data
Inheritance: XmlLoader
ファイルを表示 Open project: Chillisoft/habanero Class Usage Examples

Protected Properties

Property Type Description
_name string

Public Methods

Method Description
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

Protected Methods

Method Description
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

Method Details

Create() protected method

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
return object

CreatePropRule() protected method

Creates the Prop Rule for.
protected CreatePropRule ( ) : IPropRule
return IPropRule

CreatePropRule() protected method

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
return IPropRule

LoadFromReader() protected final method

Loads the property rule data from the reader
protected final LoadFromReader ( ) : void
return void

LoadPropertyRule() public method

Loads a property rule from the given xml element
public LoadPropertyRule ( XmlElement ruleElement ) : IPropRule
ruleElement System.Xml.XmlElement The xml element containing the /// rule
return IPropRule

LoadRule() public method

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
return IPropRule

LoadRuleIntoProperty() public method

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
return void

XmlRuleLoader() public method

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
return System

Property Details

_name protected_oe property

The name of the rule
protected string _name
return string