KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > webservice > metadata > jaxrpcmapping > VariableMapping


1 /*
2  * JBoss, the OpenSource J2EE webOS
3  *
4  * Distributable under LGPL license.
5  * See terms of license at gnu.org.
6  */

7 package org.jboss.webservice.metadata.jaxrpcmapping;
8
9 // $Id: VariableMapping.java,v 1.1.4.2 2005/06/17 22:31:50 tdiesler Exp $
10

11 /**
12  * XML mapping of the java-wsdl-mapping/java-xml-type-mapping/varaible-mapping element.
13  *
14  * @author Thomas.Diesler@jboss.org
15  * @since 14-May-2004
16  */

17 public class VariableMapping
18 {
19    // The parent <java-wsdl-mapping> element
20
private JavaXmlTypeMapping typeMapping;
21
22    // The required <java-variable-name> element
23
private String JavaDoc javaVariableName;
24    // The optional <data-member> element
25
private boolean dataMember;
26    // The choice [<xml-attribute-name> | <xml-element-name> | <xml-wildcard>]
27
private String JavaDoc xmlAttributeName;
28    private String JavaDoc xmlElementName;
29    private String JavaDoc xmlWildcard;
30
31    public VariableMapping(JavaXmlTypeMapping typeMapping)
32    {
33       this.typeMapping = typeMapping;
34    }
35
36    public JavaXmlTypeMapping getTypeMapping()
37    {
38       return typeMapping;
39    }
40
41    public boolean isDataMember()
42    {
43       return dataMember;
44    }
45
46    public void setDataMember(boolean dataMember)
47    {
48       this.dataMember = dataMember;
49    }
50
51    public String JavaDoc getJavaVariableName()
52    {
53       return javaVariableName;
54    }
55
56    public void setJavaVariableName(String JavaDoc javaVariableName)
57    {
58       this.javaVariableName = javaVariableName;
59    }
60
61    public String JavaDoc getXmlAttributeName()
62    {
63       return xmlAttributeName;
64    }
65
66    public void setXmlAttributeName(String JavaDoc xmlAttributeName)
67    {
68       this.xmlAttributeName = xmlAttributeName;
69    }
70
71    public String JavaDoc getXmlElementName()
72    {
73       return xmlElementName;
74    }
75
76    public void setXmlElementName(String JavaDoc xmlElementName)
77    {
78       this.xmlElementName = xmlElementName;
79    }
80
81    public String JavaDoc getXmlWildcard()
82    {
83       return xmlWildcard;
84    }
85
86    public void setXmlWildcard(String JavaDoc xmlWildcard)
87    {
88       this.xmlWildcard = xmlWildcard;
89    }
90 }
91
Popular Tags