KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > test > webservice > marshalltest > types > QNameArr


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.test.webservice.marshalltest.types;
8
9 import javax.xml.namespace.QName JavaDoc;
10 import java.util.Arrays JavaDoc;
11
12 // $Id: QNameArr.java,v 1.2.2.1 2004/10/24 19:12:34 tdiesler Exp $
13

14 /**
15  * Created by IntelliJ IDEA.
16  *
17  * @author Thomas.Diesler@jboss.org
18  * @since 24-Sep-2004
19  */

20 public class QNameArr
21 {
22    private QName JavaDoc[] qnameArr;
23
24    public QNameArr()
25    {
26    }
27
28    public QNameArr(QName JavaDoc[] qnameArr)
29    {
30       this.qnameArr = qnameArr;
31    }
32
33    public QName JavaDoc[] getQnameArr()
34    {
35       return qnameArr;
36    }
37
38    public void setQnameArr(QName JavaDoc[] qnameArr)
39    {
40       this.qnameArr = qnameArr;
41    }
42
43    public boolean equals(Object JavaDoc obj)
44    {
45       return toString().equals("" + obj);
46    }
47
48    public String JavaDoc toString()
49    {
50       return qnameArr != null ? Arrays.asList(qnameArr).toString() : "[]";
51    }
52 }
53
Popular Tags