Project.java

// license-header java merge-point
//
// Attention: Generated code! Do not modify by hand!
// Generated by: PSMmetaclass.vsl in andromda-meta-cartridge.
//
package org.andromda.cartridges.deployment.psm.ant;

import java.util.Collection;

/**
 * TODO: Model Documentation for org.andromda.cartridges.deployment.psm.ant.Project
 */
public class Project
{
    /**
     * Public default constructor for Project
     */
    public Project()
    {
        this.name = null;
        this.defaultTargetName = null;
    }

    /**
     * Public constructor for Project with 2 required properties.
     * @param nameIn String TODO: Model Documentation for org.andromda.cartridges.deployment.psm.ant.Project.name
     * @param defaultTargetNameIn String TODO: Model Documentation for org.andromda.cartridges.deployment.psm.ant.Project.defaultTargetName
     */
    public Project(String name, String defaultTargetName)
    {
        this.name = name;
        this.defaultTargetName = defaultTargetName;
    }

    /**
     * Public constructor for Project with all properties.
     * @param nameIn String TODO: Model Documentation for org.andromda.cartridges.deployment.psm.ant.Project.name
     * @param defaultTargetNameIn String TODO: Model Documentation for org.andromda.cartridges.deployment.psm.ant.Project.defaultTargetName
     * @param targetsIn Collection<Target> TODO: Model Documentation for Target
     */
    public Project(String nameIn, String defaultTargetNameIn, Collection<Target> targetsIn)
    {
        this.name = nameIn;
        this.defaultTargetName = defaultTargetNameIn;
        this.targets = targetsIn;
    }

    /**
     * Copy-constructor from other Project
     *
     * @param otherBean, cannot be <code>null</code>
     * @throws NullPointerException if the argument is <code>null</code>
     */
    public Project(Project otherBean)
    {
        this(otherBean.getName(), otherBean.getDefaultTargetName(), otherBean.getTargets());
    }

    protected String name;

    /**
     * TODO: Model Documentation for org.andromda.cartridges.deployment.psm.ant.Project.name
     * @return this.name String
     */
    public String getName()
    {
        return this.name;
    }

    /**
     * TODO: Model Documentation for org.andromda.cartridges.deployment.psm.ant.Project.name
     * @param nameIn String
     */
    public void setName(String nameIn)
    {
        this.name = nameIn;
    }

    protected String defaultTargetName;

    /**
     * TODO: Model Documentation for
     * org.andromda.cartridges.deployment.psm.ant.Project.defaultTargetName
     * @return this.defaultTargetName String
     */
    public String getDefaultTargetName()
    {
        return this.defaultTargetName;
    }

    /**
     * TODO: Model Documentation for
     * org.andromda.cartridges.deployment.psm.ant.Project.defaultTargetName
     * @param defaultTargetNameIn String
     */
    public void setDefaultTargetName(String defaultTargetNameIn)
    {
        this.defaultTargetName = defaultTargetNameIn;
    }

    protected Collection<Target> targets;

    /**
     * Get the targets
     * TODO: Model Documentation for Target
     * @return this.targets Collection<Target>
     */
    public Collection<Target> getTargets()
    {
        return this.targets;
    }

    /**
     * Sets the targets
     * @param targetsIn Collection<Target>
     */
    public void setTargets(Collection<Target> targetsIn)
    {
        this.targets = targetsIn;
    }
}