[prev in list] [next in list] [prev in thread] [next in thread]
List: jboss-cvs-commits
Subject: [jboss-cvs] jbosstest/src/main/org/jboss/test/xml/sandbox Choice1.java Choice2.java Choice3.java Roo
From: Alexey Loubyansky <loubyansky () users ! sourceforge ! net>
Date: 2004-11-30 16:08:15
Message-ID: E1CZAY3-0004sz-Tn () sc8-pr-cvs1 ! sourceforge ! net
[Download RAW message or body]
User: loubyansky
Date: 04/11/30 08:08:15
Added: src/main/org/jboss/test/xml/sandbox Choice1.java
Choice2.java Choice3.java Root.java
Log:
misc binding tests
Revision Changes Path
1.1 jbosstest/src/main/org/jboss/test/xml/sandbox/Choice1.java
Index: Choice1.java
===================================================================
/*
* JBoss, the OpenSource J2EE webOS
*
* Distributable under LGPL license.
* See terms of license at gnu.org.
*/
package org.jboss.test.xml.sandbox;
/**
* @author <a href="mailto:alex@jboss.org">Alexey Loubyansky</a>
* @version <tt>$Revision: 1.1 $</tt>
*/
public class Choice1
{
private String a;
private String b;
public Choice1()
{
}
public Choice1(String a, String b)
{
this.a = a;
this.b = b;
}
public String getA()
{
return a;
}
public void setA(String a)
{
this.a = a;
}
public String getB()
{
return b;
}
public void setB(String b)
{
this.b = b;
}
public boolean equals(Object o)
{
if(this == o)
{
return true;
}
if(!(o instanceof Choice1))
{
return false;
}
final Choice1 choice1 = (Choice1)o;
if(a != null ? !a.equals(choice1.a) : choice1.a != null)
{
return false;
}
if(b != null ? !b.equals(choice1.b) : choice1.b != null)
{
return false;
}
return true;
}
public int hashCode()
{
int result;
result = (a != null ? a.hashCode() : 0);
result = 29 * result + (b != null ? b.hashCode() : 0);
return result;
}
public String toString()
{
return "[a=" + a + ", b=" + b + "]";
}
}
1.1 jbosstest/src/main/org/jboss/test/xml/sandbox/Choice2.java
Index: Choice2.java
===================================================================
/*
* JBoss, the OpenSource J2EE webOS
*
* Distributable under LGPL license.
* See terms of license at gnu.org.
*/
package org.jboss.test.xml.sandbox;
/**
* @author <a href="mailto:alex@jboss.org">Alexey Loubyansky</a>
* @version <tt>$Revision: 1.1 $</tt>
*/
public class Choice2
{
private String c;
private String d;
private String e;
public Choice2()
{
}
public Choice2(String c, String d, String e)
{
this.c = c;
this.d = d;
this.e = e;
}
public String getC()
{
return c;
}
public void setC(String c)
{
this.c = c;
}
public String getD()
{
return d;
}
public void setD(String d)
{
this.d = d;
}
public String getE()
{
return e;
}
public void setE(String e)
{
this.e = e;
}
public boolean equals(Object o)
{
if(this == o)
{
return true;
}
if(!(o instanceof Choice2))
{
return false;
}
final Choice2 choice2 = (Choice2)o;
if(c != null ? !c.equals(choice2.c) : choice2.c != null)
{
return false;
}
if(d != null ? !d.equals(choice2.d) : choice2.d != null)
{
return false;
}
if(e != null ? !e.equals(choice2.e) : choice2.e != null)
{
return false;
}
return true;
}
public int hashCode()
{
int result;
result = (c != null ? c.hashCode() : 0);
result = 29 * result + (d != null ? d.hashCode() : 0);
result = 29 * result + (e != null ? e.hashCode() : 0);
return result;
}
public String toString()
{
return "[c=" + c + ", d=" + d + ", e=" + e + "]";
}
}
1.1 jbosstest/src/main/org/jboss/test/xml/sandbox/Choice3.java
Index: Choice3.java
===================================================================
/*
* JBoss, the OpenSource J2EE webOS
*
* Distributable under LGPL license.
* See terms of license at gnu.org.
*/
package org.jboss.test.xml.sandbox;
import java.util.Collection;
/**
* @author <a href="mailto:alex@jboss.org">Alexey Loubyansky</a>
* @version <tt>$Revision: 1.1 $</tt>
*/
public class Choice3
{
private Collection listOfIntegers;
private Collection listOfStrings;
public Choice3()
{
}
public Choice3(Collection listOfIntegers, Collection listOfStrings)
{
this.listOfIntegers = listOfIntegers;
this.listOfStrings = listOfStrings;
}
public Collection getListOfIntegers()
{
return listOfIntegers;
}
public void setListOfIntegers(Collection listOfIntegers)
{
this.listOfIntegers = listOfIntegers;
}
public Collection getListOfStrings()
{
return listOfStrings;
}
public void setListOfStrings(Collection listOfStrings)
{
this.listOfStrings = listOfStrings;
}
public boolean equals(Object o)
{
if(this == o)
{
return true;
}
if(!(o instanceof Choice3))
{
return false;
}
final Choice3 choice3 = (Choice3)o;
if(listOfIntegers != null ? !listOfIntegers.equals(choice3.listOfIntegers) : \
choice3.listOfIntegers != null) {
return false;
}
if(listOfStrings != null ? !listOfStrings.equals(choice3.listOfStrings) : \
choice3.listOfStrings != null) {
return false;
}
return true;
}
public int hashCode()
{
int result;
result = (listOfIntegers != null ? listOfIntegers.hashCode() : 0);
result = 29 * result + (listOfStrings != null ? listOfStrings.hashCode() : \
0); return result;
}
public String toString()
{
return "[listOfIntegers=" + listOfIntegers + ", listOfStrigns=" + \
listOfStrings + "]"; }
}
1.1 jbosstest/src/main/org/jboss/test/xml/sandbox/Root.java
Index: Root.java
===================================================================
/*
* JBoss, the OpenSource J2EE webOS
*
* Distributable under LGPL license.
* See terms of license at gnu.org.
*/
package org.jboss.test.xml.sandbox;
import java.util.Collection;
/**
* @author <a href="mailto:alex@jboss.org">Alexey Loubyansky</a>
* @version <tt>$Revision: 1.1 $</tt>
*/
public class Root
{
private Collection choiceCollection1;
private Collection choice2;
private Collection choice3;
public Collection getChoice3()
{
return choice3;
}
public void setChoice3(Collection choice3)
{
this.choice3 = choice3;
}
public Collection getChoiceCollection1()
{
return choiceCollection1;
}
public void setChoiceCollection1(Collection choiceCollection1)
{
this.choiceCollection1 = choiceCollection1;
}
public Collection getChoice2()
{
return choice2;
}
public void setChoice2(Collection choice2)
{
this.choice2 = choice2;
}
public boolean equals(Object o)
{
if(this == o)
{
return true;
}
if(!(o instanceof Root))
{
return false;
}
final Root root = (Root)o;
if(choice2 != null ? !choice2.equals(root.choice2) : root.choice2 != null)
{
return false;
}
if(choice3 != null ? !choice3.equals(root.choice3) : root.choice3 != null)
{
return false;
}
if(choiceCollection1 != null ? \
!choiceCollection1.equals(root.choiceCollection1) : root.choiceCollection1 != null) \
{ return false;
}
return true;
}
public int hashCode()
{
int result;
result = (choiceCollection1 != null ? choiceCollection1.hashCode() : 0);
result = 29 * result + (choice2 != null ? choice2.hashCode() : 0);
result = 29 * result + (choice3 != null ? choice3.hashCode() : 0);
return result;
}
public String toString()
{
return "[choiceCollection1=" + choiceCollection1 + ", choice2=" + choice2 + \
", choice3=" + choice3 + "]"; }
}
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
_______________________________________________
jboss-cvs-commits mailing list
jboss-cvs-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-cvs-commits
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic