1 // Copyright 2004-2008 Castle Project - http://www.castleproject.org/
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
7 // http://www.apache.org/licenses/LICENSE-2.0
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
15 namespace Castle
.MonoRail
.Framework
.Descriptors
18 using System
.Collections
.Generic
;
21 /// Holds the meta information for an action
24 public class ActionMetaDescriptor
: BaseMetaDescriptor
26 private SkipRescueAttribute skipRescue
;
27 private AccessibleThroughAttribute accessibleThrough
;
28 private IList
<SkipFilterAttribute
> skipFilters
= new List
<SkipFilterAttribute
>();
29 private TransformFilterDescriptor
[] transformFilters
= new TransformFilterDescriptor
[0];
30 private ReturnBinderDescriptor returnDescriptor
;
33 /// Gets or sets the skip rescue associated with this action.
35 /// <value>The skip rescue.</value>
36 public SkipRescueAttribute SkipRescue
38 get { return skipRescue; }
39 set { skipRescue = value; }
43 /// Gets or sets the accessible through definition associated with this action.
45 /// <value>The accessible through.</value>
46 public AccessibleThroughAttribute AccessibleThrough
48 get { return accessibleThrough; }
49 set { accessibleThrough = value; }
53 /// Gets the skip filters associated with this action.
55 /// <value>The skip filters.</value>
56 public IList
<SkipFilterAttribute
> SkipFilters
58 get { return skipFilters; }
62 /// Gets or sets the transform filters associated with this action.
64 /// <value>The transform filters.</value>
65 public TransformFilterDescriptor
[] TransformFilters
67 get { return transformFilters; }
68 set { transformFilters = value; }
72 /// Gets or sets the return descriptor.
74 /// <value>The return descriptor.</value>
75 public ReturnBinderDescriptor ReturnDescriptor
77 get { return returnDescriptor; }
78 set { returnDescriptor = value; }