Examples of BaseType


Examples of org.apache.cxf.tests.inherit.objects.BaseType

public class InheritImpl implements Inherit {

    public ObjectInfo getObject(int type) {
        ObjectInfo info = new ObjectInfo();
        info.setType("Type: " + type);
        BaseType ba = null;
        switch (type) {
        case 0:
            ba = new SubTypeA();
            ba.setName("A");
            ((SubTypeA)ba).setAvalue("A");
            break;
        case 1:
            ba = new SubTypeB();
            ba.setName("B");
            ((SubTypeB)ba).setBvalue("B");
            break;
        default:
        }
        info.setBaseObject(ba);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.