01: package org.drools.jsr94.rules;
02:
03: /*
04: * Copyright 2005 JBoss Inc
05: *
06: * Licensed under the Apache License, Version 2.0 (the "License");
07: * you may not use this file except in compliance with the License.
08: * You may obtain a copy of the License at
09: *
10: * http://www.apache.org/licenses/LICENSE-2.0
11: *
12: * Unless required by applicable law or agreed to in writing, software
13: * distributed under the License is distributed on an "AS IS" BASIS,
14: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15: * See the License for the specific language governing permissions and
16: * limitations under the License.
17: */
18:
19: import javax.rules.RuleExecutionSetMetadata;
20:
21: /**
22: * The Drools implementation of the <code>RuleExecutionSetMetadata</code>
23: * interface which exposes some simple properties of the
24: * <code>RuleExecutionSet</code> to the runtime user.
25: *
26: * @see RuleExecutionSetMetadata
27: */
28: public class RuleExecutionSetMetadataImpl implements
29: RuleExecutionSetMetadata {
30: /**
31: *
32: */
33: private static final long serialVersionUID = 400L;
34:
35: /** The URI for this <code>RuleExecutionSet</code>. */
36: private final String uri;
37:
38: /** The name of this RuleExecutionSet. */
39: private final String name;
40:
41: /** The description of this <code>RuleExecutionSet</code>. */
42: private final String description;
43:
44: /**
45: * Constructs an instance of <code>RuleExecutionSetMetadata</code>.
46: *
47: * @param uri The URI for this <code>RuleExecutionSet</code>.
48: * @param name The name of this <code>RuleExecutionSet</code>.
49: * @param description The description of this <code>RuleExecutionSet</code>.
50: */
51: public RuleExecutionSetMetadataImpl(final String uri,
52: final String name, final String description) {
53: this .uri = uri;
54: this .name = name;
55: this .description = description;
56: }
57:
58: /**
59: * Get the URI for this <code>RuleExecutionSet</code>.
60: *
61: * @return The URI for this <code>RuleExecutionSet</code>.
62: */
63: public String getUri() {
64: return this .uri;
65: }
66:
67: /**
68: * Get the name of this <code>RuleExecutionSet</code>.
69: *
70: * @return The name of this <code>RuleExecutionSet</code>.
71: */
72: public String getName() {
73: return this .name;
74: }
75:
76: /**
77: * Get a short description about this <code>RuleExecutionSet</code>.
78: *
79: * @return The description of this <code>RuleExecutionSet</code>
80: * or <code>null</code>.
81: */
82: public String getDescription() {
83: return this.description;
84: }
85: }
|