Examples of RuntimeLeafInfo


Examples of com.sun.xml.bind.v2.model.runtime.RuntimeLeafInfo

    @SuppressWarnings({"unchecked"})
    private EnumInfo addEnum(Model model, RuntimeEnumLeafInfo runtimeEnumLeafInfo) {
        // compiler can't handle the wacky over loaded methods in the jaxb ri
        // so we convert it to a simpler type
        RuntimeLeafInfo leafInfo = runtimeEnumLeafInfo;

        EnumInfo enumInfo = model.getEnum(leafInfo.getClazz());

        if (enumInfo == null) {
            if (Modifier.isAbstract(leafInfo.getClazz().getModifiers())) {
                return null;
            }

            enumInfo = new EnumInfo(model, leafInfo.getClazz());
            enumInfo.setRootElementName(runtimeEnumLeafInfo.getElementName());
            enumInfo.setSchemaTypeName(runtimeEnumLeafInfo.getTypeName());

            Class<?> type = enumInfo.getType();
            Enum[] enumValues;
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.