1 package org.codehaus.mojo.axistools.axis;
2
3 /*
4 * Licensed to the Apache Software Foundation (ASF) under one
5 * or more contributor license agreements. See the NOTICE file
6 * distributed with this work for additional information
7 * regarding copyright ownership. The ASF licenses this file
8 * to you under the Apache License, Version 2.0 (the
9 * "License"); you may not use this file except in compliance
10 * with the License. You may obtain a copy of the License at
11 *
12 * http://www.apache.org/licenses/LICENSE-2.0
13 *
14 * Unless required by applicable law or agreed to in writing,
15 * software distributed under the License is distributed on an
16 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17 * KIND, either express or implied. See the License for the
18 * specific language governing permissions and limitations
19 * under the License.
20 */
21
22 /**
23 * bean for axis mapping in the plugin configuration for emitter use
24 *
25 * @author <a href="mailto:Olivier.LAMY@accor.com">olamy</a>
26 */
27 public class Mapping
28 {
29 /**
30 * the namespace to map
31 */
32 private String namespace;
33
34 /**
35 * the target package for namespace
36 */
37 private String targetPackage;
38
39 /**
40 * @return Mapping Returns the namespace.
41 */
42 public String getNamespace()
43 {
44 return this.namespace;
45 }
46
47 /**
48 * @param namespace The namespace to set.
49 */
50 public void setNamespace( String namespace )
51 {
52 this.namespace = namespace;
53 }
54
55 /**
56 * @return Mapping Returns the targetPackage.
57 */
58 public String getTargetPackage()
59 {
60 return this.targetPackage;
61 }
62
63 /**
64 * @param targetPackage The targetPackage to set.
65 */
66 public void setTargetPackage( String targetPackage )
67 {
68 this.targetPackage = targetPackage;
69 }
70
71 /**
72 * @see Object#toString()
73 */
74 public String toString()
75 {
76 return new StringBuffer( "namespace : " ).append( this.namespace )
77 .append( ", targetPackage " ).append( this.targetPackage ).toString();
78 }
79 }