C# Class erminas.SmartAPI.CMS.Project.Pages.Elements.PageElement

Base class for elements of pages. All page element classes have to either get annotated with a attribute denoting their element type or have to be added through the method.
Inheritance: PartialRedDotProjectObject, IPageElement
Mostrar archivo Open project: erminas/smartapi Class Usage Examples

Protected Properties

Property Type Description
Type ElementType

Public Methods

Method Description
CreateElement ( IProject project, System.Guid elementGuid, ILanguageVariant languageVariant ) : IPageElement

Create an element out of its XML representation (uses the attribute "elttype") to determine the element type and create the appropriate object.

CreateElement ( IProject project, XmlElement xmlElement ) : IPageElement

Create an element out of its XML representation (uses the attribute "elttype") to determine the element type and create the appropriate object.

RegisterType ( ElementType typeValue, Type type ) : void

Protected Methods

Method Description
LoadWholeObject ( ) : void
LoadWholePageElement ( ) : void
PageElement ( IProject project, System.Guid guid, ILanguageVariant languageVariant ) : System
PageElement ( IProject project, XmlElement xmlElement ) : System
RetrieveWholeObject ( ) : XmlElement

Private Methods

Method Description
LoadXml ( ) : void
PageElement ( ) : System

Method Details

CreateElement() public static method

Create an element out of its XML representation (uses the attribute "elttype") to determine the element type and create the appropriate object.
if the "elttype" attribute of the XML node contains an unknown value
public static CreateElement ( IProject project, System.Guid elementGuid, ILanguageVariant languageVariant ) : IPageElement
project IProject Project containing the element
elementGuid System.Guid Guid of the element
languageVariant ILanguageVariant The language variant of the page element
return IPageElement

CreateElement() public static method

Create an element out of its XML representation (uses the attribute "elttype") to determine the element type and create the appropriate object.
if the "elttype" attribute of the XML node contains an unknown value
public static CreateElement ( IProject project, XmlElement xmlElement ) : IPageElement
project IProject Page that contains the element
xmlElement System.Xml.XmlElement XML representation of the element
return IPageElement

LoadWholeObject() protected final method

protected final LoadWholeObject ( ) : void
return void

LoadWholePageElement() protected abstract method

protected abstract LoadWholePageElement ( ) : void
return void

PageElement() protected method

protected PageElement ( IProject project, System.Guid guid, ILanguageVariant languageVariant ) : System
project IProject
guid System.Guid
languageVariant ILanguageVariant
return System

PageElement() protected method

protected PageElement ( IProject project, XmlElement xmlElement ) : System
project IProject
xmlElement System.Xml.XmlElement
return System

RegisterType() public static method

public static RegisterType ( ElementType typeValue, Type type ) : void
typeValue ElementType
type System.Type
return void

RetrieveWholeObject() protected method

protected RetrieveWholeObject ( ) : XmlElement
return System.Xml.XmlElement

Property Details

Type protected_oe property

protected ElementType Type
return ElementType