File: StarWarsBindingImpl.java

package info (click to toggle)
axis 1.4-25
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 51,864 kB
  • sloc: java: 129,119; xml: 10,573; jsp: 983; sh: 84; cs: 36; makefile: 26
file content (41 lines) | stat: -rw-r--r-- 1,332 bytes parent folder | download | duplicates (10)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
/**
 * StarWarsBindingImpl.java
 *
 * This file was auto-generated from WSDL
 * by the Apache Axis 1.3 Oct 16, 2005 (11:41:21 EDT) WSDL2Java emitter.
 */

package samples.xbeans;

public class StarWarsBindingImpl implements samples.xbeans.StarWarsPortType{
    com.superflaco.xbeans.Character stashed;
    
    public com.superflaco.xbeans.Character getChewbecca() throws java.rmi.RemoteException {
        com.superflaco.xbeans.Character chewie =
            com.superflaco.xbeans.Character.Factory.newInstance();
        chewie.setName("Chewbacca");

        com.superflaco.xbeans.System sys = com.superflaco.xbeans.System.Factory.newInstance();
        sys.setName("WookieSector");
        
        chewie.setHome(sys);
        chewie.setFaction("smuggler");
        chewie.setEvil(false);
        chewie.setJedi(false);
        return chewie;
    }

    public com.superflaco.xbeans.Character stashChar(com.superflaco.xbeans.Character newChew) throws java.rmi.RemoteException {
        if (stashed == null) {
            stashed = getChewbecca();
        }

        if (newChew != null) {
            System.out.println("old: " + stashed.toString());
            System.out.println("new: " + newChew.toString());
            stashed = newChew;
        }
        return stashed;
    }

}