~ubuntu-branches/ubuntu/utopic/libisrt-java/utopic

« back to all changes in this revision

Viewing changes to src/de/intarsys/tools/event/RequestEventFacade.java

  • Committer: Package Import Robot
  • Author(s): Torsten Werner
  • Date: 2011-08-31 17:16:54 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: package-import@ubuntu.com-20110831171654-i306ydrg00gribvc
Tags: 4.8.20100629-1
* Team upload
* New upstream release
* Improve downloading / creating the orig tarball. Remove javadoc files.
* Switch to javahelper.
* Drop versioned package libisrt-4.7-java.
* Switch to debhelper level 7.
* Update Standards-Version: 3.9.1.
* Switch to source format 3.0.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Copyright (c) 2007, intarsys consulting GmbH
 
3
 *
 
4
 * Redistribution and use in source and binary forms, with or without
 
5
 * modification, are permitted provided that the following conditions are met:
 
6
 *
 
7
 * - Redistributions of source code must retain the above copyright notice,
 
8
 *   this list of conditions and the following disclaimer.
 
9
 *
 
10
 * - Redistributions in binary form must reproduce the above copyright notice,
 
11
 *   this list of conditions and the following disclaimer in the documentation
 
12
 *   and/or other materials provided with the distribution.
 
13
 *
 
14
 * - Neither the name of intarsys nor the names of its contributors may be used
 
15
 *   to endorse or promote products derived from this software without specific
 
16
 *   prior written permission.
 
17
 *
 
18
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
 
19
 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 
20
 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
 
21
 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
 
22
 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
 
23
 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
 
24
 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
 
25
 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
 
26
 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
 
27
 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
 
28
 * POSSIBILITY OF SUCH DAMAGE.
 
29
 */
 
30
package de.intarsys.tools.event;
 
31
 
 
32
 
 
33
/**
 
34
 * 
 
35
 */
 
36
public class RequestEventFacade extends AbstractEventFacade {
 
37
        /**
 
38
         * 
 
39
         */
 
40
        public RequestEventFacade(RequestEvent event) {
 
41
                super(event);
 
42
        }
 
43
 
 
44
        /*
 
45
         * (non-Javadoc)
 
46
         * 
 
47
         * @see de.intarsys.tools.event.IEvent#consume()
 
48
         */
 
49
        public void consume() {
 
50
                ((RequestEvent) object).consume();
 
51
        }
 
52
 
 
53
        public Object getArgs() {
 
54
                return ((RequestEvent) object).getArgs();
 
55
        }
 
56
 
 
57
        public EventType getEventType() {
 
58
                return ((RequestEvent) object).getEventType();
 
59
        }
 
60
 
 
61
        public String getName() {
 
62
                return ((RequestEvent) object).getName();
 
63
        }
 
64
 
 
65
        public boolean getRc() {
 
66
                return ((RequestEvent) object).getRc();
 
67
        }
 
68
 
 
69
        public Object getSource() {
 
70
                return createFacade(((RequestEvent) object).getSource());
 
71
        }
 
72
 
 
73
        public Object getTarget() {
 
74
                return createFacade(((RequestEvent) object).getTarget());
 
75
        }
 
76
 
 
77
        @Override
 
78
        public String getType() {
 
79
                return ((RequestEvent) object).getEventType().getName();
 
80
        }
 
81
 
 
82
        public Object getValue() {
 
83
                return createFacade(((RequestEvent) object).getValue());
 
84
        }
 
85
 
 
86
        @Override
 
87
        public boolean getVeto() {
 
88
                return ((RequestEvent) object).isVetoed();
 
89
        }
 
90
 
 
91
        public boolean isConsumed() {
 
92
                return ((RequestEvent) object).isConsumed();
 
93
        }
 
94
 
 
95
        /*
 
96
         * (non-Javadoc)
 
97
         * 
 
98
         * @see de.intarsys.tools.event.IEvent#isVetoed()
 
99
         */
 
100
        public boolean isVetoed() {
 
101
                return ((RequestEvent) object).isVetoed();
 
102
        }
 
103
 
 
104
        public void setRc(boolean value) {
 
105
                ((RequestEvent) object).setRc(value);
 
106
        }
 
107
 
 
108
        public void setTarget(Object target) {
 
109
                ((RequestEvent) object).setTarget(target);
 
110
        }
 
111
 
 
112
        public void setValue(Object value) {
 
113
                ((RequestEvent) object).setValue(value);
 
114
        }
 
115
 
 
116
        @Override
 
117
        public void setVeto(boolean value) {
 
118
                ((RequestEvent) object).setVeto(value);
 
119
        }
 
120
 
 
121
        /*
 
122
         * (non-Javadoc)
 
123
         * 
 
124
         * @see de.intarsys.tools.event.IEvent#veto()
 
125
         */
 
126
        public void veto() {
 
127
                ((RequestEvent) object).veto();
 
128
        }
 
129
}