Package org.exolab.castor.builder.binding.xml

Examples of org.exolab.castor.builder.binding.xml.ComponentBindingTypeChoice


                }
            } //--naming != null;
        } //--binding != null

        if (_compBinding != null) {
            ComponentBindingTypeChoice choice = _compBinding.getComponentBindingTypeChoice();
            if (choice.getInterface() != null) {
                _type = INTERFACE;
                _interface = choice.getInterface();
            } else if (choice.getJavaClass() != null) {
                _type = CLASS;
                _class = choice.getJavaClass();
            } else if (choice.getMember() != null) {
                _type = MEMBER;
                _member = choice.getMember();
            } else if (choice.getEnumDef() != null) {
                _type = ENUM_TYPE;
                _enum = choice.getEnumDef();
            } else if (choice.getContentMember() != null) {
                _type = CONTENT_MEMBER_TYPE;
                _contentMemberName = choice.getContentMember().getName();
            } else {
                String err = "Illegal Binding component:";
                err += "it does not define a class, an interface or a member binding.";
                throw new IllegalStateException(err);
            }
View Full Code Here

TOP

Related Classes of org.exolab.castor.builder.binding.xml.ComponentBindingTypeChoice

Copyright © 2018 www.massapicom. 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.