KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > metamodel > descriptor > ServiceRef


1 /*
2  * JBoss, Home of Professional Open Source
3  * Copyright 2005, JBoss Inc., and individual contributors as indicated
4  * by the @authors tag. See the copyright.txt in the distribution for a
5  * full listing of individual contributors.
6  *
7  * This is free software; you can redistribute it and/or modify it
8  * under the terms of the GNU Lesser General Public License as
9  * published by the Free Software Foundation; either version 2.1 of
10  * the License, or (at your option) any later version.
11  *
12  * This software is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15  * Lesser General Public License for more details.
16  *
17  * You should have received a copy of the GNU Lesser General Public
18  * License along with this software; if not, write to the Free
19  * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
20  * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
21  */

22 package org.jboss.metamodel.descriptor;
23
24 import java.io.Serializable JavaDoc;
25
26 // $Id: ServiceRef.java 57930 2006-10-31 02:20:23Z scott.stark@jboss.org $
27

28 /**
29  * Represents a <service-ref> element of the jboss.xml, jboss-web.xml, jboss-client.xml deployment descriptor
30  * for the 5.0 schema
31  *
32  * @author <a HREF="mailto:bdecoste@jboss.com">William DeCoste</a>
33  * @author Thomas.Diesler@jboss.com
34  */

35 public class ServiceRef extends Ref
36 {
37    private String JavaDoc encName;
38    private String JavaDoc wsdlLocation;
39    private String JavaDoc configName;
40    private String JavaDoc configFile;
41
42    public ServiceRef()
43    {
44    }
45
46    public ServiceRef(String JavaDoc name)
47    {
48       this.encName = name;
49    }
50
51    public String JavaDoc getEncName()
52    {
53       return encName;
54    }
55
56    public void setEncName(String JavaDoc name)
57    {
58       this.encName = name;
59    }
60
61    public String JavaDoc getWsdlLocation()
62    {
63       return wsdlLocation;
64    }
65
66    public void setWsdlLocation(String JavaDoc wsdlLocation)
67    {
68       this.wsdlLocation = wsdlLocation;
69    }
70
71    public String JavaDoc getConfigFile()
72    {
73       return configFile;
74    }
75
76    public void setConfigFile(String JavaDoc configFile)
77    {
78       this.configFile = configFile;
79    }
80
81    public String JavaDoc getConfigName()
82    {
83       return configName;
84    }
85
86    public void setConfigName(String JavaDoc configName)
87    {
88       this.configName = configName;
89    }
90
91    public String JavaDoc toString()
92    {
93       StringBuffer JavaDoc sb = new StringBuffer JavaDoc(100);
94       sb.append("[");
95       sb.append("name=").append(encName);
96       sb.append(",config-name=").append(configName);
97       sb.append(",config-file=").append(configFile);
98       sb.append(",wsdl=").append(wsdlLocation);
99       sb.append("]");
100       return sb.toString();
101    }
102 }
103
Popular Tags