1 16 17 package test.wsdl.multiref; 18 19 24 public class MultiRefTestSOAPBindingImpl implements test.wsdl.multiref.MultiRefTest { 25 26 32 public int testSimpleTree(test.wsdl.multiref.holders.NodeHolder root) throws java.rmi.RemoteException { 33 Node t = root.value; Node l = t.getLeft(); Node r = t.getRight(); 37 if (t != null && l != null && r != null && 38 r != l && 39 l.getLeft() == null && 40 l.getRight()== null && 41 r.getLeft() == null && 42 r.getRight()== null) 43 return 0; 45 return 1; } 47 48 56 public int testDiamond(test.wsdl.multiref.holders.NodeHolder root) throws java.rmi.RemoteException { 57 Node t = root.value; Node l = t.getLeft(); Node r = t.getRight(); 61 if (t != null && l != null && r != null && 62 r != l && 63 l.getLeft() == null && 64 r.getRight()== null && 65 l.getRight()!= null && 66 l.getRight()== r.getLeft()) 67 return 0; 69 return 1; } 71 72 78 public int testLoop(test.wsdl.multiref.holders.NodeHolder root) throws java.rmi.RemoteException { 79 Node t = root.value; Node l = t.getLeft(); Node r = t.getRight(); 83 if (t != null && l != null && r != null && 84 r != l && 85 l.getLeft() == t && 86 l.getRight()== t && 87 r.getLeft() == t && 88 r.getRight()== t) 89 return 0; 91 return 1; } 93 98 public int testSelfRef(test.wsdl.multiref.holders.NodeHolder root) throws java.rmi.RemoteException { 99 Node t = root.value; Node l = t.getLeft(); Node r = t.getRight(); 103 if (t != null && l != null && r != null && 104 t == l && t == r) 105 return 0; 107 return 1; } 109 110 113 public int testSameArgs(test.wsdl.multiref.holders.NodeHolder root1,test.wsdl.multiref.holders.NodeHolder root2) 114 throws java.rmi.RemoteException { 115 Node t1 = root1.value; Node t2 = root2.value; 118 if (t1 != null && t2 != null && 119 t1 == t2 && 120 t1.getRight() == null && 121 t1.getLeft() == null) 122 return 0; 124 return 1; } 126 127 133 public int testArgsRefSameNode(test.wsdl.multiref.holders.NodeHolder root1,test.wsdl.multiref.holders.NodeHolder root2) 134 throws java.rmi.RemoteException { 135 Node t1 = root1.value; Node t2 = root2.value; 138 if (t1 != null && t2 != null && 139 t1 != t2 && 140 t1.getLeft() == null && 141 t2.getRight() == null && 142 t1.getRight() != null && 143 t1.getRight() == t2.getLeft() && 144 t1.getRight().getRight() == null && 145 t1.getRight().getLeft() == null) 146 return 0; 148 return 1; } 150 153 public int testArgsRefEachOther(test.wsdl.multiref.holders.NodeHolder root1,test.wsdl.multiref.holders.NodeHolder root2) 154 throws java.rmi.RemoteException { 155 Node t1 = root1.value; Node t2 = root2.value; 158 if (t1 != null && t2 != null && 159 t1 != t2 && 160 t1.getLeft() == t2 && 161 t1.getRight() == t2 && 162 t2.getLeft() == t1 && 163 t2.getRight() == t1) 164 return 0; 166 return 1; } 168 169 } 170 | Popular Tags |