SmartAPI
Open Source .NET RQL library for RedDot CMS / OpenText WSM Management Server
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Properties Pages
ContentClasses/Elements/IListEntry.cs
Go to the documentation of this file.
1 ï»¿// SmartAPI - .Net programmatic access to RedDot servers
2 //
3 // Copyright (C) 2013 erminas GbR
4 //
5 // This program is free software: you can redistribute it and/or modify it
6 // under the terms of the GNU General Public License as published by the Free Software Foundation,
7 // either version 3 of the License, or (at your option) any later version.
8 // This program is distributed in the hope that it will be useful,
9 // but WITHOUT ANY WARRANTY; without even the implied warranty of
10 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
11 // See the GNU General Public License for more details.
12 //
13 // You should have received a copy of the GNU General Public License along with this program.
14 // If not, see <http://www.gnu.org/licenses/>.
15 
16 using System.Xml;
17 using erminas.SmartAPI.CMS.Converter;
18 using erminas.SmartAPI.CMS.Project.Folder;
19 
20 namespace erminas.SmartAPI.CMS.Project.ContentClasses.Elements
21 {
22  public interface IListEntry : IContentClassElement
23  {
24  string EndTagForAutomaticProcessing { get; set; }
25 
26  IFolder Folder { get; set; }
27 
28  bool IsNotUsedInForm { get; set; }
29 
30  bool IsNotVisibleOnPublishedPage { get; set; }
31 
32  bool IsUsingEntireTextIfNoMatchingTagsCanBeFound { get; set; }
33 
34  string StartTagForAutomaticProcessing { get; set; }
35  }
36 
37  internal class ListEntry : ContentClassElement, IListEntry
38  {
39  internal ListEntry(IContentClass contentClass, XmlElement xmlElement) : base(contentClass, xmlElement)
40  {
41  }
42 
43  public override ContentClassCategory Category
44  {
45  get { return ContentClassCategory.Content; }
46  }
47 
48  [RedDot("eltendmark")]
49  public string EndTagForAutomaticProcessing
50  {
51  get { return GetAttributeValue<string>(); }
52  set { SetAttributeValue(value); }
53  }
54 
55  [RedDot("eltfolderguid", ConverterType = typeof (FolderConverter))]
56  public IFolder Folder
57  {
58  get { return GetAttributeValue<IFolder>(); }
59  set { SetAttributeValue(value); }
60  }
61 
62  [RedDot("elthideinform")]
63  public bool IsNotUsedInForm
64  {
65  get { return GetAttributeValue<bool>(); }
66  set { SetAttributeValue(value); }
67  }
68 
69  [RedDot("eltinvisibleinpage")]
70  public bool IsNotVisibleOnPublishedPage
71  {
72  get { return GetAttributeValue<bool>(); }
73  set { SetAttributeValue(value); }
74  }
75 
76  [RedDot("eltwholetext")]
77  public bool IsUsingEntireTextIfNoMatchingTagsCanBeFound
78  {
79  get { return GetAttributeValue<bool>(); }
80  set { SetAttributeValue(value); }
81  }
82 
83  [RedDot("eltbeginmark")]
84  public string StartTagForAutomaticProcessing
85  {
86  get { return GetAttributeValue<string>(); }
87  set { SetAttributeValue(value); }
88  }
89  }
90 }