01: /**
02: * Licensed to the Apache Software Foundation (ASF) under one
03: * or more contributor license agreements. See the NOTICE file
04: * distributed with this work for additional information
05: * regarding copyright ownership. The ASF licenses this file
06: * to you under the Apache License, Version 2.0 (the
07: * "License"); you may not use this file except in compliance
08: * with the License. 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,
13: * software distributed under the License is distributed on an
14: * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15: * KIND, either express or implied. See the License for the
16: * specific language governing permissions and limitations
17: * under the License.
18: */package org.apache.cxf.service.model;
19:
20: import java.util.Collection;
21: import java.util.List;
22:
23: import javax.xml.namespace.QName;
24:
25: public class UnwrappedOperationInfo extends OperationInfo {
26: OperationInfo wrappedOp;
27:
28: public UnwrappedOperationInfo(OperationInfo op) {
29: super (op);
30: wrappedOp = op;
31: }
32:
33: public OperationInfo getWrappedOperation() {
34: return wrappedOp;
35: }
36:
37: public boolean isUnwrapped() {
38: return true;
39: }
40:
41: public FaultInfo addFault(QName name, QName message) {
42: return wrappedOp.addFault(name, message);
43: }
44:
45: public FaultInfo getFault(QName name) {
46: return wrappedOp.getFault(name);
47: }
48:
49: public Collection<FaultInfo> getFaults() {
50: return wrappedOp.getFaults();
51: }
52:
53: public Object getProperty(String name) {
54: return wrappedOp.getProperty(name);
55: }
56:
57: public <T> T getProperty(String name, Class<T> cls) {
58: return wrappedOp.getProperty(name, cls);
59: }
60:
61: public void setProperty(String name, Object v) {
62: wrappedOp.setProperty(name, v);
63: }
64:
65: public void addExtensor(Object el) {
66: wrappedOp.addExtensor(el);
67: }
68:
69: public <T> T getExtensor(Class<T> cls) {
70: return wrappedOp.getExtensor(cls);
71: }
72:
73: public <T> List<T> getExtensors(Class<T> cls) {
74: return wrappedOp.getExtensors(cls);
75: }
76:
77: }
|