source: xmlrpcnet/trunk/fuentes/src/XmlRpcServiceAttribute.cs @ 379

Last change on this file since 379 was 379, checked in by hectorgh, 5 years ago

adding project files

File size: 3.0 KB
Line 
1/*
2XML-RPC.NET library
3Copyright (c) 2001-2006, Charles Cook <charlescook@cookcomputing.com>
4
5Permission is hereby granted, free of charge, to any person
6obtaining a copy of this software and associated documentation
7files (the "Software"), to deal in the Software without restriction,
8including without limitation the rights to use, copy, modify, merge,
9publish, distribute, sublicense, and/or sell copies of the Software,
10and to permit persons to whom the Software is furnished to do so,
11subject to the following conditions:
12
13The above copyright notice and this permission notice shall be
14included in all copies or substantial portions of the Software.
15
16THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
18OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
20HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
21WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
23DEALINGS IN THE SOFTWARE.
24*/
25
26namespace CookComputing.XmlRpc
27{
28  using System;
29
30  [AttributeUsage(AttributeTargets.Class | AttributeTargets.Interface)]
31  public class XmlRpcServiceAttribute : Attribute
32  {
33    public XmlRpcServiceAttribute()
34    {
35    }
36
37    public bool AutoDocumentation
38    {   
39        get { return autoDocumentation; }
40        set { autoDocumentation = value; }
41    }
42
43    public bool AutoDocVersion
44    {   
45      get { return autoDocVersion; }
46      set { autoDocVersion = value; }
47    }
48
49    public string Description
50    {
51      get { return description; }
52      set { description = value; }
53    }
54
55    public int Indentation
56    {
57      get { return indentation; }
58      set { indentation = value; }
59    }
60
61    public bool Introspection
62    {
63      get { return introspection; }
64      set { introspection = value; }
65    }
66
67    public string Name
68    {
69      get { return name; }
70      set { name = value; }
71    }
72
73    public bool UseIndentation
74    {
75      get { return useIndentation; }
76      set { useIndentation = value; }
77    }
78
79    public bool UseIntTag
80    {
81      get { return useIntTag; }
82      set { useIntTag = value; }
83    }
84
85    public bool UseStringTag
86    {
87      get { return useStringTag; }
88      set { useStringTag = value; }
89    }
90
91    public string XmlEncoding
92    {
93      get { return xmlEncoding; }
94      set { xmlEncoding = value; }
95    }
96
97    public override string ToString()
98    {
99      string value = "Description : " + description;
100      return value;
101    }
102 
103    private string description = "";
104    private string xmlEncoding = null;
105    private int indentation = 2;
106    private bool introspection = false;
107    private bool autoDocumentation = true;
108    private bool autoDocVersion = true;
109    private string name = "";
110    private bool useStringTag = true;
111    private bool useIndentation = true;
112    private bool useIntTag = false;
113  }
114}
Note: See TracBrowser for help on using the repository browser.