01: package org.osbl.authorization.model;
02:
03: public class Pattern {
04: PatternType type;
05: String action;
06: String pattern;
07:
08: public Pattern() {
09: }
10:
11: public Pattern(PatternType type, String action, String pattern) {
12: this .type = type;
13: this .action = action;
14: this .pattern = pattern;
15: }
16:
17: public PatternType getType() {
18: return type;
19: }
20:
21: public void setType(PatternType type) {
22: this .type = type;
23: }
24:
25: public String getAction() {
26: return action;
27: }
28:
29: public void setAction(String action) {
30: this .action = action;
31: }
32:
33: public String getPattern() {
34: return pattern;
35: }
36:
37: public void setPattern(String pattern) {
38: this .pattern = pattern;
39: }
40:
41: public String toString() {
42: return pattern + '[' + action + ']';
43: }
44: }
|