Package org.apache.geronimo.xml.ns.deployment_1

Examples of org.apache.geronimo.xml.ns.deployment_1.ObjectFactory


            return moduleId.getVersion();
        return "";
    }

    protected String getArtifact() {
        ArtifactType moduleId = getModuleId(false);
        if (moduleId != null
                && moduleId.getType() != null)
            return moduleId.getType();
        return "";
    }
View Full Code Here


            sharedLib.setType("car");
            deptype.getDependency().add(sharedLib);
        } else {
          DependenciesType deptype = getDependencies(false);
            if (deptype != null) {
                ArtifactType ArtifactType = getSharedLibDependency(deptype);
                if(ArtifactType != null) {
                    deptype.getDependency().remove(ArtifactType);
                }
            }
        }
View Full Code Here

    private ArtifactType getSharedLibDependency(DependenciesType dependencies) {
      DependenciesType depType = getDependencies(false);
        List dependenciesList = depType.getDependency();
        Iterator i = dependenciesList.iterator();
        while(i.hasNext()) {
            ArtifactType ArtifactType = (ArtifactType) i.next();
            if("org.apache.geronimo.configs".equals(ArtifactType.getGroupId()) && "sharedlib".equals(ArtifactType.getArtifactId()) && "car".equals(ArtifactType.getType())) {
                return ArtifactType;
            }
        }
        return null;
    }
View Full Code Here

    }

    private ArtifactType getModuleId(boolean create) {
        EnvironmentType type = getEnvironment(create);
        if (type != null) {
            ArtifactType moduleId = type.getModuleId();
            if (moduleId == null && create) {
                moduleId = getDeploymentObjectFactory().createArtifactType();
                type.setModuleId(moduleId);
            }
            return moduleId;
View Full Code Here

            }
        });
    }

    protected String getGroupId() {
        ArtifactType moduleId = getModuleId(false);
        if (moduleId != null
                && moduleId.getGroupId() != null)
            return moduleId.getGroupId();
        return "";
    }
View Full Code Here

            return moduleId.getGroupId();
        return "";
    }

    protected String getArtifactId() {
        ArtifactType moduleId = getModuleId(false);
        if (moduleId != null
                && moduleId.getArtifactId() != null)
            return moduleId.getArtifactId();
        return "";
    }
View Full Code Here

            return moduleId.getArtifactId();
        return "";
    }

    protected String getVersion() {
        ArtifactType moduleId = getModuleId(false);
        if (moduleId != null
                && moduleId.getVersion() != null)
            return moduleId.getVersion();
        return "";
    }
View Full Code Here

        case ATTRIBUTE:
            if (isEmpty(textList.get(0).getText()) || isEmpty(textList.get(1).getText())) {
                return false;
            }
            AttributeType attribute = (AttributeType)eObject;
            if (attribute == null) {
                attribute = (AttributeType)getEFactory().create(AttributeType.class);
                gbean = (GbeanType)section.getSelectedObject();
               
                // add the JAXBElement of an Attribute, not the Attribute
                ObjectFactory objectFactory = new ObjectFactory();
                gbean.getAttributeOrXmlAttributeOrReference().add(objectFactory.createGbeanTypeAttribute(attribute));
            }
            attribute.setName(textList.get(0).getText());
            attribute.setType(textList.get(1).getText());
            attribute.setValue(textList.get(2).getText());
            break;

        case DEPENDENCY:
            if (isEmpty(textList.get(0).getText()) || isEmpty(textList.get(1).getText())) {
                return false;
View Full Code Here

                      GbeanType gbean = (GbeanType)object;
                        return "GBean: name = \"" + gbean.getName() +
                                "\", class = \"" + gbean.getClazz() + "\"";
                    }
                    else if (AttributeType.class.isInstance(object)) {
                      AttributeType attribute = (AttributeType)object;
                        return "Attribute: name = \"" + attribute.getName() +
                                "\", type = \"" + attribute.getType() +
                                "\", value = \"" + attribute.getValue() + "\"";
                    }
                    else if (PatternType.class.isInstance(object)) {
                      PatternType dependency = (PatternType)object;
                        return "Dependency: group = \"" + dependency.getGroupId() +
                                "\", artifact = \"" + dependency.getArtifactId() +
View Full Code Here

            if (environment == null) {
                environment = (EnvironmentType)getEFactory().create(EnvironmentType.class);
                JAXBModelUtils.setEnvironment (plan, environment, isServerEnvironment);
            }

            ClassFilterType filter = ((ClassFilterSection)section).getClassFilter();
            if (filter == null) {
                filter = (ClassFilterType)getEFactory().create(ClassFilterType.class);
                ((ClassFilterSection)section).setClassFilter (filter);
            }
            filter.getFilter().add(page.getTextEntry(0).getText());
        }
        else {
          ClassFilterType filter = ((ClassFilterSection)section).getClassFilter();
            filter.getFilter().set(filter.getFilter().indexOf(eObject), page.getTextEntry(0).getText());
        }

        if (section.getViewer().getInput() == null) {
            section.getViewer().setInput(section.getInput());
        }
View Full Code Here

TOP

Related Classes of org.apache.geronimo.xml.ns.deployment_1.ObjectFactory

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.