C# 클래스 Habanero.BO.Loaders.XmlRuleLoader

Provides a super-class for loaders that read property rules from xml data
상속: XmlLoader
파일 보기 프로젝트 열기: Chillisoft/habanero 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
_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