Examples of AdminobjectInstanceType


Examples of org.apache.geronimo.xml.ns.j2ee.connector_1.AdminobjectInstanceType

        }
        else if (element.getText().equals(elementTypes[ADMIN_OBJECT_INSTANCE])) {
            if (isEmpty(textList.get(0).getText())) {
                return false;
            }
            AdminobjectInstanceType aoInstance = (AdminobjectInstanceType)eObject;
            if (aoInstance == null) {
                aoInstance = (AdminobjectInstanceType)getEFactory().create(AdminobjectInstanceType.class);
                admin = (AdminobjectType)((AdminObjectSection)section).getSelectedObject();
                admin.getAdminobjectInstance().add(aoInstance);
            }
            aoInstance.setMessageDestinationName(textList.get(0).getText());
        }
        else if (element.getText().equals(elementTypes[CONFIG_PROPERTY_SETTING])) {
            if (isEmpty(textList.get(0).getText()) || isEmpty(textList.get(1).getText())) {
                return false;
            }
            ConfigPropertySettingType property = (ConfigPropertySettingType)eObject;
            if (property == null) {
                property = (ConfigPropertySettingType)getEFactory().create(ConfigPropertySettingType.class);
                AdminobjectInstanceType aoInstance = (AdminobjectInstanceType)((AdminObjectSection)section).getSelectedObject();
                aoInstance.getConfigPropertySetting().add(property);
            }
            property.setName(textList.get(0).getText());
            property.setValue(textList.get(1).getText());
        }
        return true;
View Full Code Here

Examples of org.apache.geronimo.xml.ns.j2ee.connector_1.AdminobjectInstanceType

        else if (AdminobjectInstanceType.class.isInstance(anItem)) {
          AdminobjectType admin = (AdminobjectType)tree.getSelection()[0].getParentItem().getData();
            admin.getAdminobjectInstance().remove(anItem);
        }
        else if (ConfigPropertySettingType.class.isInstance(anItem)) {
          AdminobjectInstanceType aoInstance = (AdminobjectInstanceType)tree.getSelection()[0].getParentItem().getData();
            aoInstance.getConfigPropertySetting().remove(anItem);
        }
    }
View Full Code Here

Examples of org.apache.geronimo.xml.ns.j2ee.connector_1.AdminobjectInstanceType

                if (AdminobjectType.class.isInstance(parentElement)) {
                    AdminobjectType admin = (AdminobjectType)parentElement;
                    return admin.getAdminobjectInstance().toArray();
                }
                if (AdminobjectInstanceType.class.isInstance(parentElement)) {
                    AdminobjectInstanceType aoInstance = (AdminobjectInstanceType)parentElement;
                    return aoInstance.getConfigPropertySetting().toArray();
                }
                return new String[] {};
            }
        };
    }
View Full Code Here

Examples of org.apache.geronimo.xml.ns.j2ee.connector_1.AdminobjectInstanceType

                  AdminobjectType admin = (AdminobjectType)element;
                    return "Admin Object: interface = \"" + admin.getAdminobjectInterface() +
                            "\", class = \"" + admin.getAdminobjectClass() + "\"";
                }
                if (AdminobjectInstanceType.class.isInstance(element)) {
                  AdminobjectInstanceType aoInstance = (AdminobjectInstanceType)element;
                    return "Admin Object Instance: message destination name = \"" + aoInstance.getMessageDestinationName() + "\"";
                }
                if (ConfigPropertySettingType.class.isInstance(element)) {
                  ConfigPropertySettingType property = (ConfigPropertySettingType)element;
                    return "Config Property Setting: name = \"" + property.getName() +
                            "\", value = \"" + property.getValue() + "\"";
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.