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: */
19: package org.apache.axis2.jaxws.marshaller.impl.alt;
20:
21: import org.apache.axis2.jaxws.description.ParameterDescription;
22:
23: /** A PDElement object holds a ParameterDescription
24: * Element object.
25: *
26: * If this Element represents an attachment,
27: * 1) The Element represents the xml element that references the attachment (null if SWA Attachment)
28: * 2) The Attachment object represents the attachment
29: */
30: public class PDElement {
31: private ParameterDescription param;
32: private Element element;
33: private Attachment attachment; // Null if not an attachment
34: private Class byJavaTypeClass; // Class for "by java type" marshalling and unmarshalling is used....normally null
35:
36: public PDElement(ParameterDescription param, Element element,
37: Class byType, Attachment attachment) {
38: super ();
39: this .param = param;
40: this .element = element;
41: this .byJavaTypeClass = byType;
42: this .attachment = attachment;
43: }
44:
45: public PDElement(ParameterDescription param, Element element,
46: Class byType) {
47: this (param, element, byType, null);
48: }
49:
50: public ParameterDescription getParam() {
51: return param;
52: }
53:
54: public Element getElement() {
55:
56: return element;
57: }
58:
59: public Class getByJavaTypeClass() {
60: return byJavaTypeClass;
61: }
62:
63: public void setByJavaTypeClass(Class byType) {
64: this .byJavaTypeClass = byType;
65: }
66:
67: public Attachment getAttachment() {
68: return attachment;
69: }
70: }
|